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

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: 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
« src/deoptimizer.cc ('K') | « 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/regress/regress-457935.js b/test/mjsunit/regress/regress-457935.js
new file mode 100644
index 0000000000000000000000000000000000000000..db907b344125a16f76c3b45ceb971e7f2b6920e1
--- /dev/null
+++ b/test/mjsunit/regress/regress-457935.js
@@ -0,0 +1,26 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --allow-natives-syntax
+
+function assertEquals(found) { };
+
+function __f_25() {
Igor Sheludko 2015/02/17 15:07:54 I think it would be better to get rid of __X_ ugli
Jarin 2015/02/17 15:20:48 Done (but we do keep the underscores in other test
+ return __f_25.arguments;
+}
+
+function __f_30(limit) {
+ var __v_29 = 0;
+ var __v_30 = {};
+ for (; __v_29 < limit; __v_29++) {
+ __v_30.y = +__v_30.y;
+ __f_25();
+ }
+}
+
+ __f_30(1);
+ __f_30(1);
+%OptimizeFunctionOnNextCall(__f_30);
+assertEquals(__f_30(1));
+assertEquals(__f_30(2));
« src/deoptimizer.cc ('K') | « src/deoptimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698