Closed Bug 1461929 Opened 6 years ago Closed 6 years ago

Use FillArgumentsFromArraylike in WrappedAsyncFunction and WrappedAsyncGenerator

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

- WrappedAsyncFunction and WrappedAsyncGenerator could use FillArgumentsFromArraylike to copy the argument values.
- And while there let's remove some unnecessary rooting and local variables.
Attached patch bug1461929.patchSplinter Review
- Changes WrappedAsyncFunction and WrappedAsyncGenerator to use FillArgumentsFromArraylike to avoid code duplication to fill the call arguments.
- And while there I've also removed some unused locals and removed unnecessary rooting when no GC can happen.
Attachment #8976087 - Flags: review?(arai.unmht)
Comment on attachment 8976087 [details] [diff] [review]
bug1461929.patch

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

Thank you!
Attachment #8976087 - Flags: review?(arai.unmht) → review+
Pushed by aiakab@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6163ca526d24
Use FillArgumentsFromArraylike for async functions and async generators. r=arai
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/6163ca526d24
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: