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

Issue 2342053002: binding: Refactors bindings/templates/attributes.cpp. (Closed)

Created:
4 years, 3 months ago by Yuki
Modified:
4 years, 2 months ago
Reviewers:
haraken, peria
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Refactors bindings/templates/attributes.cpp. Makes FooAttribute{G,S}etter{,Callback} a little more readable. BUG= Committed: https://crrev.com/70f76152ff54f603de5d51eb605d47dfad97e2ae Cr-Commit-Position: refs/heads/master@{#421161}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Synced. #

Patch Set 4 : . #

Total comments: 1

Patch Set 5 : Reverted the replacement from hidden values to private properties. #

Total comments: 17

Patch Set 6 : Synced. #

Patch Set 7 : Addressed review comments. #

Patch Set 8 : Made define_exception_state consistent. #

Patch Set 9 : Partially reverts keep_alive_gc. #

Patch Set 10 : Synced. #

Patch Set 11 : Synced. #

Patch Set 12 : Synced. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2224 lines, -330 lines) Patch
M third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +143 lines, -112 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8SVGTestInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedPrimaryGlobal.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 49 chunks +368 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +40 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceOriginTrialEnabled.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +21 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +60 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +29 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 173 chunks +1365 lines, -148 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +69 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 66 (44 generated)
Yuki
Could you review this CL?
4 years, 3 months ago (2016-09-20 14:25:41 UTC) #16
haraken
As mentioned in a previous CL, consider making one change per CL; i.e., split the ...
4 years, 3 months ago (2016-09-20 14:52:31 UTC) #21
Yuki
Done. Could you take another look?
4 years, 3 months ago (2016-09-20 14:57:15 UTC) #22
haraken
This is never a minor refactoring... Please consider making changes more incrementally from next time. ...
4 years, 3 months ago (2016-09-20 15:17:26 UTC) #25
peria
I still feel current change is complicated, and am not sure it does only refactoring. ...
4 years, 3 months ago (2016-09-21 02:27:10 UTC) #28
Yuki
https://codereview.chromium.org/2342053002/diff/80001/third_party/WebKit/Source/bindings/scripts/v8_attributes.py File third_party/WebKit/Source/bindings/scripts/v8_attributes.py (right): https://codereview.chromium.org/2342053002/diff/80001/third_party/WebKit/Source/bindings/scripts/v8_attributes.py#newcode107 third_party/WebKit/Source/bindings/scripts/v8_attributes.py:107: includes.add('bindings/core/v8/V8PrivateProperty.h') On 2016/09/20 15:17:25, haraken wrote: > > Revert ...
4 years, 3 months ago (2016-09-21 10:29:31 UTC) #30
haraken
LGTM As peria-san mentioned, you should describe all non-trivial changes in the CL description. Also ...
4 years, 3 months ago (2016-09-21 12:36:37 UTC) #35
haraken
> https://codereview.chromium.org/2342053002/diff/80001/third_party/WebKit/Source/bindings/templates/attributes.cpp#newcode267 > third_party/WebKit/Source/bindings/templates/attributes.cpp:267: {% set > define_exception_state -%} > On 2016/09/20 15:17:25, haraken wrote: ...
4 years, 3 months ago (2016-09-21 12:51:32 UTC) #36
Yuki
I split a bug fix out to https://crrev.com/2357243002 . Any other ideas to make this ...
4 years, 3 months ago (2016-09-21 14:12:42 UTC) #39
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/2342053002/180001
4 years, 3 months ago (2016-09-23 14:32:29 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/284975)
4 years, 3 months ago (2016-09-23 14:50:09 UTC) #44
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/2342053002/180001
4 years, 3 months ago (2016-09-23 15:13:32 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/263051)
4 years, 3 months ago (2016-09-23 15:29:50 UTC) #48
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/2342053002/200001
4 years, 2 months ago (2016-09-26 07:10:38 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/147875)
4 years, 2 months ago (2016-09-26 09:38:20 UTC) #53
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/2342053002/200001
4 years, 2 months ago (2016-09-26 09:50:06 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/147937)
4 years, 2 months ago (2016-09-26 12:16:49 UTC) #57
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/2342053002/220001
4 years, 2 months ago (2016-09-27 08:38:23 UTC) #60
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 2 months ago (2016-09-27 10:08:54 UTC) #62
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/70f76152ff54f603de5d51eb605d47dfad97e2ae Cr-Commit-Position: refs/heads/master@{#421161}
4 years, 2 months ago (2016-09-27 10:11:03 UTC) #64
agrieve
On 2016/09/27 10:11:03, commit-bot: I haz the power wrote: > Patchset 12 (id:??) landed as ...
4 years, 2 months ago (2016-09-27 14:21:29 UTC) #65
Yuki
4 years, 2 months ago (2016-09-28 05:00:07 UTC) #66
Message was sent while issue was closed.
On 2016/09/27 14:21:29, agrieve wrote:
> On 2016/09/27 10:11:03, commit-bot: I haz the power wrote:
> > Patchset 12 (id:??) landed as
> > https://crrev.com/70f76152ff54f603de5d51eb605d47dfad97e2ae
> > Cr-Commit-Position: refs/heads/master@{#421161}
> 
> Not sure if this was expected, but wanted to make you aware that this change
> increased libchrome.so on Android by almost 30kb:
>
https://chromeperf.appspot.com/report?sid=f8be4459943df7093c2c0cdfa83b9350c74...

Thanks for letting me know.  Will look.

Powered by Google App Engine
This is Rietveld 408576698