Closed
Bug 1969950
Opened 1 year ago
Closed 1 year ago
Use JSOp::StrictConstantEq for default arguments
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox141 | --- | fixed |
People
(Reporter: jandem, Assigned: debadree333)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [sp3][js-perf-next])
Attachments
(2 files)
It would be nice to use JSOp::StrictConstantEq for default function arguments such as function(x = 1) {}. We currently emit JSOp::Undefined followed by JSOp::StrictEq for this.
| Reporter | ||
Comment 1•1 year ago
|
||
js-perf-next: This should be a matter of emitting a different op in DefaultEmitter. We should also do a (quick) audit to see if there are other places where we emit StrictEq/StrictNe that could use the new op instead.
Size Estimate: --- → S
Whiteboard: [sp3][js-perf-next]
Updated•1 year ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-912
| Reporter | ||
Updated•1 year ago
|
Size Estimate: S → XS
Updated•1 year ago
|
Severity: -- → N/A
Priority: -- → P3
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → debadree333
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•1 year ago
|
||
Pushed by jdemooij@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/f50da362dd98
https://hg.mozilla.org/integration/autoland/rev/bef475eacfbf
Use StrictConstantEq in undefined comparison in default arguments. r=jandem
https://github.com/mozilla-firefox/firefox/commit/82ec33139322
https://hg.mozilla.org/integration/autoland/rev/b707ebd9af04
Replace StrictEq with ConstantStrictEq in emitSpreadArgumentsTest. r=jandem
Comment 5•1 year ago
|
||
| bugherder | ||
https://github.com/mozilla-firefox/firefox/commit/f50da362dd989ddac29a00bb25cfd3d9e97fd0e5
https://hg.mozilla.org/mozilla-central/rev/bef475eacfbf
https://github.com/mozilla-firefox/firefox/commit/82ec331393220912862bc4c3cf065b79e398dd39
https://hg.mozilla.org/mozilla-central/rev/b707ebd9af04
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox141:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
Updated•1 year ago
|
Assignee: debadree333 → nobody
QA Whiteboard: [qa-triage-done-c142/b141]
| Reporter | ||
Updated•1 year ago
|
Assignee: nobody → debadree333
You need to log in
before you can comment on or make changes to this bug.
Description
•