Title: [193435] trunk/Source/_javascript_Core
Revision
193435
Author
[email protected]
Date
2015-12-04 12:29:49 -0800 (Fri, 04 Dec 2015)

Log Message

[JSC] Add doubleRem() to FTLB3Output
https://bugs.webkit.org/show_bug.cgi?id=151851

Patch by Benjamin Poulain <[email protected]> on 2015-12-04
Reviewed by Geoffrey Garen.

* ftl/FTLB3Output.h:
(JSC::FTL::Output::doubleRem):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (193434 => 193435)


--- trunk/Source/_javascript_Core/ChangeLog	2015-12-04 20:27:37 UTC (rev 193434)
+++ trunk/Source/_javascript_Core/ChangeLog	2015-12-04 20:29:49 UTC (rev 193435)
@@ -1,5 +1,15 @@
 2015-12-04  Benjamin Poulain  <[email protected]>
 
+        [JSC] Add doubleRem() to FTLB3Output
+        https://bugs.webkit.org/show_bug.cgi?id=151851
+
+        Reviewed by Geoffrey Garen.
+
+        * ftl/FTLB3Output.h:
+        (JSC::FTL::Output::doubleRem):
+
+2015-12-04  Benjamin Poulain  <[email protected]>
+
         [JSC] Add signExt() to FTLB3Output
         https://bugs.webkit.org/show_bug.cgi?id=151853
 

Modified: trunk/Source/_javascript_Core/ftl/FTLB3Output.h (193434 => 193435)


--- trunk/Source/_javascript_Core/ftl/FTLB3Output.h	2015-12-04 20:27:37 UTC (rev 193434)
+++ trunk/Source/_javascript_Core/ftl/FTLB3Output.h	2015-12-04 20:29:49 UTC (rev 193435)
@@ -133,7 +133,7 @@
     LValue doubleSub(LValue left, LValue right) { return m_block->appendNew<B3::Value>(m_proc, B3::Sub, origin(), left, right); }
     LValue doubleMul(LValue left, LValue right) { return m_block->appendNew<B3::Value>(m_proc, B3::Mul, origin(), left, right); }
     LValue doubleDiv(LValue left, LValue right) { return m_block->appendNew<B3::Value>(m_proc, B3::Div, origin(), left, right); }
-    LValue doubleRem(LValue left, LValue right) { CRASH(); }
+    LValue doubleRem(LValue left, LValue right) { return callWithoutSideEffects(B3::Double, fmod, left, right); }
     LValue doubleNeg(LValue value)
     {
         return sub(doubleZero, value);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to