Closed Bug 1237566 Opened 8 years ago Closed 8 years ago

Bake in global this value if possible in IonBuilder::jsop_functionthis

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
If a non-strict function uses |this|, and the this-argument is undefined/null, it resolves to the global or the WindowProxy. Since bug 1125423, we can do the boxing in IonBuilder, but I forgot to do that there.

It shows up in some benchmarks like Octane-TypeScript and sunspider 3d-cube.
Attachment #8705085 - Flags: review?(hv1989)
Comment on attachment 8705085 [details] [diff] [review]
Patch

Review of attachment 8705085 [details] [diff] [review]:
-----------------------------------------------------------------

That is handy.
Attachment #8705085 - Flags: review?(hv1989) → review+
https://hg.mozilla.org/mozilla-central/rev/70094106841c
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: