2016-04-05 12:29:43 +00:00
|
|
|
// Copyright 2016 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
|
|
|
|
|
|
|
|
function h(a) {
|
|
|
|
if (!a) return false;
|
|
|
|
print();
|
|
|
|
}
|
|
|
|
|
2019-06-12 14:00:50 +00:00
|
|
|
function g(a) {
|
|
|
|
return a.length;
|
|
|
|
}
|
2016-04-05 12:29:43 +00:00
|
|
|
g('0');
|
|
|
|
g('1');
|
|
|
|
|
|
|
|
function f() {
|
|
|
|
h(g([]));
|
2019-06-12 14:00:50 +00:00
|
|
|
};
|
|
|
|
%PrepareFunctionForOptimization(f);
|
2016-04-05 12:29:43 +00:00
|
|
|
f();
|
|
|
|
%OptimizeFunctionOnNextCall(f);
|
|
|
|
f();
|