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

Issue 351403003: IDL: Merge duplicating local variable assignment in attribute_getter (Closed)

Created:
6 years, 6 months ago by bashi
Modified:
6 years, 5 months ago
Reviewers:
haraken, Jens Widell
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Project:
blink
Visibility:
Public.

Description

IDL: Merge duplicating local variable assignment in attribute_getter |cpp_type| can be non-*Ptr type so it seems that we can't always use local variables if we want to merge local variable assignment. Following Jens' suggestion[1] to merge local variable assignment. [1] https://codereview.chromium.org/359703002/diff/1/Source/bindings/templates/attributes.cpp#newcode51 BUG=345503 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177090

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename v8Value -> cppValue #

Patch Set 3 : Further v8Value -> cppValue renaming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -156 lines) Patch
M Source/bindings/scripts/v8_attributes.py View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 2 4 chunks +16 lines, -22 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp View 1 3 chunks +9 lines, -10 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceNode.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 27 chunks +119 lines, -119 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
bashi
Could you review this?
6 years, 6 months ago (2014-06-27 08:55:08 UTC) #1
haraken
LGTM https://codereview.chromium.org/351403003/diff/1/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp File Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp (right): https://codereview.chromium.org/351403003/diff/1/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp#newcode126 Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp:126: RefPtr<Uint8Array> v8Value(impl->initializedByEventConstructorReadonlyUint8ArrayAttribute()); This is not a V8 value. ...
6 years, 6 months ago (2014-06-27 09:00:48 UTC) #2
Jens Widell
LGTM too. Nice clean-up.
6 years, 6 months ago (2014-06-27 09:03:22 UTC) #3
bashi
Thanks! https://codereview.chromium.org/351403003/diff/1/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp File Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp (right): https://codereview.chromium.org/351403003/diff/1/Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp#newcode126 Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp:126: RefPtr<Uint8Array> v8Value(impl->initializedByEventConstructorReadonlyUint8ArrayAttribute()); On 2014/06/27 09:00:47, haraken wrote: > ...
6 years, 6 months ago (2014-06-27 09:13:31 UTC) #4
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 6 months ago (2014-06-27 09:13:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/351403003/20001
6 years, 6 months ago (2014-06-27 09:14:30 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_blink_compile_dbg on tryserver.blink ...
6 years, 5 months ago (2014-06-27 09:51:57 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-27 09:58:15 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/13615)
6 years, 5 months ago (2014-06-27 09:58:16 UTC) #9
bashi
The CQ bit was checked by bashi@chromium.org
6 years, 5 months ago (2014-06-27 10:08:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/351403003/40001
6 years, 5 months ago (2014-06-27 10:09:41 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-06-27 11:13:04 UTC) #12
Message was sent while issue was closed.
Change committed as 177090

Powered by Google App Engine
This is Rietveld 408576698