c2cf8b11ed
This handles the case where generating bytecode for inlining purposes causes a stack overflow. We just abort inlining but also need to clear pending exceptions. R=bmeurer@chromium.org TEST=mjsunit/regress/regress-crbug-647217 BUG=chromium:647217 Review-Url: https://codereview.chromium.org/2339383002 Cr-Commit-Position: refs/heads/master@{#39448}
14 lines
459 B
JavaScript
14 lines
459 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: --allow-natives-syntax --stack-size=100 --ignition-staging --turbo
|
|
|
|
var source = "return 1" + new Array(2048).join(' + a') + "";
|
|
eval("function g(a) {" + source + "}");
|
|
%SetForceInlineFlag(g);
|
|
|
|
function f(a) { return g(a) }
|
|
%OptimizeFunctionOnNextCall(f);
|
|
try { f(0) } catch(e) {}
|