Title: [193965] branches/safari-601-branch/Source/_javascript_Core
Revision
193965
Author
[email protected]
Date
2015-12-11 10:26:31 -0800 (Fri, 11 Dec 2015)

Log Message

Merge r193480. rdar://problem/23849785

Modified Paths

Added Paths

Diff

Modified: branches/safari-601-branch/Source/_javascript_Core/ChangeLog (193964 => 193965)


--- branches/safari-601-branch/Source/_javascript_Core/ChangeLog	2015-12-11 18:26:28 UTC (rev 193964)
+++ branches/safari-601-branch/Source/_javascript_Core/ChangeLog	2015-12-11 18:26:31 UTC (rev 193965)
@@ -1,5 +1,20 @@
 2015-12-11  Matthew Hanson  <[email protected]>
 
+        Merge r193480. rdar://problem/23849785
+
+    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-11  Matthew Hanson  <[email protected]>
+
         Merge r193470. rdar://problem/23849785
 
     2015-12-04  Filip Pizlo  <[email protected]>

Added: branches/safari-601-branch/Source/_javascript_Core/tests/stress/ftl-has-a-bad-time.js (0 => 193965)


--- branches/safari-601-branch/Source/_javascript_Core/tests/stress/ftl-has-a-bad-time.js	                        (rev 0)
+++ branches/safari-601-branch/Source/_javascript_Core/tests/stress/ftl-has-a-bad-time.js	2015-12-11 18:26:31 UTC (rev 193965)
@@ -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

Reply via email to