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)
Tamarin Graveyard
Garbage Collection (mmGC)
Tracking
(Not tracked)
RESOLVED
FIXED
Q3 11 - Serrano
People
(Reporter: lhansen, Assigned: lhansen)
References
Details
Attachments
(1 file)
|
2.23 KB,
patch
|
pnkfelix
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Updated•15 years ago
|
| Assignee | ||
Updated•15 years ago
|
Summary: exactgc.as needs to be handle fields defined multiple ways → exactgc.as needs to handle fields defined multiple ways
| Assignee | ||
Comment 1•15 years ago
|
||
Attachment #498338 -
Flags: review?(fklockii)
| Assignee | ||
Comment 2•15 years ago
|
||
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 3•15 years ago
|
||
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+
| Assignee | ||
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 4•15 years ago
|
||
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
Updated•15 years ago
|
Flags: flashplayer-bug-
You need to log in
before you can comment on or make changes to this bug.
Description
•