2015-07-27 08:43:54 +02:00
|
|
|
// 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-syntax
|
|
|
|
|
2015-08-23 06:09:40 -07:00
|
|
|
function foo(x) {
|
|
|
|
if (x === undefined) return;
|
|
|
|
while (true) {
|
|
|
|
while (1 || 2) { }
|
|
|
|
f();
|
2015-07-27 08:43:54 +02:00
|
|
|
}
|
|
|
|
}
|
2019-03-15 18:35:06 +05:30
|
|
|
%PrepareFunctionForOptimization(foo);
|
2015-07-27 08:43:54 +02:00
|
|
|
%OptimizeFunctionOnNextCall(foo);
|
2015-08-23 06:09:40 -07:00
|
|
|
foo();
|