Closed Bug 232132 Opened 21 years ago Closed 21 years ago

[FIXr]XBL property compilation should really not need to copy the method bodies

Categories

(Core :: XBL, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(3 files)

Method compilation uses dependent strings and just doesn't assign directly into the union. Property compilation should behave similarly. timeless, if you get a chance to work on this, that would be great; otherwise I'll do it sometime....
Attached patch Proposed patchSplinter Review
Attached patch Same as diff -wSplinter Review
Comment on attachment 140788 [details] [diff] [review] Same as diff -w timeless, bryner, could you review? The basic idea is to compile into a temporary and then delete the text member before assigning into the union. The rest is just combining some common code into the superclass.
Attachment #140788 - Flags: superreview?(bryner)
Attachment #140788 - Flags: review?(timeless)
Priority: -- → P1
Summary: XBL property compilation should really not need to copy the method bodies → [FIX]XBL property compilation should really not need to copy the method bodies
Target Milestone: --- → mozilla1.7alpha
Comment on attachment 140788 [details] [diff] [review] Same as diff -w Note: I used MPL for the new file, since this is just a bit-for-bit copy of some existing MPL code (and I left hyatt as the original author for the same reason).
Er, "I used NPL". ;)
Attachment #140788 - Flags: superreview?(bryner) → superreview+
Comment on attachment 140788 [details] [diff] [review] Same as diff -w The refcounting for error cases in nsXBLProtoImplMember::AddJSGCRoot / nsXBLProtoImplMember::RemoveJSGCRoot is faulty (leaky iirc) and could be fixed. (this isn't a blocker as the handling not changed by this patch)
Attachment #140788 - Flags: review?(timeless) → review+
Summary: [FIX]XBL property compilation should really not need to copy the method bodies → [FIXr]XBL property compilation should really not need to copy the method bodies
Target Milestone: mozilla1.7alpha → mozilla1.7beta
Fix checked in for 1.7b
Status: NEW → RESOLVED
Closed: 21 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: