Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(2)

Issue 1181113006: bindings: Introduces on_{instance,prototype,interface} in the code generator. (Closed)

Created:
4 years, 10 months ago by Yuki
Modified:
4 years, 10 months ago
Reviewers:
haraken, bashi
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, vivekg
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

bindings: Introduces on_{instance,prototype,interface} in the code generator. Interface members may be located on one or two of instance object, prototype object and/or interface object. Refactors the code generator toward to controlling the property location more logically based on the spec's requirement. This CL is intended to simply introduce new template variables: - on_instance - on_prototype - on_interface and intended to not change the behavior. I'm planning to make the following changes. - Make all attributes accessor-type properties. - Remove is_expose_js_accessors template var. - Register static members using install{Accessors,Methods,Constants}. - Apply on_{instance,prototype,interface} to methods, too. - Update v8_utilities.on_{instance,prototype,interface} functions to conform to the spec. (The order is NOT chronological.) BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197336

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 28

Patch Set 4 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -343 lines) Patch
M Source/bindings/core/v8/V8DOMConfiguration.h View 1 2 3 3 chunks +14 lines, -14 lines 0 comments Download
M Source/bindings/core/v8/V8DOMConfiguration.cpp View 1 2 3 6 chunks +31 lines, -50 lines 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_utilities.py View 1 2 3 2 chunks +90 lines, -0 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 2 chunks +13 lines, -10 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8SVGTestInterface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestException.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 3 chunks +79 lines, -39 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceAccessors.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNode.cpp View 1 chunk +7 lines, -7 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceOwnProperties.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceOwnPropertiesDerived.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceWillBeGarbageCollected.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestNode.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 2 chunks +171 lines, -171 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestTypedefs.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 2 3 2 chunks +35 lines, -15 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Yuki
Could you guys review this CL?
4 years, 10 months ago (2015-06-17 09:27:13 UTC) #2
haraken
LGTM with a bunch of nits. https://codereview.chromium.org/1181113006/diff/40001/Source/bindings/core/v8/V8DOMConfiguration.cpp File Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/1181113006/diff/40001/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode58 Source/bindings/core/v8/V8DOMConfiguration.cpp:58: if (attribute.propertyLocationConfiguration & ...
4 years, 10 months ago (2015-06-17 16:31:21 UTC) #3
bashi
LGTM https://codereview.chromium.org/1181113006/diff/40001/Source/bindings/core/v8/V8DOMConfiguration.cpp File Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/1181113006/diff/40001/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode106 Source/bindings/core/v8/V8DOMConfiguration.cpp:106: interfaceTemplate->SetAccessorProperty(name, getter, setter, accessor.attribute, accessor.settings); Add ASSERT()? https://codereview.chromium.org/1181113006/diff/40001/Source/bindings/scripts/v8_utilities.py ...
4 years, 10 months ago (2015-06-18 02:16:28 UTC) #4
Yuki
Could you guys take another look? Note that one member can be defined on both ...
4 years, 10 months ago (2015-06-18 07:44:41 UTC) #5
haraken
On 2015/06/18 07:44:41, Yuki wrote: > Could you guys take another look? > > Note ...
4 years, 10 months ago (2015-06-18 07:50:51 UTC) #6
bashi
still LGTM
4 years, 10 months ago (2015-06-18 09:10:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181113006/60001
4 years, 10 months ago (2015-06-18 09:20:29 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2015-06-18 10:14:26 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197336

Powered by Google App Engine
This is Rietveld 408576698