~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/jaeger/regalloc-double.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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);