Closed Bug 621319 Opened 14 years ago Closed 13 years ago

TypeInference: JM: incorrect result for bitwise shift and eval

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jandem, Unassigned)

References

Details

This test case:
---
function f() {
    var x = 0, y = 12.3, z = 0;
    eval("z = y << [1][0]");
    y = x;
    return z;
}
assertEq(f(), 24);
---
Fails with -m:

typein:7: Error: Assertion failed: got 858993460, expected 24
The first bad revision is:
changeset:   0cd7e38f0b39
user:        Brian Hackett
date:        Fri Oct 29 08:05:55 2010 -0700
summary:     [INFER] Javascript type inference, bug 557407.
I can't reproduce this on either JM tip or revision 0cd7e38f0b39. (We're in http://hg.mozilla.org/projects/jaegermonkey, right?)
When building from http://hg.mozilla.org/projects/jaegermonkey you probably want to build with --enable-type-inference.
WFM-ish.

The first good revision is:
changeset:   a2e6ee94f4bf
user:        Brian Hackett
date:        Mon Nov 01 09:43:25 2010 -0700
summary:     Kludge allowing JM to use type inference without needing recompilation, bug 608746.
This looks fixed, doesn't reproduce with -m -n -a
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.