v8/test/mjsunit/regress/regress-491481.js
jarin a893a5e59a Exclude non-optimizable functions from OptimizeFunctionOnNextCall.
BUG=chromium:491481
R=mstarzinger@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/1143223004

Cr-Commit-Position: refs/heads/master@{#28614}
2015-05-26 08:47:04 +00:00

16 lines
335 B
JavaScript

// 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
try {
%OptimizeFunctionOnNextCall(print);
try {
__f_16();
} catch(e) { print(e); }
try {
__f_10();
} catch(e) {; }
} catch(e) {}