Closed Bug 1718635 Opened 3 years ago Closed 3 years ago

Relax JSOp::GImplicitThis requirement

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

in bug 1718623, I verified that script cloning doesn't happen between syntactic/non-syntactic scope.

There's a requirement about JSOp::GImplicitThis because of the cloning between syntactic/non-syntactic scope, but given above (and we're going to remove script cloning in bug 1662152),
we can relax the requirement and emit JSOp::Undefined for global unqualified function calls.

(In reply to Tooru Fujisawa [:arai] from comment #0)

in bug 1718623, I verified that script cloning doesn't happen between syntactic/non-syntactic scope.

This is true also after switching from script cloning to stencil instantiation,
that script compiled against syntactic scope isn't instantiated for non-syntactic scope.

Attachment #9233830 - Attachment description: WIP: Bug 1718635 - Emit JSOp::Undefined instead of JSOp::GImplicitThis if there's no non-syntactic scope when calling unqualified function. r?tcampbell! → Bug 1718635 - Emit JSOp::Undefined instead of JSOp::GImplicitThis if there's no non-syntactic scope when calling unqualified function. r?tcampbell!
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/3658a80b874d
Emit JSOp::Undefined instead of JSOp::GImplicitThis if there's no non-syntactic scope when calling unqualified function. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: