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 h(a) { 8 if (!a) return false; 9 print(); 10 } 11 12 function g(a) { return a.length; } 13 g('0'); 14 g('1'); 15 16 function f() { 17 h(g([])); 18 } 19 20 f(); 21 %OptimizeFunctionOnNextCall(f); 22 f(); 23