2014-06-26 06:32:51 +00:00
|
|
|
// 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.
|
|
|
|
|
2017-01-26 17:39:09 +00:00
|
|
|
// Flags: --crankshaft
|
2014-06-26 06:32:51 +00:00
|
|
|
|
|
|
|
Debug = debug.Debug;
|
|
|
|
|
|
|
|
Debug.setListener(function() {});
|
|
|
|
|
|
|
|
function f() {}
|
|
|
|
f();
|
|
|
|
f();
|
|
|
|
%OptimizeFunctionOnNextCall(f);
|
|
|
|
f();
|
|
|
|
assertOptimized(f);
|
|
|
|
|
|
|
|
Debug.setListener(null);
|