Closed Bug 1381461 Opened 7 years ago Closed 7 years ago

Fix some problems with PropertyReadNeedsTypeBarrier heuristics

Categories

(Core :: JavaScript Engine: JIT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jandem, Assigned: jandem)

Details

Attachments

(2 files, 1 obsolete file)

      No description provided.
The updateObserved code skipped the receiver object and so we could get bogus type information when a property exists both on the receiver and on some prototype object.

I also added breaks for a few other cases, it seems best to be conservative with these optimizations.
Attachment #8887019 - Flags: review?(bhackett1024)
Attachment #8887019 - Attachment is obsolete: true
Attachment #8887019 - Flags: review?(bhackett1024)
Attachment #8887020 - Flags: review?(bhackett1024)
Brian, you removed this code as part of a larger patch (bug 1198861 part 2), but that patch got backed out for regressing Octane.

I don't see any regressions with this patch on any of the shell benchmarks and I don't trust this heuristic to not backfire on the polymorphic mess that's modern web frameworks, so I think we should try this again.
Attachment #8887025 - Flags: review?(bhackett1024)
Attachment #8887020 - Flags: review?(bhackett1024) → review+
Attachment #8887025 - Flags: review?(bhackett1024) → review+
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9f89cff48991
part 1 - Don't skip the receiver object in PropertyReadNeedsTypeBarrier. r=bhackett
Landing these separately to make perf regressions easier to track down.
Keywords: leave-open
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/922f398557af
part 2 - Remove the similar-objects heuristic in PropertyReadNeedsTypeBarrier. r=bhackett
Keywords: leave-open
https://hg.mozilla.org/mozilla-central/rev/9f89cff48991
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: