v8/test/mjsunit/regress/regress-632289.js
rmcilroy aacbdacb89 [Crankshaft] Move don't crankshaft check before EnsureDeoptimizationSupport.
Avoids compiling baseline code when the function isn't able to be
optimized by crankshaft.

BUG=chromium:632289

Review-Url: https://codereview.chromium.org/2194453002
Cr-Commit-Position: refs/heads/master@{#38304}
2016-08-03 15:02:38 +00:00

23 lines
465 B
JavaScript

// 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: --ignition --turbo-from-bytecode --always-opt --allow-natives-syntax
try {
} catch(e) {; }
(function __f_12() {
})();
(function __f_6() {
function __f_3() {
}
function __f_4() {
try {
} catch (e) {
}
}
__f_4();
%OptimizeFunctionOnNextCall(__f_4);
__f_4();
})();