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)

x86
macOS
defect
Not set
normal

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.
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla30
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: