diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-12 17:09:31 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-08-18 10:01:21 +0000 |
commit | 575a256feb03db8ddba3c19c8ad85c2c69b7f59d (patch) | |
tree | 4e6abb946fa8b425058057a19fdca78e8fd1830a /src | |
parent | 26dfa98e6bb21089dc6caaed49ac69a57b1b3b24 (diff) |
Remove the now unused LoadThis instruction
Change-Id: I2770ec4ef173cfa51c5ebd6600788de79684b953
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/compiler/qv4instr_moth.cpp | 3 | ||||
-rw-r--r-- | src/qml/compiler/qv4instr_moth_p.h | 5 | ||||
-rw-r--r-- | src/qml/jsruntime/qv4vme_moth.cpp | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp index e23f85ca96..4691815bf0 100644 --- a/src/qml/compiler/qv4instr_moth.cpp +++ b/src/qml/compiler/qv4instr_moth.cpp @@ -519,9 +519,6 @@ void dumpBytecode(const char *code, int len, int nFormals) MOTH_END_INSTR(Line) #endif // QT_NO_QML_DEBUGGER - MOTH_BEGIN_INSTR(LoadThis) - MOTH_END_INSTR(LoadThis) - MOTH_BEGIN_INSTR(LoadQmlContext) d << instr.result.dump(nFormals); MOTH_END_INSTR(LoadQmlContext) diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h index 2d3113fabe..770f3be7a8 100644 --- a/src/qml/compiler/qv4instr_moth_p.h +++ b/src/qml/compiler/qv4instr_moth_p.h @@ -172,7 +172,6 @@ QT_BEGIN_NAMESPACE F(Mul, mul) \ F(Sub, sub) \ F(BinopContext, binopContext) \ - F(LoadThis, loadThis) \ F(LoadQmlContext, loadQmlContext) \ F(LoadQmlImportedScripts, loadQmlImportedScripts) \ F(LoadQmlSingleton, loadQmlSingleton) @@ -711,9 +710,6 @@ union Instr uint alu; // offset inside the runtime methods StackSlot lhs; }; - struct instr_loadThis { - MOTH_INSTR_HEADER - }; struct instr_loadQmlContext { MOTH_INSTR_HEADER StackSlot result; @@ -832,7 +828,6 @@ union Instr instr_mul mul; instr_sub sub; instr_binopContext binopContext; - instr_loadThis loadThis; instr_loadQmlContext loadQmlContext; instr_loadQmlImportedScripts loadQmlImportedScripts; instr_loadQmlSingleton loadQmlSingleton; diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp index 22e16cbe99..1189f0167f 100644 --- a/src/qml/jsruntime/qv4vme_moth.cpp +++ b/src/qml/jsruntime/qv4vme_moth.cpp @@ -1084,10 +1084,6 @@ QV4::ReturnedValue VME::exec(const FunctionObject *jsFunction, CallData *callDat MOTH_END_INSTR(Line) #endif // QT_NO_QML_DEBUGGER - MOTH_BEGIN_INSTR(LoadThis) - STORE_ACCUMULATOR(static_cast<ExecutionContext &>(frame.jsFrame->context).thisObject()); - MOTH_END_INSTR(LoadThis) - MOTH_BEGIN_INSTR(LoadQmlContext) STACK_VALUE(instr.result) = Runtime::method_loadQmlContext(static_cast<QV4::NoThrowEngine*>(engine)); MOTH_END_INSTR(LoadQmlContext) |