Closed
Bug 974284
Opened 12 years ago
Closed 12 years ago
Do a better job of commoning up cases in overload resolution
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(1 file)
Given this IDL:
long setTimeout(Function handler, optional long timeout = 0, any... arguments);
long setTimeout(DOMString handler, optional long timeout = 0, any... unused);
we currently generate a switch with three cases (for 1, 2, 3 arguments) which are completely identical.
We do have something that tries to avoid generating identical cases (by falling through to later cases) in the special case of a method with trailing optional arguments as one of the overloads, but that doesn't cover this situation.
Patch coming up to generalize the fallthrough behavior to the setTimeout case above.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #8378108 -
Flags: review?(khuey)
Attachment #8378108 -
Flags: review?(khuey) → review+
| Assignee | ||
Comment 2•12 years ago
|
||
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla30
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•