Closed Bug 580064 Opened 14 years ago Closed 12 years ago

JM: PIC: Leap-before-you look GETELEM pattern

Categories

(Core :: JavaScript Engine, enhancement)

x86_64
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: cdleary, Unassigned)

References

Details

In SunSpider's date-format-xparb there's a snippet that does:

    if (Date.formatFunctions[format] == null) {
        Date.createNewFormat(format);
    }

... where createNewFormat adds that property to the formatFunctions object. It may be a common pattern we can optimize for -- currently we disable PICs on first missed lookup. It's only a 4k trip count loop in SunSpider, so deferring till we have a benchmark we can see good results on.
Severity: normal → enhancement
JM removed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.