// Copyright 2015 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --turbo-osr --allow-natives-syntaxfunctiontest(e,f,v){assertEquals(e,f(v));assertEquals(e,f(v));assertEquals(e,f(v));}functionfoo(t){for(varxint){for(vari=0;i<2;i++){%OptimizeOsr();}}return5;}test(5,foo,{x:20});functionbar(t){varsum=0;for(varxint){for(vari=0;i<2;i++){%OptimizeOsr();sum+=t[x];}}returnsum;}test(62,bar,{x:20,y:11});