Closed Bug 842444 Opened 10 years ago Closed 10 years ago

BaselineCompiler: Add optimized GETELEM stub for native prototype-based accesses

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: djvj, Assigned: djvj)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This ends up hitting in ss-date-format-xparb pretty heavily.
Assignee: general → kvijayan
Attached patch PatchSplinter Review
The previous GetElem_Native optimized stub only worked on properties directly held by the object.  This adds support for optimizing properties stored on prototypes.

The design is similar to that of the GetProp_Native + GetProp_NativePrototype stubs.  A single compiler method is used to compile both of them.
Attachment #715346 - Flags: review?(bhackett1024)
Attachment #715346 - Flags: review?(bhackett1024) → review+
https://hg.mozilla.org/projects/ionmonkey/rev/a5636acd5d79
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.