diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-27 12:00:44 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-07-03 08:08:42 +0000 |
commit | 8e7f28339f57d22e4a8bdb30af449151c89d75db (patch) | |
tree | e890fcdb4d6219668b4eaa4da9b1955cff09e52d /src/qml/jsruntime/qv4vme_moth_p.h | |
parent | 65e799a9dec58b4bde3a085149f8cbcf0f5f3fba (diff) |
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 <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4vme_moth_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4vme_moth_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<quintptr>(&data) | 0x1; return exec(reinterpret_cast<const FunctionObject *>(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 |