From 8e7f28339f57d22e4a8bdb30af449151c89d75db Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 27 Jun 2018 12:00:44 +0200 Subject: Smaller refactoring of VME::exec() to preapre for upcoming changes We'll need a more flexible interface here to support derived constructors properly. There's also quite some code in the generator functions that could benefit from some cleanups. Change-Id: I951b5d2171efa80d52fd6b0155f8f2c78af2f3b5 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4vme_moth_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4vme_moth_p.h') diff --git a/src/qml/jsruntime/qv4vme_moth_p.h b/src/qml/jsruntime/qv4vme_moth_p.h index c5c07d92cb..0167e6f5b0 100644 --- a/src/qml/jsruntime/qv4vme_moth_p.h +++ b/src/qml/jsruntime/qv4vme_moth_p.h @@ -71,8 +71,9 @@ public: quintptr d = reinterpret_cast(&data) | 0x1; return exec(reinterpret_cast(d), thisObject, argv, argc); } + static QV4::ReturnedValue exec(CppStackFrame *frame, ExecutionEngine *engine); static QV4::ReturnedValue exec(const FunctionObject *fo, const Value *thisObject, const Value *argv, int argc, const Value *newTarget = nullptr); - static QV4::ReturnedValue interpret(CppStackFrame &frame, const char *codeEntry); + static QV4::ReturnedValue interpret(CppStackFrame *frame, ExecutionEngine *engine, const char *codeEntry); }; } // namespace Moth -- cgit v1.2.3