Closed
Bug 1433970
Opened 6 years ago
Closed 6 years ago
AsmJSCache.cpp Parameter 'aWriteParams' is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: jeanluc.bonnafoux, Assigned: jeanluc.bonnafoux)
Details
Attachments
(1 file, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20180118215408 Steps to reproduce: Static code analysis highlights that aWriteParams should be passed by (const) reference Actual results: In current code, parameter is passed by value Expected results: It could be passed as a (const) reference which is usually faster and recommended in C++.
Summary: AsmJSCache.h Parameter 'aWriteParams' is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++. → AsmJSCache.cpp Parameter 'aWriteParams' is passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.
Comment hidden (mozreview-request) |
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8946323 [details] Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference https://reviewboard.mozilla.org/r/216306/#review222062 Thanks. ::: commit-message-2cc71:1 (Diff revision 1) > +Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference r?froydnj Nit: there's usually no need to specify the file you're modifying in the commit message; it's self-evident from the patch. I think I'd also say "pass WriteParams parameters by const reference", since that's talking about the specific values being passed, rather than the argument names, which could be anything.
Attachment #8946323 -
Flags: review?(nfroyd) → review+
Keywords: checkin-needed
Comment 4•6 years ago
|
||
Thank you for the patch. You have to set the issue open in Review Board as fixed by commit so the patch can land.
Assignee: nobody → jeanluc.bonnafoux
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(jeanluc.bonnafoux)
Keywords: checkin-needed
Comment on attachment 8946323 [details] Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference https://reviewboard.mozilla.org/r/216306/#review222088 ::: commit-message-2cc71:1 (Diff revision 1) > +Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference r?froydnj Ok thanks
Keywords: checkin-needed
Comment 6•6 years ago
|
||
(In reply to jbonnafo from comment #5) > Comment on attachment 8946323 [details] > Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference > > https://reviewboard.mozilla.org/r/216306/#review222088 > > ::: commit-message-2cc71:1 > (Diff revision 1) > > +Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference r?froydnj > > Ok thanks You need to address the issue by uploading a commit with a new commit message, not just by marking the issue as resolved.
Flags: needinfo?(jeanluc.bonnafoux)
Keywords: checkin-needed
Comment 7•6 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #6) > You need to address the issue by uploading a commit with a new commit > message, not just by marking the issue as resolved. To be clearer: upload a new commit with a fixed commit message, and then mark the issue as resolved.
Comment on attachment 8946323 [details] Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference https://reviewboard.mozilla.org/r/216306/#review222822 ::: commit-message-2cc71:1 (Diff revision 1) > +Bug 1433970 - AsmJSCache.cpp pass aWriteParams by const reference r?froydnj Hello, I have amended the commit message accordingly. I hope it is better now. Thanks,
Updated•6 years ago
|
Priority: -- → P2
Comment hidden (mozreview-request) |
Attachment #8946323 -
Attachment is obsolete: true
Assignee | ||
Comment 10•6 years ago
|
||
I have tried a new proposal, i hope it is better now.
Comment 11•6 years ago
|
||
mozreview-review |
Comment on attachment 8947607 [details] Bug 1433970 - pass WriteParams parameters by const reference https://reviewboard.mozilla.org/r/217296/#review223302 Thank you!
Attachment #8947607 -
Flags: review?(nfroyd) → review+
Comment 12•6 years ago
|
||
(In reply to jbonnafo from comment #10) > I have tried a new proposal, i hope it is better now. Yes, it's better, thanks.
Flags: needinfo?(nfroyd)
Keywords: checkin-needed
Comment 13•6 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/492fb9c24ba5 pass WriteParams parameters by const reference r=froydnj
Keywords: checkin-needed
Comment 14•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/492fb9c24ba5
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•