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

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

Issue 935623002: Convert to immutable heap number when materializing arguments object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweak Created 5 years, 10 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/deoptimizer.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-457935.js
diff --git a/test/mjsunit/array-push12.js b/test/mjsunit/regress/regress-457935.js
similarity index 57%
copy from test/mjsunit/array-push12.js
copy to test/mjsunit/regress/regress-457935.js
index f4c15b484b41197c9007113ecf8f91fe909cc5d3..d34db05de439a20b54f81b45eb7fdbcf35ac48b4 100644
--- a/test/mjsunit/array-push12.js
+++ b/test/mjsunit/regress/regress-457935.js
@@ -4,20 +4,23 @@
// Flags: --allow-natives-syntax
-var a = [];
-for (var i = -20; i < 0; ++i) {
- a[i] = 0;
-}
+function dummy(x) { };
function g() {
- [].push.apply(a, arguments);
+ return g.arguments;
}
-function f() {
- g();
+function f(limit) {
+ var i = 0;
+ var o = {};
+ for (; i < limit; i++) {
+ o.y = +o.y;
+ g();
+ }
}
-g();
-g();
+f(1);
+f(1);
%OptimizeFunctionOnNextCall(f);
-f();
+dummy(f(1));
+dummy(f(2));
« no previous file with comments | « src/deoptimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698