v8/test/mjsunit/regress/regress-1313419.js
Jakob Gruber 30ba798cdc [osr] Remove the --function-context-specialization flag
This flag was a leftover from very early Turbofan days and serves no
purpose. Non-OSR TF code automatically uses function context
specialization (FCS) when appropriate without looking at the flag
value. OSR TF code should never use FCS since it is cached by the
SharedFunctionInfo (not by the JSFunction).

Bug: v8:12161
Change-Id: Ifb5a10918dbdf34a7164f7e665a230698b793e9e
Fixed: chromium:1313419
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3571895
Auto-Submit: Jakob Linke <jgruber@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Jakob Linke <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79802}
2022-04-06 08:14:53 +00:00

28 lines
616 B
JavaScript

// Copyright 2022 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: --interrupt-budget=100 --function-context-specialization
function __f_0() {
return function __f_1() {
__v_0.p = 42;
for (let __v_2 = 0; __v_2 < 100; __v_2++) {
try { this.p(); } catch (e) {}
}
this.p = __v_0;
};
}
var __v_0 = __f_0();
var __v_1 = __f_0();
__v_1.prototype = {
p() {
this.q = new __v_0();
for (let __v_3 = 0; __v_3 < 200; __v_3++);
}
};
__v_0.prototype = {
p() {}
};
new __v_1();