comparison: js/src/jit-test/tests/jaeger/recompile/callic.js
js/src/jit-test/tests/jaeger/recompile/callic.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 |
|
2 /* Recompilation while being processed by a call IC. */ |
|
3 |
|
4 var g; |
|
5 function foo() { |
|
6 for (g = 0; g < 5; g++) { |
|
7 bar(); |
|
8 } |
|
9 function bar() { |
|
10 with ({}) { |
|
11 eval("g = undefined;"); |
|
12 } |
|
13 } |
|
14 } |
|
15 foo(); |
|
16 |
|
17 assertEq(g, NaN); |
|
18 |
|
19 /* Recompilation while being processed by a native call IC. */ |
|
20 |
|
21 function native() { |
|
22 var x; |
|
23 x = x; |
|
24 x = Math.ceil(NaN); |
|
25 assertEq(x, NaN); |
|
26 } |
|
27 native(); |