diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-24 14:10:41 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-28 13:18:36 +0000 |
commit | a4f8b9ae6dfacf9ad5c190cde6098ebf13102f41 (patch) | |
tree | a179acaa281c399ae8f122c70ba450ac82dd88e2 /src/qml/compiler/qv4bytecodegenerator_p.h | |
parent | 011da0cfb69af8d3198f8150a2b7e2857a5ac22f (diff) |
Decode instructions into registers
Don't use the old instruction structures in the VME anymore,
instead directly decode into scoped registers.
Change-Id: Ie03ebad98050ebfd9eb9cc7e9273e5db92884a89
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 a0255b2059..594c97790b 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 = static_cast<Instr::Type>(InstrT); + genericInstr.Common.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 = static_cast<Instr::Type>(InstrT); + genericInstr.Common.instructionType = InstrT; InstrMeta<InstrT>::setDataNoCommon(genericInstr, data); return Jump(this, addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr), offsetof(InstrData<InstrT>, offset)); } |