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 6__v_0 = new Uint8ClampedArray(10); 7for (var i = 0; i < 10; i++) { 8 __v_0[i] = 0xAA; 9} 10function __f_12(__v_6) { 11 if (__v_6 < 0) { 12 __v_1 = __v_0[__v_6 + 10]; 13 return __v_1; 14 } 15} 16 17assertEquals(0xAA, __f_12(-1)); 18%OptimizeFunctionOnNextCall(__f_12); 19assertEquals(0xAA, __f_12(-1)); 20