nodejs/deps/v8/test/mjsunit/compiler/regress-324782095.js
Michaël Zasso 1d29d81c69 deps: update V8 to 12.3.219.16
PR-URL: https://github.com/nodejs/node/pull/52293
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
2024-04-19 08:39:47 +00:00

30 lines
600 B
JavaScript

// Copyright 2024 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: --expose-gc --allow-natives-syntax
const v0 = {};
function f0() {}
const v1 = new f0();
function f1(v4, v5) {
v4.d = v0;
function f3() {}
const v6 = new f3();
let v7 = 0;
for (let v8 = ++v7; v8 <= v7; ++v8) {}
return v5;
}
f1(v1);
gc();
f1(v1);
function f2() {
const v9 = Array();
v9.findLast(Array);
v9.reduce(f1, 0);
}
%PrepareFunctionForOptimization(f2);
f2();
%OptimizeFunctionOnNextCall(f2);
f2();