Closed Bug 718850 Opened 10 years ago Closed 10 years ago

IonMonkey: JSOP_AND cannot be used in loops.

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sstangl, Assigned: sstangl)

Details

Attachments

(1 file)

We currently fail to compile the following script:

> function f() {
> 	var i = 1;
> 	while (i && 1 == 1)
> 	{ }
> }
> 
> f();

The IonBuilder assumes that both sides of the && have a common join point, which is only useful for code like |var x 1 && 7;|.

This bug is preventing us from running v8's crypto test.
Attachment #589348 - Flags: review?(jdemooij)
Attachment #589348 - Flags: review?(jdemooij) → review+
http://hg.mozilla.org/projects/ionmonkey/rev/49bc8d35a21e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.