diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-02-19 16:50:38 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-04 18:18:19 +0100 |
commit | fe38b5c906de656c3e1a9491e9382e002d886f11 (patch) | |
tree | c888f839749e9b49db3d43ea742b40cb377963b0 /src/qml/jsruntime/qv4jscall_p.h | |
parent | 86e9e61cadd0f5bcdbd466eb21dfc363a1fedb6d (diff) |
Engine: Cleanup method argument passing
Instead of arguments around as a pointer to
[argc, metaTypeId1, metaTypeId12, ...]
pass argc and a pointer to [QMetaType1, QMetaType2] around.
Moreover, make use of the fact that we now carry the metatype instead of
only the id in a few places, to avoid id -> metatype lookups.
Task-number: QTBUG-82931
Change-Id: Ib00e4d793727f85f3358a8162d1aac972daab3d3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4jscall_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4jscall_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4jscall_p.h b/src/qml/jsruntime/qv4jscall_p.h index e0b47c76e3..66ff1e7c3b 100644 --- a/src/qml/jsruntime/qv4jscall_p.h +++ b/src/qml/jsruntime/qv4jscall_p.h @@ -112,8 +112,8 @@ ReturnedValue FunctionObject::call(const JSCallData &data) const return call(data.thisObject, data.args, data.argc); } -void populateJSCallArguments(ExecutionEngine *v4, JSCallData &jsCall, - void **args, int *types); +void populateJSCallArguments(ExecutionEngine *v4, JSCallData &jsCall, int argc, + void **args, const QMetaType *types); struct ScopedStackFrame { Scope &scope; |