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/qv4bytecodegenerator_p.h | |
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/qv4bytecodegenerator_p.h')
-rw-r--r-- | src/qml/compiler/qv4bytecodegenerator_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h index 594c97790b..c00c80f0f4 100644 --- a/src/qml/compiler/qv4bytecodegenerator_p.h +++ b/src/qml/compiler/qv4bytecodegenerator_p.h @@ -149,7 +149,7 @@ public: void addInstruction(const InstrData<InstrT> &data) { Instr genericInstr; - genericInstr.Common.instructionType = InstrT; + genericInstr.Nop.instructionType = InstrT; InstrMeta<InstrT>::setDataNoCommon(genericInstr, data); addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr); } @@ -229,7 +229,7 @@ public: Jump addJumpInstruction(const InstrData<InstrT> &data) { Instr genericInstr; - genericInstr.Common.instructionType = InstrT; + genericInstr.Nop.instructionType = InstrT; InstrMeta<InstrT>::setDataNoCommon(genericInstr, data); return Jump(this, addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr), offsetof(InstrData<InstrT>, offset)); } |