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

Issue 78713009: Introduce toV8NoInline (Closed)

Created:
7 years, 1 month ago by yhirano
Modified:
7 years ago
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Introduce toV8NoInline In order to make it enable to resolve a Promise with a DOM object without including generated headers, I added toV8NoInline template function declaration to V8Binding.h. Each specialized implementation will be generated in the corresponding generated source. BUG=321569 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162600

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Do not generate toV8Inline if CustomToV8 is specified. #

Total comments: 6

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -18 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8SupportTestInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObjectInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestConditionalInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestConstants.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomAccessors.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomLegacyCallInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomVisitDOMWrapperInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomWrapInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestDependentLifetimeInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestDoNotCheckConstantsInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestEvent.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventConstructor.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestException.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEmpty.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestSerializedScriptValueInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.h View 1 2 3 4 5 6 3 chunks +52 lines, -8 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8ArrayBufferCustom.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/css/FontFaceSet.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/DOMError.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/ConsoleBase.idl View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/ImageBitmap.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/crypto/CryptoResultImpl.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/serviceworkers/NavigatorServiceWorker.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
yhirano
7 years, 1 month ago (2013-11-22 01:03:25 UTC) #1
abarth-chromium
I don't fully understand what's causing this problem, but this seems like an ok solution. ...
7 years, 1 month ago (2013-11-22 05:53:35 UTC) #2
abarth-chromium
LGTM
7 years, 1 month ago (2013-11-22 05:53:40 UTC) #3
haraken
https://codereview.chromium.org/78713009/diff/40001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/78713009/diff/40001/Source/bindings/scripts/code_generator_v8.pm#newcode4760 Source/bindings/scripts/code_generator_v8.pm:4760: void ScriptPromiseResolver::resolve(${nativeType}* impl, v8::Handle<v8::Object> creationContext) It looks weird to ...
7 years, 1 month ago (2013-11-22 06:01:17 UTC) #4
Nils Barth (inactive)
On 2013/11/22 06:01:17, haraken wrote: > Would you elaborate on what problem you're going to ...
7 years, 1 month ago (2013-11-22 06:07:13 UTC) #5
yhirano
https://codereview.chromium.org/78713009/diff/40001/Source/core/dom/DOMError.idl File Source/core/dom/DOMError.idl (right): https://codereview.chromium.org/78713009/diff/40001/Source/core/dom/DOMError.idl#newcode31 Source/core/dom/DOMError.idl:31: ] interface DOMError { On 2013/11/22 05:53:35, abarth wrote: ...
7 years, 1 month ago (2013-11-22 06:12:00 UTC) #6
yhirano
On 2013/11/22 05:53:35, abarth wrote: > Maybe we should always generate these stubs? I introduce ...
7 years, 1 month ago (2013-11-22 06:17:14 UTC) #7
yhirano
https://codereview.chromium.org/78713009/diff/40001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/78713009/diff/40001/Source/bindings/scripts/code_generator_v8.pm#newcode4760 Source/bindings/scripts/code_generator_v8.pm:4760: void ScriptPromiseResolver::resolve(${nativeType}* impl, v8::Handle<v8::Object> creationContext) On 2013/11/22 06:01:17, haraken ...
7 years, 1 month ago (2013-11-22 06:32:31 UTC) #8
haraken
Thanks, I understood the problem. > One possible solution is declaring > template<typename T> > ...
7 years, 1 month ago (2013-11-22 06:51:57 UTC) #9
haraken
> Yeah, this looks better to me rather than generating template specializations > for resolve, ...
7 years, 1 month ago (2013-11-22 06:56:14 UTC) #10
haraken
I have no better idea than the current CL, so I'm OK with it. However, ...
7 years, 1 month ago (2013-11-22 07:04:12 UTC) #11
yhirano
On 2013/11/22 06:51:57, haraken wrote: > Thanks, I understood the problem. > > > One ...
7 years, 1 month ago (2013-11-22 07:12:56 UTC) #12
haraken
> Note: toV8NoInline is not used by anyone, so the difference should be 0. Is ...
7 years, 1 month ago (2013-11-22 07:19:10 UTC) #13
yhirano
On 2013/11/22 07:19:10, haraken wrote: > > Note: toV8NoInline is not used by anyone, so ...
7 years, 1 month ago (2013-11-22 07:38:58 UTC) #14
haraken
On 2013/11/22 07:38:58, yhirano wrote: > On 2013/11/22 07:19:10, haraken wrote: > > > Note: ...
7 years, 1 month ago (2013-11-22 07:50:29 UTC) #15
yhirano
On 2013/11/22 07:50:29, haraken wrote: > Only 100 byte? This difference looks small. How about ...
7 years, 1 month ago (2013-11-22 07:56:45 UTC) #16
yhirano
haraken@, PTAL if you have time
7 years, 1 month ago (2013-11-22 09:26:50 UTC) #17
haraken
https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm#newcode4755 Source/bindings/scripts/code_generator_v8.pm:4755: if (!$interface->extendedAttributes->{"DoNotGenerateToV8"} && !$interface->extendedAttributes->{"CustomToV8"}) { Probably we can auto-generate ...
7 years, 1 month ago (2013-11-23 15:03:17 UTC) #18
yhirano
https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm#newcode4755 Source/bindings/scripts/code_generator_v8.pm:4755: if (!$interface->extendedAttributes->{"DoNotGenerateToV8"} && !$interface->extendedAttributes->{"CustomToV8"}) { On 2013/11/23 15:03:18, haraken ...
7 years ago (2013-11-25 01:50:51 UTC) #19
haraken
https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm#newcode4755 Source/bindings/scripts/code_generator_v8.pm:4755: if (!$interface->extendedAttributes->{"DoNotGenerateToV8"} && !$interface->extendedAttributes->{"CustomToV8"}) { > ConsoleBase has toV8Custom ...
7 years ago (2013-11-25 02:39:22 UTC) #20
yhirano
https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/78713009/diff/420001/Source/bindings/scripts/code_generator_v8.pm#newcode4755 Source/bindings/scripts/code_generator_v8.pm:4755: if (!$interface->extendedAttributes->{"DoNotGenerateToV8"} && !$interface->extendedAttributes->{"CustomToV8"}) { On 2013/11/25 02:39:23, haraken ...
7 years ago (2013-11-25 03:36:48 UTC) #21
haraken
Thanks, LGTM.
7 years ago (2013-11-25 03:48:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/78713009/680001
7 years ago (2013-11-25 06:25:32 UTC) #23
commit-bot: I haz the power
7 years ago (2013-11-25 07:08:21 UTC) #24
Message was sent while issue was closed.
Change committed as 162600

Powered by Google App Engine
This is Rietveld 408576698