|
|
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
Total comments: 28
|
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
|
Total messages: 10 (2 generated)
|