Closed Bug 1351388 Opened 7 years ago Closed 7 years ago

InIRGenerator::tryAttachNativeIn should handle non-data properties

Categories

(Core :: JavaScript Engine: JIT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: evilpie, Assigned: tcampbell)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This method currently checks IsCacheableGetPropReadSlotForIonOrCacheIR, but that is too restrictive. This will fail for getters and also for Array#length, which is a special kind of getter.

I think we can just not call IsCacheableGetPropReadSlotForIonOrCacheIR, but maybe there is something weird I am forgetting.
Component: JavaScript Engine → JavaScript Engine: JIT
Looks reasonable. The cacheable check is covered by LookupPropertyPure checking for a static-prototype chain until the holder. We do need to check for prop.found() still.

Good catch.
Assignee: nobody → tcampbell
Attachment #8852142 - Flags: review?(jdemooij)
Comment on attachment 8852142 [details]
Bug 1351388 - Allow non-data properties in InIRGenerator::tryAttachNativeIn

https://reviewboard.mozilla.org/r/124352/#review127136

Nice find.
Attachment #8852142 - Flags: review?(jdemooij) → review+
Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dc3e129f4433
Allow non-data properties in InIRGenerator::tryAttachNativeIn r=jandem
https://hg.mozilla.org/mozilla-central/rev/dc3e129f4433
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: