1 // Copyright 2016 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 f(arr, i) { 8 arr[i] = 50; 9 } 10 11 function boom(dummy) { 12 var arr = new Array(10); 13 f(arr, 10); 14 if (dummy) { 15 f(arr, -2147483648); 16 } 17 } 18 19 boom(false); 20 %OptimizeFunctionOnNextCall(boom); 21 boom(false); 22