Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 1 | // Copyright 2014 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 --debug-code |
| 6 | |
| 7 | var __v_6 = {}; |
| 8 | __v_6 = new Int32Array(5); |
| 9 | for (var i = 0; i < __v_6.length; i++) __v_6[i] = 0; |
| 10 | |
| 11 | function __f_7(N) { |
| 12 | for (var i = -1; i < N; i++) { |
| 13 | __v_6[i] = i; |
| 14 | } |
| 15 | } |
| 16 | __f_7(1); |
| 17 | %OptimizeFunctionOnNextCall(__f_7); |
| 18 | __f_7(__v_6.length); |