Bug 1077349 - IonMonkey: Check early recovery of arguments. r=chicken-good
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Fri, 10 Oct 2014 18:23:45 +0200
changeset 209868 a1a6b6736374d0e886ca14940ca9b7ae5bad18d8
parent 209867 50288676ddbc40b549e552e48e212c86020dc042
child 209869 e72ed2e97e83b574adead215e9e01888ffa6aec9
push id27628
push userkwierso@gmail.com
push dateSat, 11 Oct 2014 02:00:16 +0000
treeherdermozilla-central@f74ad36bb97b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschicken-good
bugs1077349
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1077349 - IonMonkey: Check early recovery of arguments. r=chicken-good
js/src/jit-test/tests/ion/bug1077349.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1077349.js
@@ -0,0 +1,20 @@
+
+function boo() {
+    return foo.arguments[0];
+}
+
+function foo(a,b,c) {
+    if (a == 0) {
+        a ^= 4;
+        return boo();
+    }
+
+    return undefined;
+}
+
+function inlined() {
+    return foo.apply({}, arguments);
+}
+
+assertEq(inlined(1,2,3), undefined);
+assertEq(inlined(0,1,2), 4);