Closed Bug 1605263 Opened 4 years ago Closed 4 years ago

Replace uses of this->parseInfo_ with getParseInfo calls in Parser.cpp

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: mgaudet, Assigned: robert.m.rico, Mentored)

Details

(Keywords: good-first-bug, Whiteboard: [lang=c++])

Attachments

(1 file, 1 obsolete file)

Now that we're using ParseInfo a bit more, it reads more and more peculiar to use this->parseInfo_. In many cases we need to this-> qualify because of templatization; it would be nice if we didn't have to and could just straight use getParseInfo() if possible.

Even if not though, using getParseInfo() as the idiom would be a step forward IMO.

Can I solve this? I'm new to contributing to mozilla. Thanks!

I'm not aware this is an immediate priority for anyone, such that they'd be likely to trample on you while you were doing it, so feel free. :-) Tho in any event this isn't a ton of work, so even if someone else were to do it while you were working on it, it probably wouldn't be the end of the world.

I know it hasn't been long since nhendy said they'd take it. But I built Firefox and got this patched locally. Ran mach gtests and I didn't get screamed at by the command line.

I have a commit ready to submit via moz-phab but it requested a reviewer. So that's where I stopped.

Here's what I'm planning on running

moz-phab submit --message "Fixes Parser.cpp" --bug 1605263 --reviewer=mgaudet

Anything I should be aware of or that I'm doing incorrectly?

Thanks in advance and I look forward to contributing!

Flags: needinfo?(mgaudet)
Assignee: nobody → robert.m.rico
Status: NEW → ASSIGNED

Comment on attachment 9120388 [details]
Bug 1605263 - Fixes #1605263 - Parser.cpp | parseInfo_ change r=mgaudet

Revision D59654 was moved to bug 1604066. Setting attachment 9120388 [details] to obsolete.

Attachment #9120388 - Attachment is obsolete: true
Attachment #9120388 - Attachment is obsolete: false

Thanks so much!

I will put some subsequent feedback in the phabricator revision: Hopefully with a little revision we'll have this on the way!

Flags: needinfo?(mgaudet)

Hi Rob,

Thanks for addressing the commit message. One note: You should be able to recycle the same revision as before by editing the commit you made before (hg commit --amend) and making sure that when you edit the commit message you preserve the Differential Revision: ... line in the commit message.

This isn't so important for this bug, so I'll go ahead and test your new revision, but as you work on more complicate tasks it will make everyone's life easier if you figure it out, as more complicated patches can go through more rounds of review, and our review tool helps us manage the evolution of a patch.

In hindsight, I should have sent you this link earlier: https://moz-conduit.readthedocs.io/en/latest/walkthrough.html

You can go to the old revision and use the status change box at the bottom to "Abandon" the revision now.

Attachment #9120388 - Attachment is obsolete: true

Thanks Matthew. I do however see that it is now failing one of the unit tests.

Again thank you so much for helping me through this. And thanks for giving me the opportunity to contribute! Let me know what more I can do for this Bug Fix!

(In reply to Rob from comment #10)

Thanks Matthew. I do however see that it is now failing one of the unit tests.

Again thank you so much for helping me through this. And thanks for giving me the opportunity to contribute! Let me know what more I can do for this Bug Fix!

Got it. Rebased and moz-phab'd again! Apologies for the eagerness. I didn't realize how much fun it'd be to contribute to open source!

I've got this pushed to Try here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d7ccfd0d9be7a6093ca517ece4942899154e18ca

So we'll wait and see how that looks after a while.

Alright; looks good. I'll approve the patch and queue it for landing.

Thanks so much for contributing. If you're interested in a followup bug, Bug 1608183 might be a good choice. A little more expansive on size, but similar vein of cleaning up some C++ code.

Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fd338b6820e8
Use parseInfo accessor in Parser r=mgaudet
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: