Closed Bug 952942 Opened 11 years ago Closed 10 years ago

Compile array comprehensions

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

I was just looking at a fuzz bug and noticed we don't Baseline/Ion-compile this expression due to the JSOP_ARRAYPUSH op:

    print([x for (x in a) if (x < 10)]);

This is one of the few remaining ops we don't JIT at all, but it should be pretty easy to slow-path this, at least for Baseline.
Depends on: 952944
Very simple patch to compile JSOP_ARRAYPUSH.
Attachment #8397897 - Flags: review?(kvijayan)
Attachment #8397897 - Flags: review?(kvijayan) → review+
Blocks: 989348
https://hg.mozilla.org/mozilla-central/rev/9e523f572459
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: