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

Side by Side 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 unified diff | Download patch
« src/deoptimizer.cc ('K') | « src/deoptimizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --allow-natives-syntax
6
7 function assertEquals(found) { };
8
9 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
10 return __f_25.arguments;
11 }
12
13 function __f_30(limit) {
14 var __v_29 = 0;
15 var __v_30 = {};
16 for (; __v_29 < limit; __v_29++) {
17 __v_30.y = +__v_30.y;
18 __f_25();
19 }
20 }
21
22 __f_30(1);
23 __f_30(1);
24 %OptimizeFunctionOnNextCall(__f_30);
25 assertEquals(__f_30(1));
26 assertEquals(__f_30(2));
OLDNEW
« 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