Title: [161466] branches/jsCStack/Source/_javascript_Core
Revision
161466
Author
fpi...@apple.com
Date
2014-01-07 16:30:07 -0800 (Tue, 07 Jan 2014)

Log Message

Add a test that got lost in some merge.

* tests/stress/phantom-arguments-set-local-then-exit-in-same-block.js: Added.

Modified Paths

Added Paths

Diff

Modified: branches/jsCStack/Source/_javascript_Core/ChangeLog (161465 => 161466)


--- branches/jsCStack/Source/_javascript_Core/ChangeLog	2014-01-08 00:27:06 UTC (rev 161465)
+++ branches/jsCStack/Source/_javascript_Core/ChangeLog	2014-01-08 00:30:07 UTC (rev 161466)
@@ -1,5 +1,11 @@
 2014-01-07  Filip Pizlo  <fpi...@apple.com>
 
+        Add a test that got lost in some merge.
+
+        * tests/stress/phantom-arguments-set-local-then-exit-in-same-block.js: Added.
+
+2014-01-07  Filip Pizlo  <fpi...@apple.com>
+
         --showDFGDisassembly=true shouldn't show baseline JIT stubs
         https://bugs.webkit.org/show_bug.cgi?id=126593
 

Added: branches/jsCStack/Source/_javascript_Core/tests/stress/phantom-arguments-set-local-then-exit-in-same-block.js (0 => 161466)


--- branches/jsCStack/Source/_javascript_Core/tests/stress/phantom-arguments-set-local-then-exit-in-same-block.js	                        (rev 0)
+++ branches/jsCStack/Source/_javascript_Core/tests/stress/phantom-arguments-set-local-then-exit-in-same-block.js	2014-01-08 00:30:07 UTC (rev 161466)
@@ -0,0 +1,17 @@
+function foo(o) {
+    var a = arguments;
+    var result = o.f;
+    for (var i = 1; i < a.length; ++i)
+        result += a[i];
+    return result;
+}
+
+noInline(foo);
+
+for (var i = 0; i < 100; ++i)
+    foo({f:42}, 1, 2, 3);
+
+var result = foo({g:40, f:41}, 1, 2.5, 3);
+if (result != 47.5)
+    throw "Bad result: " + result;
+
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to