diff options
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator_p.h')
-rw-r--r-- | src/qml/compiler/qv4bytecodegenerator_p.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h index 5c7480fc89..384fb22aa3 100644 --- a/src/qml/compiler/qv4bytecodegenerator_p.h +++ b/src/qml/compiler/qv4bytecodegenerator_p.h @@ -92,26 +92,33 @@ public: addInstructionHelper(InstrMeta<InstrT>::Size, genericInstr); } - Q_REQUIRED_RESULT Jump addInstruction(const Instruction::Jump &data) + Q_REQUIRED_RESULT Jump jump() { + Instruction::Jump data; return addJumpInstruction(data); } - Q_REQUIRED_RESULT Jump addInstruction(const Instruction::SetExceptionHandler &data) + Q_REQUIRED_RESULT Jump jumpEq(const QV4::Moth::Param &cond) { + Instruction::JumpEq data; + data.condition = cond; return addJumpInstruction(data); } - Q_REQUIRED_RESULT Jump addInstruction(const Instruction::JumpEq &data) + Q_REQUIRED_RESULT Jump jumpNe(const QV4::Moth::Param &cond) { + Instruction::JumpNe data; + data.condition = cond; return addJumpInstruction(data); } - Q_REQUIRED_RESULT Jump addInstruction(const Instruction::JumpNe &data) + Q_REQUIRED_RESULT Jump setExceptionHandler() { + Instruction::SetExceptionHandler data; return addJumpInstruction(data); } + unsigned newTemp(); |