- only allocate stack space for vmframe and call returns when we need them

This commit is contained in:
Magnus Norddahl 2018-11-18 13:49:19 +01:00
commit a8a9ec98f3
3 changed files with 51 additions and 12 deletions

View file

@ -237,9 +237,18 @@ private:
int offsetA;
int offsetD;
int offsetExtra;
asmjit::X86Gp vmframe;
int NumParam = 0; // Actually part of vmframe (f->NumParam), but nobody seems to read that?
TArray<const VMOP *> ParamOpcodes;
void CheckVMFrame();
asmjit::X86Gp GetCallReturns();
bool vmframeAllocated = false;
asmjit::CBNode *vmframeCursor = nullptr;
asmjit::X86Gp vmframe;
bool callReturnsAllocated = false;
asmjit::CBNode *callReturnsCursor = nullptr;
asmjit::X86Gp callReturns;
const int *konstd;