OLD | NEW |
---|---|
(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)); | |
OLD | NEW |