diff options
Diffstat (limited to 'deps/v8/test/mjsunit/maglev/regress/regress-crbug-1421712.js')
-rw-r--r-- | deps/v8/test/mjsunit/maglev/regress/regress-crbug-1421712.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/maglev/regress/regress-crbug-1421712.js b/deps/v8/test/mjsunit/maglev/regress/regress-crbug-1421712.js new file mode 100644 index 0000000000..b647d5f4b3 --- /dev/null +++ b/deps/v8/test/mjsunit/maglev/regress/regress-crbug-1421712.js @@ -0,0 +1,20 @@ +// 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 --maglev + +function f0(a) { + while (a > 0) { + [115,109,-1,96,127,5,,1,9223372036854775806,17,2,0,103]; + const v35 = Math.round(-1e-15); + Math[v35]; + a = 0; + } + return f0; +} + +%PrepareFunctionForOptimization(f0); +f0(1); +%OptimizeMaglevOnNextCall(f0); +f0(1); |