Closed Bug 663455 Opened 14 years ago Closed 14 years ago

IonMonkey: add functionality useful for dataflow analyses

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rpearl, Assigned: rpearl)

Details

Attachments

(1 file, 1 obsolete file)

For computing available expression sets, we must perform set intersection, and see if the intersection changed anything (that is, we haven't reached a fixed point in the analysis yet). We can trivially do so in one pass, rather than doing a subset check and then performing intersection.
Assignee: general → rpearl
Status: NEW → ASSIGNED
Attachment #538551 - Flags: review?(adrake)
Comment on attachment 538551 [details] [diff] [review] implements intersection + fixedpoint test Review of attachment 538551 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/ion/BitSet.cpp @@ +122,5 @@ > } > + > +// returns true if the intersection caused the contents of the set to change. > +bool BitSet::fixedPointIntersect(const BitSet *other) > +{ Drive-by style nit, the type gets its own line: bool BitSet::fixedPointIntersect(const BitSet *other)
Comment on attachment 538551 [details] [diff] [review] implements intersection + fixedpoint test Review of attachment 538551 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! r+ with dvander's nits addressed.
Comment on attachment 538551 [details] [diff] [review] implements intersection + fixedpoint test Review of attachment 538551 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! r+ with dvander's nits addressed.
Attachment #538551 - Flags: review?(adrake) → review+
This fixes the nit--I ask for a new review because I've added complement, also needed by my analysis phase.
Attachment #538551 - Attachment is obsolete: true
Attachment #538601 - Flags: review?(adrake)
Summary: IonMonkey: add fixed-point test during intersection → IonMonkey: add functionality useful for dataflow analyses
Comment on attachment 538601 [details] [diff] [review] new patch (added functionality) Review of attachment 538601 [details] [diff] [review]: ----------------------------------------------------------------- Looks good with that comment added. ::: js/src/ion/BitSet.h @@ +103,5 @@ > + // O(max): Intersect this set with the given set; return whether the > + // intersection caused the set to change. > + bool fixedPointIntersect(const BitSet *other); > + > + void complement(); Could we get a comment like the ones on the other functions on this?
Attachment #538601 - Flags: review?(adrake) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: