aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4regalloc.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-09-13 14:42:42 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-25 09:46:05 +0200
commit0bf86704fc1a5239cf3e8b468ccbafe8d9878eec (patch)
tree544adad2482df9cdc808a14630643639e868d3d4 /src/qml/compiler/qv4regalloc.cpp
parent68c75745f89d76c09eaafc11792de5870457a452 (diff)
V4 JIT: generate code for unary not operator.
Change-Id: I00a47d261a76db0b938f8c9300be9afc06b42d02 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4regalloc.cpp')
-rw-r--r--src/qml/compiler/qv4regalloc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4regalloc.cpp b/src/qml/compiler/qv4regalloc.cpp
index 926526c5fd..2c13a5fdd1 100644
--- a/src/qml/compiler/qv4regalloc.cpp
+++ b/src/qml/compiler/qv4regalloc.cpp
@@ -392,6 +392,9 @@ protected: // IRDecoder
addDef(targetTemp);
bool needsCall = true;
+ if (oper == OpNot && sourceTemp->type == V4IR::BoolType && targetTemp->type == V4IR::BoolType)
+ needsCall = false;
+
#if 0 // TODO: change masm to generate code
switch (oper) {
case OpIfTrue: