Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1677)

Unified Diff: test/mjsunit/regress/regress-467481.js

Issue 1020473006: Version 4.2.77.9 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.2
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-467481.js
diff --git a/test/mjsunit/array-push12.js b/test/mjsunit/regress/regress-467481.js
similarity index 52%
copy from test/mjsunit/array-push12.js
copy to test/mjsunit/regress/regress-467481.js
index f4c15b484b41197c9007113ecf8f91fe909cc5d3..dcb12d89b0b0c857c28fdd55ff941a9bfcadf941 100644
--- a/test/mjsunit/array-push12.js
+++ b/test/mjsunit/regress/regress-467481.js
@@ -4,20 +4,19 @@
// Flags: --allow-natives-syntax
-var a = [];
-for (var i = -20; i < 0; ++i) {
- a[i] = 0;
+function f(a1, a2) {
+ var v7 = a2[0];
+ var v8 = a1[0];
+ a2[0] = 0.3;
}
-
-function g() {
- [].push.apply(a, arguments);
-}
-
-function f() {
- g();
-}
-
-g();
-g();
+v6 = new Array(1);
+v6[0] = "tagged";
+f(v6, [1]);
+v5 = new Array(1);
+v5[0] = 0.1;
+f(v5, v5);
+v5 = new Array(10);
+f(v5, v5);
%OptimizeFunctionOnNextCall(f);
-f();
+f(v5, v5);
+v5[0];
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698