Closed Bug 1360201 Opened 7 years ago Closed 7 years ago

emitDestructuringOpsArray emits "dupat 0" instead of "dup"

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

|dis(function(){}){}|

shows:
...
00018:  dupat 0                         # [] [][Symbol.iterator](...) [][Symbol.iterator](...)
...

We should emit a simple "dup" here.
Attached patch bug1360201.patchSplinter Review
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #8862513 - Flags: review?(shu)
Comment on attachment 8862513 [details] [diff] [review]
bug1360201.patch

Review of attachment 8862513 [details] [diff] [review]:
-----------------------------------------------------------------

Nice simplification.
Attachment #8862513 - Flags: review?(shu) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e05917890799
Emit |dup| instead of |dupat 0| when BytecodeEmitter::emitDupAt is called with zero. r=shu
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/e05917890799
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: