regress-348280.js 407 Bytes
Newer Older
1 2 3 4 5 6
// Copyright 2014 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

7 8 9
function baz(f) {
  f();
}
10 11 12 13
function goo() {}
baz(goo);
baz(goo);

14 15 16 17
function bar(p) {
  if (p == 0) baz(1);
};
%PrepareFunctionForOptimization(bar);
18 19 20 21
bar(1);
bar(1);
%OptimizeFunctionOnNextCall(bar);
bar(1);