TypeInference: different result in JM and interpreter

RESOLVED FIXED

Status

()

defect
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: jandem, Assigned: bhackett)

Tracking

(Blocks 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fixed-in-jaegermonkey)

Attachments

(1 attachment)

----
function f() {
    var x = NaN;
    if (2 > 0) {}
    var y = {};
    var z = (1234 - x);
    y.foo = z;
    print(z);
}
f();
----
./js -m: 1.060738863e-314
./js: NaN
Posted patch fixSplinter Review
Nice catch!  When breaking an FP register into two normal registers (nasty thing for ICs which will go away eventually), we could clobber the FP register even if it still in use.

http://hg.mozilla.org/projects/jaegermonkey/rev/4d0b24613dd8
Assignee: general → bhackett1024
Whiteboard: fixed-in-jaegermonkey
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.