Closed Bug 619922 Opened 15 years ago Closed 15 years ago

exactgc.as needs to handle fields defined multiple ways

Categories

(Tamarin Graveyard :: Garbage Collection (mmGC), defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Q3 11 - Serrano

People

(Reporter: lhansen, Assigned: lhansen)

References

Details

Attachments

(1 file)

Consider this: #ifdef BLAH Bletch* GC_POINTER_IFDEF(p, BLAH) #else Blotch* GC_POINTER_IFNDEF(p, BLAH) #endif This is sensible, but the exactgc.as script disallows it because it only sees the double definition of p. It must also take the conditions under which p is defined into consideration before signalling a duplicate field. This generalizes to #if ... #elif ... #else ... #endif chains. It can be tricky for the script to tell if two conditions are the same, especially with #undef and #define in the mix, but textual comparison of conditions probably goes a long way (and with #undef and #define, there's no telling what the generated code will do anyway). Alternately, the script can simply disable duplicate-field checking for fields that are always conditionally defined, which seems appropriate.
Blocks: 617938, 576307
Summary: exactgc.as needs to be handle fields defined multiple ways → exactgc.as needs to handle fields defined multiple ways
Attached patch Patch — — Splinter Review
Attachment #498338 - Flags: review?(fklockii)
In retrospect, using joiner strings like "!if!", "!ifdef!", and "!ifndef!" would have higher informational value than "!", "@", and "#", so I might change that, but patch stands as it is.
Comment on attachment 498338 [details] [diff] [review] Patch +1 to using self-documenting joiner strings rather than ! @ #. (Seems trivial to do, I cannot think of a drawback...)
Attachment #498338 - Flags: review?(fklockii) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
changeset: 5694:e3d9a7ece390 user: Lars T Hansen <lhansen@adobe.com> summary: Fix 619922 - exactgc.as needs to handle fields defined multiple ways (r=fklockii) http://hg.mozilla.org/tamarin-redux/rev/e3d9a7ece390
Flags: flashplayer-bug-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: