diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-10-20 17:19:25 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-07 09:00:48 +0000 |
commit | e72306a6f2aeb2bddbb462c205db8fad2fb5a1a4 (patch) | |
tree | 3b83e1cead58d97c2b055283487500472ca7d698 /src/qml/jsruntime/qv4lookup.cpp | |
parent | bc5ff76e5afe6356bebb344c9a5d8b304e852f3c (diff) |
Further cleanup JSCallData
Avoid allocations on the JS stack if possible
Change-Id: I344cd6dceb6264314f9d22c94db22b22d1d24d14
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4lookup.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4lookup.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4lookup.cpp b/src/qml/jsruntime/qv4lookup.cpp index 87c396be73..ec3482c1e9 100644 --- a/src/qml/jsruntime/qv4lookup.cpp +++ b/src/qml/jsruntime/qv4lookup.cpp @@ -401,7 +401,7 @@ ReturnedValue Lookup::getterAccessor0(Lookup *l, ExecutionEngine *engine, const return Encode::undefined(); JSCallData jsCallData(scope); - jsCallData->thisObject = object; + *jsCallData->thisObject = object; return getter->call(jsCallData); } } @@ -423,7 +423,7 @@ ReturnedValue Lookup::getterAccessor1(Lookup *l, ExecutionEngine *engine, const return Encode::undefined(); JSCallData jsCallData(scope); - jsCallData->thisObject = object; + *jsCallData->thisObject = object; return getter->call(jsCallData); } } @@ -448,7 +448,7 @@ ReturnedValue Lookup::getterAccessor2(Lookup *l, ExecutionEngine *engine, const return Encode::undefined(); JSCallData jsCallData(scope); - jsCallData->thisObject = object; + *jsCallData->thisObject = object; return getter->call(jsCallData); } } @@ -503,7 +503,7 @@ ReturnedValue Lookup::primitiveGetterAccessor0(Lookup *l, ExecutionEngine *engin return Encode::undefined(); JSCallData jsCallData(scope); - jsCallData->thisObject = object; + *jsCallData->thisObject = object; return getter->call(jsCallData); } } @@ -523,7 +523,7 @@ ReturnedValue Lookup::primitiveGetterAccessor1(Lookup *l, ExecutionEngine *engin return Encode::undefined(); JSCallData jsCallData(scope); - jsCallData->thisObject = object; + *jsCallData->thisObject = object; return getter->call(jsCallData); } } |