Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Issue 2846723003: Removed local RefPtr created from PassRefPtr arg in generated file. (Closed)

Created:
3 years, 7 months ago by Bugs Nash
Modified:
3 years, 7 months ago
Reviewers:
alph, Yuta Kitamura
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed local RefPtr created from PassRefPtr arg in generated file. This is a follow up from https://codereview.chromium.org/2807073002 This patch removed a generated instance of a PassRefPtr object being copied into a RefPtr object. All instances of PassRefPtr objects being copied into RefPtr objects need to be wrapped in std::move to avoid introducing ref churn in future changes when all PassRefPtr objects will be replaced with RefPtr objects. In this case creating a local RefPtr just to copy the PassRefPtr argument into, a std::move wrap doesn't make sense as it would result in a final state where a RefPtr argument is moved into a local RefPtr for no reason. So to handle this cases I have converted the PassRefPtr argument to RefPtr in advance, and removed the local RefPtr argument, instead using the passed RefPtr in the method. This patch - Changed the argument passed from PassRefPtr to RefPtr - Removed the logic for creating a local RefPtr argument - Changed the naming logic to name RefPtr arguments as rpParamTypeName - Removed the self.value variable and used self.name instead, as self.value was only used to store the name of the local RefPtr variable separate from the PassRefPtr argument - Removed the comment in the header about PassRefPtr parameters - Removed the base_name variable in build_param_name as this was causing a presubmit error from clashing with the global base_name Changes to generated files: https://gist.github.com/BugsNash/595ec7b86ce850d676aa8722f68abbf8/revisions BUG=494719 Review-Url: https://codereview.chromium.org/2846723003 Cr-Commit-Position: refs/heads/master@{#467909} Committed: https://chromium.googlesource.com/chromium/src/+/518f93704e475c7d61dbe7d853cdbf3baccb445e

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -18 lines) Patch
M third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py View 1 2 chunks +1 line, -8 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl View 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/core/probe/CoreProbes.pidl View 2 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
Bugs Nash
3 years, 7 months ago (2017-04-27 05:46:00 UTC) #5
Yuta Kitamura
LGTM but I'm not too confident about this file.
3 years, 7 months ago (2017-04-27 06:12:29 UTC) #6
alph
lgtm https://codereview.chromium.org/2846723003/diff/1/third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py File third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py (right): https://codereview.chromium.org/2846723003/diff/1/third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py#newcode158 third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py:158: self.is_rp = re.match(r"RefPtr<", param_decl) is not None doesn't ...
3 years, 7 months ago (2017-04-27 22:57:05 UTC) #9
Bugs Nash
https://codereview.chromium.org/2846723003/diff/1/third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py File third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py (right): https://codereview.chromium.org/2846723003/diff/1/third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py#newcode160 third_party/WebKit/Source/build/scripts/make_instrumenting_probes.py:160: self.name = "rp" + self.name[0].upper() + self.name[1:] On 2017/04/27 ...
3 years, 7 months ago (2017-04-27 23:05:59 UTC) #10
Bugs Nash
3 years, 7 months ago (2017-04-27 23:05:59 UTC) #11
Bugs Nash
Addressed comments.
3 years, 7 months ago (2017-04-27 23:51:04 UTC) #12
Bugs Nash
On 2017/04/27 at 23:51:04, Bugs Nash wrote: > Addressed comments. I left the logic inside ...
3 years, 7 months ago (2017-04-27 23:57:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2846723003/20001
3 years, 7 months ago (2017-04-28 01:39:19 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/432133)
3 years, 7 months ago (2017-04-28 03:29:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2846723003/20001
3 years, 7 months ago (2017-04-28 03:44:08 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 05:49:59 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/518f93704e475c7d61dbe7d853cd...

Powered by Google App Engine
This is Rietveld 408576698