comparison: js/src/jit-test/tests/jaeger/regalloc-double.js
js/src/jit-test/tests/jaeger/regalloc-double.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 // register allocation involving doubles. |
|
2 |
|
3 function foo(a,b) { |
|
4 var c; |
|
5 if (a < b) { |
|
6 c = a + 1; |
|
7 } else { |
|
8 c = 0.5; |
|
9 } |
|
10 return c; |
|
11 } |
|
12 assertEq(foo(0, 1), 1); |