// 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: --allow-natives-syntaxfunctionfoo(x){%DeoptimizeFunction(run);returnx;}functionrun(){varline=newArray(2);for(varn=3;n>0;n=n-1){if(n<foo(line.length))line=newArray(n);line[0]=n;}}