diff options
Diffstat (limited to 'moth/qv4isel_moth_p.h')
-rw-r--r-- | moth/qv4isel_moth_p.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/moth/qv4isel_moth_p.h b/moth/qv4isel_moth_p.h index 6c92564bc7..bb024c58f3 100644 --- a/moth/qv4isel_moth_p.h +++ b/moth/qv4isel_moth_p.h @@ -35,11 +35,12 @@ private: }; void simpleMove(IR::Move *); - void callActivationProperty(IR::Call *c); - void callValue(IR::Call *c); - void callProperty(IR::Call *c); - void construct(IR::New *ctor); + void callActivationProperty(IR::Call *c, int targetTempIndex); + void callValue(IR::Call *c, int targetTempIndex); + void callProperty(IR::Call *c, int targetTempIndex); + void construct(IR::New *ctor, int targetTempIndex); void prepareCallArgs(IR::ExprList *, quint32 &, quint32 &); + int scratchTempIndex() { return _function->tempCount - _function->locals.size() + _function->maxNumberOfArguments; } template <int Instr> inline ptrdiff_t addInstruction(const InstrData<Instr> &data); |