node/deps/v8/test/mjsunit/regress/regress-crbug-1501467.js
Michaël Zasso 09a8440b45
deps: update V8 to 12.2.281.27
PR-URL: https://github.com/nodejs/node/pull/51362
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2024-03-31 15:36:07 +02:00

23 lines
589 B
JavaScript

// 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.
// Flags: --allow-natives-syntax
function __f_1(__v_191) {
var __v_17 = 0;
var __v_18 = __v_191 ? 1 : 2147483648;
for (var __v_19 = 0; __v_19 < 20; __v_19++) {
if (__v_191) %OptimizeOsr();
__v_17 += __v_18;
}
return __v_17 + __v_18;
}
%PrepareFunctionForOptimization(__f_1);
function __f_2(__v_20, __v_22) {
__v_20(true);
assertEquals(45097156608, __v_20());
}
__f_2(__f_1);