diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-07-01 11:33:04 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-07-03 08:09:13 +0000 |
commit | 6e79a00cad2f5dd09bdf40e594a65af58b370d9d (patch) | |
tree | dc00a93fae797b24a53c0f858ae70904dc6f169c /src/qml/jsruntime/qv4vme_moth.cpp | |
parent | dcbdb306f4442199384a71d532a3610a84d13fd5 (diff) |
Get rid of the duplication for the GetLookup instructions
GetLookup and GetLookupA were doing exactly the same thing. Only keep
the version that expects the base object in the accumulator and
rename it to GetLookup.
Change-Id: Ia14256880cef23f7b70d8c7e6bb74aba371b8d9a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4vme_moth.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4vme_moth.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp index 39eaa3a25c..83d1aa3250 100644 --- a/src/qml/jsruntime/qv4vme_moth.cpp +++ b/src/qml/jsruntime/qv4vme_moth.cpp @@ -588,18 +588,11 @@ QV4::ReturnedValue VME::interpret(CppStackFrame *frame, ExecutionEngine *engine, MOTH_BEGIN_INSTR(GetLookup) STORE_IP(); - QV4::Lookup *l = function->compilationUnit->runtimeLookups + index; - acc = l->getter(l, engine, STACK_VALUE(base)); - CHECK_EXCEPTION; - MOTH_END_INSTR(GetLookup) - - MOTH_BEGIN_INSTR(GetLookupA) - STORE_IP(); STORE_ACC(); QV4::Lookup *l = function->compilationUnit->runtimeLookups + index; acc = l->getter(l, engine, accumulator); CHECK_EXCEPTION; - MOTH_END_INSTR(GetLookupA) + MOTH_END_INSTR(GetLookup) MOTH_BEGIN_INSTR(StoreProperty) STORE_IP(); |