Unreviewed build fix after r170107.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jun 2014 21:50:31 +0000 (21:50 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jun 2014 21:50:31 +0000 (21:50 +0000)
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileArithMod):
Use non-template sub for armv7s.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170119 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp

index a2af5e5..03c119c 100644 (file)
@@ -1,3 +1,11 @@
+2014-06-18  Alex Christensen  <achristensen@webkit.org>
+
+        Unreviewed build fix after r170107.
+
+        * dfg/DFGSpeculativeJIT.cpp:
+        (JSC::DFG::SpeculativeJIT::compileArithMod):
+        Use non-template sub for armv7s.
+
 2014-06-18  David Kilzer  <ddkilzer@apple.com>
 
         -[JSContext setName:] leaks NSString
index 3847e67..64d3ff0 100644 (file)
@@ -3498,7 +3498,11 @@ void SpeculativeJIT::compileArithMod(Node* node)
         // arithMode() == Arith::Unchecked?
         // https://bugs.webkit.org/show_bug.cgi?id=126444
         speculationCheck(Overflow, JSValueRegs(), 0, m_jit.branchMul32(JITCompiler::Overflow, quotientThenRemainderGPR, divisorGPR, multiplyAnswerGPR));
+#if CPU(APPLE_ARMV7S)
+        m_jit.assembler().sub(quotientThenRemainderGPR, dividendGPR, multiplyAnswerGPR);
+#else
         m_jit.assembler().sub<32>(quotientThenRemainderGPR, dividendGPR, multiplyAnswerGPR);
+#endif
 
         // If the user cares about negative zero, then speculate that we're not about
         // to produce negative zero.