aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jit/qv4baselinejit.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2018-08-03 16:01:04 +0200
committerLars Knoll <lars.knoll@qt.io>2018-08-03 19:11:26 +0000
commit4d34d6fe3bdf666b130ad06b0baf9d6b5b4fc39f (patch)
treea20d0b228594401b0c4bd2cb2b5c8eb39a5d75ff /src/qml/jit/qv4baselinejit.cpp
parent037af615b0c936ba3d8dc4abc13b12082737437a (diff)
Fix crash of language/expressions/object/setter-super-prop.js with JIT
Generally super.foo = bar calls the storeSuperProperty run-time method, which expects the engine as the first parameter, not the function pointer. Amends commit d31541fd9d7d52ef3eae29e7e5d36733d7f55375 Change-Id: Ic0c933e855066273a635fe62ad88316c75cb8f45 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jit/qv4baselinejit.cpp')
-rw-r--r--src/qml/jit/qv4baselinejit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jit/qv4baselinejit.cpp b/src/qml/jit/qv4baselinejit.cpp
index 9132b194a5..7200e44f0c 100644
--- a/src/qml/jit/qv4baselinejit.cpp
+++ b/src/qml/jit/qv4baselinejit.cpp
@@ -322,7 +322,7 @@ void BaselineJIT::generate_StoreSuperProperty(int property)
as->prepareCallWithArgCount(3);
as->passAccumulatorAsArg(2);
as->passRegAsArg(property, 1);
- as->passFunctionAsArg(0);
+ as->passEngineAsArg(0);
JIT_GENERATE_RUNTIME_CALL(Runtime::method_storeSuperProperty, Assembler::IgnoreResult);
as->checkException();
}