Closed Bug 1969950 Opened 1 year ago Closed 1 year ago

Use JSOp::StrictConstantEq for default arguments

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
141 Branch
Size Estimate XS
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.

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]
Size Estimate: S → XS
Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → debadree333
Status: NEW → ASSIGNED
Assignee: debadree333 → nobody
QA Whiteboard: [qa-triage-done-c142/b141]
Assignee: nobody → debadree333
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: