From 1102cefcd75b250d4b42673b8a606d167cb15048 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 30 Aug 2018 22:30:50 +0200 Subject: Fix thisObject when calling super properties Change-Id: Ia520d43ea2c29c16cfc8ffc86a32187a78848502 Reviewed-by: Simon Hausmann --- src/qml/jit/qv4baselinejit.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/qml/jit/qv4baselinejit.cpp') diff --git a/src/qml/jit/qv4baselinejit.cpp b/src/qml/jit/qv4baselinejit.cpp index 36375461f9..9e9c586982 100644 --- a/src/qml/jit/qv4baselinejit.cpp +++ b/src/qml/jit/qv4baselinejit.cpp @@ -418,6 +418,19 @@ void BaselineJIT::generate_CallValue(int name, int argc, int argv) as->checkException(); } +void BaselineJIT::generate_CallWithReceiver(int name, int thisObject, int argc, int argv) +{ + STORE_IP(); + as->prepareCallWithArgCount(5); + as->passInt32AsArg(argc, 4); + as->passJSSlotAsArg(argv, 3); + as->passJSSlotAsArg(thisObject, 2); + as->passJSSlotAsArg(name, 1); + as->passEngineAsArg(0); + BASELINEJIT_GENERATE_RUNTIME_CALL(Runtime::method_callWithReceiver, CallResultDestination::InAccumulator); + as->checkException(); +} + void BaselineJIT::generate_CallProperty(int name, int base, int argc, int argv) { STORE_IP(); -- cgit v1.2.3