Closed Bug 1855819 Opened 2 years ago Closed 2 years ago

Eliminate the use of `let` and `const` bindings in self hosted code, and disallow them entirely

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

References

(Blocks 1 open bug)

Details

(Keywords: perf-alert)

Attachments

(2 files)

Since we don't want to pay TDZ costs in self hosted code where we simply should just do a better job, we should disallow let and var bindings in self hosted code.

Assignee: nobody → mgaudet
Status: NEW → ASSIGNED

Patch mechanically produced with regexp; changes to defines are coming from
prettier or eslint, whichever is auto-formatting JS.

Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5152bad4c966 Replace use of `let` and `const` in self-hosted code with `var` r=arai https://hg.mozilla.org/integration/autoland/rev/2351d7a1a27d Emit syntax error on use of lexical variable types in self-hosted code r=arai
Severity: -- → N/A
Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

(In reply to Pulsebot from comment #3)

Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5152bad4c966
Replace use of let and const in self-hosted code with var r=arai
https://hg.mozilla.org/integration/autoland/rev/2351d7a1a27d
Emit syntax error on use of lexical variable types in self-hosted code r=arai

== Change summary for alert #39865 (as of Mon, 09 Oct 2023 09:40:49 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
0.31% Base Content JS windows11-64-2009-shippable-qr fission 1,579,648.00 -> 1,574,808.00
0.30% Base Content JS linux1804-64-shippable-qr fission 1,577,462.67 -> 1,572,728.00
0.30% Base Content JS macosx1015-64-shippable-qr fission 1,578,272.00 -> 1,573,544.00
0.28% Base Content JS linux1804-64-shippable-qr fission 1,577,134.67 -> 1,572,728.00

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=39865

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: