|
IDL: Use ALLOW_ONLY_INLINE_ALLOCATION() in dictionaries
Before this CL, we allocate memory for IDL dictionaries each time we use
them. For performance sensitive methods, this may not be acceptable.
Avoid allocating them in the oilpan heap. Instead, put them on stack.
Dictionaries can be a member of collections, so we use
ALLOW_ONLY_INLINE_ALLOCATION().
Side effect of this change:
If an impl class implements an IDL method which returns a dictionary,
the impl method needs to take an argument for return value.
This CL also add blank lines in generated dictionary impl classes for
readability.
BUG= 321462
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183855
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+301 lines, -248 lines) |
Patch |
 |
M |
Source/bindings/core/v8/V8BindingMacros.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_dictionary.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_methods.py
|
View
|
1
|
4 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_types.py
|
View
|
1
|
10 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_impl.h
|
View
|
|
1 chunk |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_v8.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_v8.cpp
|
View
|
1
|
3 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/methods.cpp
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/idls/core/TestDictionary.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/idls/core/TestObject.idl
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/TestDictionary.h
|
View
|
|
2 chunks |
+20 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/V8TestDictionary.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/V8TestDictionary.cpp
|
View
|
1
|
2 chunks |
+121 lines, -82 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
|
4 chunks |
+25 lines, -13 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/FontFaceDescriptors.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/DOMPointInit.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Document.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/ElementRegistrationOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/MutationObserverInit.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/ScrollOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/canvas/HitRegionOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/EventSourceInit.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/DictionaryTest.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/DictionaryTest.cpp
|
View
|
|
1 chunk |
+18 lines, -20 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/InternalDictionary.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/encoding/TextDecodeOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/encoding/TextDecoder.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/modules/filesystem/FileSystemFlags.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBIndexParameters.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/notifications/NotificationOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/serviceworkers/CacheQueryOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/serviceworkers/CacheTest.cpp
|
View
|
|
8 chunks |
+23 lines, -23 lines |
0 comments
|
Download
|
 |
M |
Source/modules/serviceworkers/RegistrationOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/serviceworkers/ServiceWorkerClientQueryOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/modules/serviceworkers/ServiceWorkerContainerTest.cpp
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/modules/webmidi/MIDIOptions.idl
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebDocument.cpp
|
View
|
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
Total messages: 11 (3 generated)
|