Eliminate the use of `let` and `const` bindings in self hosted code, and disallow them entirely
Categories
(Core :: JavaScript Engine, task, P2)
Tracking
()
| 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 | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Patch mechanically produced with regexp; changes to defines are coming from
prettier or eslint, whichever is auto-formatting JS.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5152bad4c966
https://hg.mozilla.org/mozilla-central/rev/2351d7a1a27d
Comment 5•2 years ago
|
||
(In reply to Pulsebot from comment #3)
Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5152bad4c966
Replace use ofletandconstin self-hosted code withvarr=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
Description
•