diff options
| author | Lars Knoll <lars.knoll@qt.io> | 2017-08-24 14:18:01 +0200 |
|---|---|---|
| committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-28 13:18:40 +0000 |
| commit | 7ea183a1125df153082f116eaa5e73fb9a68088e (patch) | |
| tree | 82c4441f9347b369bce57bd0927cdd32bec71fa3 /src/qml/compiler/qv4instr_moth.cpp | |
| parent | a4f8b9ae6dfacf9ad5c190cde6098ebf13102f41 (diff) | |
Rename the Common instruction to Nop
And add Wide and XWide instructions that will get used
as prefixes later on.
Change-Id: I993865395ee2ac7d30eba2e41e7b437bfdb54391
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth.cpp')
| -rw-r--r-- | src/qml/compiler/qv4instr_moth.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp index ba52fc5f9a..eccbf07461 100644 --- a/src/qml/compiler/qv4instr_moth.cpp +++ b/src/qml/compiler/qv4instr_moth.cpp @@ -126,7 +126,16 @@ void dumpBytecode(const char *code, int len, int nLocals, int nFormals, int star lastLine = line; else line = -1; - switch (Instr::Type(genericInstr->Common.instructionType)) { + switch (Instr::Type(genericInstr->Nop.instructionType)) { + + MOTH_BEGIN_INSTR(Nop) + MOTH_END_INSTR(Nop) + + MOTH_BEGIN_INSTR(Wide) + MOTH_END_INSTR(Wide) + + MOTH_BEGIN_INSTR(XWide) + MOTH_END_INSTR(XWide) MOTH_BEGIN_INSTR(LoadReg) d << StackSlot::createRegister(instr.reg).dump(nFormals); @@ -543,9 +552,6 @@ void dumpBytecode(const char *code, int len, int nLocals, int nFormals, int star MOTH_BEGIN_INSTR(LoadQmlSingleton) d << instr.name; MOTH_END_INSTR(LoadQmlSingleton) - - default: - Q_UNREACHABLE(); } } } |
