Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 var v = []; | |
| 8 | |
| 9 function foo() { | |
| 10 v[0] = 5; | |
| 11 v[-0] = 27; | |
| 12 return v[0]; | |
| 13 } | |
| 14 | |
| 15 assertEquals(27, foo()); | |
| 16 %OptimizeFunctionOnNextCall(foo); | |
| 17 assertEquals(27, foo()); | |
| OLD | NEW |