aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4ssa.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-10-11 23:20:16 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-12 19:01:11 +0200
commitdc46921c837c531bc4483f830fcaf59f859604d7 (patch)
treefd09e72cda06446757a85e3459960aa3c695eeb5 /src/qml/compiler/qv4ssa.cpp
parent41b027c3992483b29940a8cc891ead8d35cec966 (diff)
Implement >>> inline for the JIT backend
The unsigned right shift operations can use a signed int as input, unifying the handling with the other shift operations. The only difference now is in the type of the return value. Change-Id: Ia9b83568951d1c1c77322d07cd734e2c37d34573 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4ssa.cpp')
-rw-r--r--src/qml/compiler/qv4ssa.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4ssa.cpp b/src/qml/compiler/qv4ssa.cpp
index ee2607a086..c9ff6ad53c 100644
--- a/src/qml/compiler/qv4ssa.cpp
+++ b/src/qml/compiler/qv4ssa.cpp
@@ -1722,12 +1722,8 @@ protected:
case OpLShift:
case OpRShift:
- run(e->left, SInt32Type);
- run(e->right, SInt32Type);
- break;
-
case OpURShift:
- run(e->left, UInt32Type);
+ run(e->left, SInt32Type);
run(e->right, SInt32Type);
break;