Debian Codegraph @

js/src/jit-test/tests/ion/bug1762343.js

raw
1 // |jit-test| --fast-warmup; --no-threads
2
3 function placeholder() {}
4
5 function main() {
6 const fhash = placeholder;
7 const v9 = -62980826;
8
9 let v21;
10 for (let i = 0; i < 32; i++) {
11 // Call Math.fround() to enable the Float32 specialization pass.
12 Math.fround(123);
13
14 // Math.trunc() can produce Float32.
15 const v18 = Math.trunc(-9007199254740992);
16
17 // |valueOf| is always true, but can't be inferred at compile-time.
18 const v20 = valueOf ? v18 : -9007199254740992;
19
20 // Use the Float32 value.
21 v21 = v20 && v9;
22 }
23
24 assertEq(v21, -62980826);
25 }
26
27 main();