2023-12-22 09:02:51 +01:00
|
|
|
// Copyright 2023 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.
|
|
|
|
|
2025-04-29 08:03:15 +02:00
|
|
|
// Flags: --allow-natives-syntax
|
2023-12-22 09:02:51 +01:00
|
|
|
|
|
|
|
function f0() {
|
|
|
|
const v5 = [];
|
|
|
|
v5.d = undefined;
|
|
|
|
for (let v6 = 0; v6 < 5; v6++) {
|
|
|
|
function f7(a8, ) {
|
|
|
|
a8.d = v6;
|
|
|
|
}
|
|
|
|
%PrepareFunctionForOptimization(f7);
|
|
|
|
[-1225281237,v5].reduceRight(f7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%PrepareFunctionForOptimization(f0);
|
|
|
|
f0();
|
|
|
|
%OptimizeFunctionOnNextCall(f0);
|
|
|
|
f0();
|