Title: [193505] trunk/Source/_javascript_Core
- Revision
- 193505
- Author
- [email protected]
- Date
- 2015-12-04 18:26:38 -0800 (Fri, 04 Dec 2015)
Log Message
[JSC] Fix Value::returnsBool() after r193436
https://bugs.webkit.org/show_bug.cgi?id=151902
Patch by Benjamin Poulain <[email protected]> on 2015-12-04
Reviewed by Saam Barati.
I forgot to carry a test from Branch and Select :(
* b3/B3Value.cpp:
(JSC::B3::Value::returnsBool):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (193504 => 193505)
--- trunk/Source/_javascript_Core/ChangeLog 2015-12-05 01:48:52 UTC (rev 193504)
+++ trunk/Source/_javascript_Core/ChangeLog 2015-12-05 02:26:38 UTC (rev 193505)
@@ -1,3 +1,15 @@
+2015-12-04 Benjamin Poulain <[email protected]>
+
+ [JSC] Fix Value::returnsBool() after r193436
+ https://bugs.webkit.org/show_bug.cgi?id=151902
+
+ Reviewed by Saam Barati.
+
+ I forgot to carry a test from Branch and Select :(
+
+ * b3/B3Value.cpp:
+ (JSC::B3::Value::returnsBool):
+
2015-12-04 Andy VanWagoner <[email protected]>
[INTL] Implement Number.prototype.toLocaleString in ECMA-402
Modified: trunk/Source/_javascript_Core/b3/B3Value.cpp (193504 => 193505)
--- trunk/Source/_javascript_Core/b3/B3Value.cpp 2015-12-05 01:48:52 UTC (rev 193504)
+++ trunk/Source/_javascript_Core/b3/B3Value.cpp 2015-12-05 02:26:38 UTC (rev 193505)
@@ -266,7 +266,8 @@
case Const32:
return asInt32() == 0 || asInt32() == 1;
case BitAnd:
- return child(1)->hasInt() && child(1)->asInt() & 1;
+ return child(1)->isInt32(1)
+ || (child(0)->returnsBool() && child(1)->hasInt() && child(1)->asInt() & 1);
case Equal:
case NotEqual:
case LessThan:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes