aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4isel_masm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qv4isel_masm.cpp')
-rw-r--r--src/v4/qv4isel_masm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/v4/qv4isel_masm.cpp b/src/v4/qv4isel_masm.cpp
index 80803e811c..9a05ccbeee 100644
--- a/src/v4/qv4isel_masm.cpp
+++ b/src/v4/qv4isel_masm.cpp
@@ -824,7 +824,8 @@ void InstructionSelection::callValue(V4IR::Temp *value, V4IR::ExprList *args, V4
void InstructionSelection::loadThisObject(V4IR::Temp *temp)
{
- generateFunctionCall(Assembler::Void, __qmljs_get_thisObject, Assembler::ContextRegister, Assembler::PointerToValue(temp));
+ _as->loadPtr(Pointer(Assembler::ContextRegister, offsetof(ExecutionContext, thisObject)), Assembler::ReturnValueRegister);
+ _as->storeArgument(Assembler::ReturnValueRegister, temp);
}
void InstructionSelection::loadConst(V4IR::Const *sourceConst, V4IR::Temp *targetTemp)