Closed Bug 1718952 Opened 3 years ago Closed 3 years ago

Move JSScript::hasNonSyntacticScope() check from VM to frontend

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(4 files)

After we drop support for cloning between syntactic/non-syntactic scopes, we don't have to check JSScript::hasNonSyntacticScope() in VM side, but can emit different opcodes for each case.

  • JSOp::BindGName / JSOp::BindName
  • JSOp::GetGName / JSOp::GetName
  • JSOp::GlobalThis
  • JSOp::InitGLexical
Attachment #9233831 - Attachment description: WIP: Bug 1718952 - Part 1: Move JSScript::hasNonSyntacticScope check for JSOp::BindGName from VM to frontend. r?jandem! → Bug 1718952 - Part 1: Move JSScript::hasNonSyntacticScope check for JSOp::BindGName from VM to frontend. r?jandem!
Attachment #9233832 - Attachment description: WIP: Bug 1718952 - Part 2: Move JSScript::hasNonSyntacticScope check for JSOp::GetGName from VM to frontend. r?jandem! → Bug 1718952 - Part 2: Move JSScript::hasNonSyntacticScope check for JSOp::GetGName from VM to frontend. r?jandem!
Attachment #9233833 - Attachment description: WIP: Bug 1718952 - Part 3: Move JSScript::hasNonSyntacticScope check for JSOp::SetGName from VM to frontend. r?jandem! → Bug 1718952 - Part 3: Move JSScript::hasNonSyntacticScope check for JSOp::SetGName from VM to frontend. r?jandem!
Attachment #9233834 - Attachment description: WIP: Bug 1718952 - Part 4: Add JSOp::NonSyntacticGlobalThis and move JSScript::hasNonSyntacticScope check for JSOp::GlobalThis from VM to frontend. r?jandem! → Bug 1718952 - Part 4: Add JSOp::NonSyntacticGlobalThis and move JSScript::hasNonSyntacticScope check for JSOp::GlobalThis from VM to frontend. r?jandem!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/0f0206b94ea3 Part 1: Move JSScript::hasNonSyntacticScope check for JSOp::BindGName from VM to frontend. r=jandem https://hg.mozilla.org/integration/autoland/rev/bbfd1d551bb3 Part 2: Move JSScript::hasNonSyntacticScope check for JSOp::GetGName from VM to frontend. r=jandem https://hg.mozilla.org/integration/autoland/rev/c79fad509d16 Part 3: Move JSScript::hasNonSyntacticScope check for JSOp::SetGName from VM to frontend. r=jandem https://hg.mozilla.org/integration/autoland/rev/ffaa22c85a02 Part 4: Add JSOp::NonSyntacticGlobalThis and move JSScript::hasNonSyntacticScope check for JSOp::GlobalThis from VM to frontend. r=jandem
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: