- avoid calling VMFillParams for simple stack frames
- split Setup into more functions
This commit is contained in:
parent
6c31d2e965
commit
34b037c9db
4 changed files with 211 additions and 162 deletions
|
|
@ -814,6 +814,7 @@ VMFunction *FFunctionBuildList::AddFunction(PNamespace *gnspc, const VersionInfo
|
|||
if (it.Func->SymbolName != NAME_None)
|
||||
{
|
||||
it.Function->Proto = it.Func->Variants[0].Proto;
|
||||
it.Function->ArgFlags = it.Func->Variants[0].ArgFlags;
|
||||
}
|
||||
|
||||
mItems.Push(it);
|
||||
|
|
@ -885,6 +886,7 @@ void FFunctionBuildList::Build()
|
|||
if (sfunc->Proto == nullptr)
|
||||
{
|
||||
sfunc->Proto = NewPrototype(item.Proto->ReturnTypes, item.Func->Variants[0].Proto->ArgumentTypes);
|
||||
sfunc->ArgFlags = item.Func->Variants[0].ArgFlags;
|
||||
}
|
||||
|
||||
// Emit code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue