diff options
author | Ulf Hermann <[email protected]> | 2021-05-17 16:38:25 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2021-06-10 11:53:19 +0200 |
commit | e20650e0702259b4be79be85a3d27e45db42efc1 (patch) | |
tree | 7536cee98f4cc502774f807d1a609940cd20d4f5 /src/qml/jsruntime/qv4function_p.h | |
parent | 7fa28f98824a94396106eadfc028b329985a0cfc (diff) |
Eliminate JS call frame from metatypes calls
If we call an AOT-compiled function we never need the JavaScript call
frame. We can just skip its setup and save some overhead.
Change-Id: I39dc2ca6eea5b5a66f3b87b642a310534cecf6cd
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4function_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h index 7577161c01..45f2a6263a 100644 --- a/src/qml/jsruntime/qv4function_p.h +++ b/src/qml/jsruntime/qv4function_p.h @@ -100,9 +100,10 @@ public: return compilationUnit->runtimeStrings[i]; } - bool call(const Value *thisObject, void **a, const QMetaType *types, int argc, - const ExecutionContext *context); - ReturnedValue call(const Value *thisObject, const Value *argv, int argc, const ExecutionContext *context); + bool call(QObject *thisObject, void **a, const QMetaType *types, int argc, + ExecutionContext *context); + ReturnedValue call(const Value *thisObject, const Value *argv, int argc, + ExecutionContext *context); const char *codeData; |