summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp
diff options
context:
space:
mode:
authorJulien Brianceau <jbriance@cisco.com>2014-08-22 11:09:51 +0200
committerJulien Brianceau <jbriance@cisco.com>2014-08-23 02:16:21 +0200
commit8fc64042dfdf7e3ef050f9b64cb77e90f549de32 (patch)
treec3e9cc0fe42384a4878700736602635be86f4f1d /Source/JavaScriptCore/dfg/DFGFixupPhase.cpp
parent84f3a89974631f015d7ab6c82e6fbb84c72fb5f1 (diff)
downloadqtwebkit-8fc64042dfdf7e3ef050f9b64cb77e90f549de32.tar.gz
[mips] Take advantage of integer divide instruction for ArithDiv and ArithMod.
Added MIPS integer divide path for ArithDiv and ArithMod where operands and results are integer. Change-Id: I00d5b58e6e0be39f083676fb0c435b3545d3aca1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGFixupPhase.cpp')
-rw-r--r--Source/JavaScriptCore/dfg/DFGFixupPhase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp b/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp
index ea201d73b..0bbd3f20f 100644
--- a/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp
+++ b/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp
@@ -214,7 +214,7 @@ private:
case ArithDiv: {
if (Node::shouldSpeculateIntegerForArithmetic(node->child1().node(), node->child2().node())
&& node->canSpeculateInteger()) {
- if (isX86() || isARMv7s()) {
+ if (isX86() || isARMv7s() || isMIPS()) {
setUseKindAndUnboxIfProfitable<Int32Use>(node->child1());
setUseKindAndUnboxIfProfitable<Int32Use>(node->child2());
break;