Closed Bug 1355025 Opened 7 years ago Closed 7 years ago

BytecodeEmitter::isRestParameter can be simplified now that it's no longer fallible

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)

BytecodeEmitter::isRestParameter() always returns `true`, so we can replace the `result` out-param and instead directly return the boolean result.
Attached patch bug1355025.patchSplinter Review
I've also dropped the MOZ_MUST_USE because isRestParameter is no longer fallible.
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #8856451 - Flags: review?(arai.unmht)
Attachment #8856451 - Flags: review?(arai.unmht) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/540fcd0fa44e
Directly return result instead of using out-param in BytecodeEmitter::isRestParameter. r=arai
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/540fcd0fa44e
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: