Title: [193480] trunk/Source/_javascript_Core
- Revision
- 193480
- Author
- [email protected]
- Date
- 2015-12-04 14:54:26 -0800 (Fri, 04 Dec 2015)
Log Message
Having a bad time has a really awful time when it runs at the same time as the JIT
https://bugs.webkit.org/show_bug.cgi?id=151882
rdar://problem/23547038
Unreviewed, really adding the test this time.
* tests/stress/ftl-has-a-bad-time.js: Added.
(foo):
Modified Paths
Added Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (193479 => 193480)
--- trunk/Source/_javascript_Core/ChangeLog 2015-12-04 22:41:44 UTC (rev 193479)
+++ trunk/Source/_javascript_Core/ChangeLog 2015-12-04 22:54:26 UTC (rev 193480)
@@ -1,3 +1,14 @@
+2015-12-04 Filip Pizlo <[email protected]>
+
+ Having a bad time has a really awful time when it runs at the same time as the JIT
+ https://bugs.webkit.org/show_bug.cgi?id=151882
+ rdar://problem/23547038
+
+ Unreviewed, really adding the test this time.
+
+ * tests/stress/ftl-has-a-bad-time.js: Added.
+ (foo):
+
2015-12-04 Mark Lam <[email protected]>
Snippefy bitwise operators for the baseline JIT.
Added: trunk/Source/_javascript_Core/tests/stress/ftl-has-a-bad-time.js (0 => 193480)
--- trunk/Source/_javascript_Core/tests/stress/ftl-has-a-bad-time.js (rev 0)
+++ trunk/Source/_javascript_Core/tests/stress/ftl-has-a-bad-time.js 2015-12-04 22:54:26 UTC (rev 193480)
@@ -0,0 +1,18 @@
+function foo(p) {
+ return p ? [42] : null;
+}
+
+noInline(foo);
+
+// Make sure we think that foo() allocates int arrays.
+for (var i = 0; i < 100; ++i)
+ foo(true);
+
+// Now have a bad time.
+var array = new Array();
+Array.prototype.__defineSetter__("0", function() { });
+
+// Finally, get foo() to compile in the FTL. But don't allocate anymore arrays.
+for (var i = 0; i < 100000; ++i)
+ foo(false);
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes