Debian Codegraph @

js/src/jit-test/tests/baseline/bug1238815.js

raw
1 // This program crashes the ARM code generator because the machine code is
2 // longer than the 32MB range of ARM branch instructions.
3 //
4 // Baseline should not attempt to compile the script.
5
6 i = 1;
7 function test(s) {
8 return eval("line0 = Error.lineNumber\ndebugger\n" + s);
9 }
10 function repeat(s) {
11 return Array(65 << 13).join(s)
12 }
13 long_expr = repeat(" + i")
14 long_throw_stmt = long_expr;
15 test(long_throw_stmt);