aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jit/qv4jithelpers_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-09-12 22:47:07 +0200
committerLars Knoll <lars.knoll@qt.io>2018-09-14 19:21:25 +0000
commit6982d0d6290c137468749bb8ab2f2e20dfa453fd (patch)
tree62b0c22c5bbff0b2da8031930b355815b88a0c8a /src/qml/jit/qv4jithelpers_p.h
parent2beb77c81a1f3585c15099a09ba8b2192c6da824 (diff)
Optimize the JIT helpers
Match the argument order to the lookup functions being called to minimize register shuffling that needs to be done inside the function. Change-Id: I0c55234d0c86b524dad021a519c6416d62d34c52 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jit/qv4jithelpers_p.h')
-rw-r--r--src/qml/jit/qv4jithelpers_p.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/jit/qv4jithelpers_p.h b/src/qml/jit/qv4jithelpers_p.h
index dd68452e7f..bd5f65034d 100644
--- a/src/qml/jit/qv4jithelpers_p.h
+++ b/src/qml/jit/qv4jithelpers_p.h
@@ -65,11 +65,12 @@ namespace JIT {
namespace Helpers {
void convertThisToObject(ExecutionEngine *engine, Value *t);
-ReturnedValue loadGlobalLookup(ExecutionEngine *engine, Function *f, int index);
+ReturnedValue loadGlobalLookup(Function *f, ExecutionEngine *engine, int index);
ReturnedValue toObject(ExecutionEngine *engine, const Value &obj);
ReturnedValue exp(const Value &base, const Value &exp);
-ReturnedValue getLookup(ExecutionEngine *engine, Function *f, int index, const Value &base);
-void setLookup(Function *f, int index, Value &base, const Value &value);
+ReturnedValue getLookup(Function *f, ExecutionEngine *engine, const Value &base, int index);
+void setLookupStrict(Function *f, int index, Value &base, const Value &value);
+void setLookupSloppy(Function *f, int index, Value &base, const Value &value);
void pushBlockContext(Value *stack, int index);
void cloneBlockContext(Value *contextSlot);
void pushScriptContext(Value *stack, ExecutionEngine *engine, int index);