b297fcc50d
Add a --max-serializer-nesting flag which defaults to 25. Fixed: chromium:1034768 Change-Id: Ib68f26ce4bf53db297b25d16a046d275beaec642 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1969895 Commit-Queue: Maya Lekova <mslekova@chromium.org> Reviewed-by: Michael Stanton <mvstanton@chromium.org> Cr-Commit-Position: refs/heads/master@{#65486}
25 lines
621 B
Plaintext
25 lines
621 B
Plaintext
// Copyright 2019 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 --max-serializer-nesting=4
|
|
function f1() {
|
|
return 1;
|
|
}
|
|
|
|
function f2() { return f1(); }
|
|
function f3() { return f2(); }
|
|
function f4() { return f3(); }
|
|
function f5() { return f4(); }
|
|
|
|
%PrepareFunctionForOptimization(f1);
|
|
%PrepareFunctionForOptimization(f2);
|
|
%PrepareFunctionForOptimization(f3);
|
|
%PrepareFunctionForOptimization(f4);
|
|
%PrepareFunctionForOptimization(f5);
|
|
|
|
f5();
|
|
f5();
|
|
%OptimizeFunctionOnNextCall(f5);
|
|
f5();
|