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.
5 // Flags: --allow-natives-syntax
6 __v_0 = new Uint8ClampedArray(10);
7 for (var i = 0; i < 10; i++) {
10 function __f_12(__v_6) {
12 __v_1 = __v_0[__v_6 + 10];
17 assertEquals(0xAA, __f_12(-1));
18 %OptimizeFunctionOnNextCall(__f_12);
19 assertEquals(0xAA, __f_12(-1));