Debian Codegraph @

js/src/jit-test/tests/warp/bug1716231.js

raw
1 // |jit-test| --fast-warmup; --ion-offthread-compile=off
2
3 const too_big_for_float32 = 67109020;
4
5 function call_with_no_ic_data() {}
6
7 function foo() {
8 call_with_no_ic_data();
9
10 let x = too_big_for_float32;
11 let result;
12
13 // We OSR in this loop.
14 for (let i = 0; i < 100; i++) {
15 const float32 = Math.fround(0);
16
17 // Create a phi with one float32-typed input
18 // and one OSRValue input.
19 result = float32 || x;
20 }
21
22 return result;
23 }
24
25 assertEq(foo(), too_big_for_float32);