Split up TOK_EQOP into individual types for all its subtypes

RESOLVED FIXED in mozilla11

Status

()

Core
JavaScript Engine
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Waldo, Assigned: Waldo)

Tracking

Trunk
mozilla11
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 569419 [details] [diff] [review]
Patch

It's really only used to handle equality checks all together, but just putting individual types in a contiguous range and doing a range comparison will work as well.
Attachment #569419 - Flags: review?(cdleary)
This changes a == b == c == d from having constant stack/parse tree depth to linear depth.  Unless someone has evidence that this pattern gets real use (remember the left stuff decays, so you every term compared to true/false from the left hand side), this seems like more intuitive, more intelligent behavior to me.
Attachment #569419 - Flags: review?(cdleary) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/6df63324d385
Target Milestone: --- → mozilla11
https://hg.mozilla.org/mozilla-central/rev/6df63324d385
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.