aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4bytecodegenerator_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-06-14 13:59:31 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-06-20 09:52:45 +0000
commitcdc727b18be7d5dc6d95068ba65001bc76c8bdc3 (patch)
tree50dbe4a141d16c168e0fcb2f2f33e1793788d11c /src/qml/compiler/qv4bytecodegenerator_p.h
parent00d9863c62005487e7d3f619f11094f93733b17b (diff)
Add JumpStrict(Not)Equal instructions to the interpreter
These will simplify foreach and switch handling. Change-Id: I7fb67481d7d1b82b03c03fd0987b182ea9542c7a Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4bytecodegenerator_p.h')
-rw-r--r--src/qml/compiler/qv4bytecodegenerator_p.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4bytecodegenerator_p.h b/src/qml/compiler/qv4bytecodegenerator_p.h
index 383b27e8d1..4a6747094e 100644
--- a/src/qml/compiler/qv4bytecodegenerator_p.h
+++ b/src/qml/compiler/qv4bytecodegenerator_p.h
@@ -126,6 +126,22 @@ public:
return addJumpInstruction(data);
}
+ Q_REQUIRED_RESULT Jump jumpStrictEqual(const QV4::Moth::Param &lhs, const QV4::Moth::Param &rhs)
+ {
+ Instruction::JumpStrictEqual data;
+ data.lhs = lhs;
+ data.rhs = rhs;
+ return addJumpInstruction(data);
+ }
+
+ Q_REQUIRED_RESULT Jump jumpStrictNotEqual(const QV4::Moth::Param &lhs, const QV4::Moth::Param &rhs)
+ {
+ Instruction::JumpStrictNotEqual data;
+ data.lhs = lhs;
+ data.rhs = rhs;
+ return addJumpInstruction(data);
+ }
+
Q_REQUIRED_RESULT Jump setExceptionHandler()
{
Instruction::SetExceptionHandler data;