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

Issue 2717183002: Slim V8DOMConfiguration::MethodConfiguration by refactoring per-world bindings. (Closed)

Created:
3 years, 9 months ago by jbroman
Modified:
3 years, 9 months ago
Reviewers:
haraken, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chasej+watch_chromium.org, chromium-reviews, iclelland+watch_chromuim.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Slim V8DOMConfiguration::MethodConfiguration by refactoring per-world bindings. This represents the main world version as a separate entry in the configuration list. While this is larger for methods with PerWorldBindings, it's smaller for those without, which are the vast majority. Effect is a change of 10-15 KiB in the .data.rel.ro section on Linux x64. Android Monochrome (32-bit ARM) APK size shrinks by 8 KiB. Review-Url: https://codereview.chromium.org/2717183002 Cr-Commit-Position: refs/heads/master@{#457922} Committed: https://chromium.googlesource.com/chromium/src/+/4f43563b2d986dd686d4f20a14fc15fe02884489

Patch Set 1 #

Patch Set 2 : Merge branch 'master' into refactor-per-world-methods #

Total comments: 4

Patch Set 3 : haraken #

Unified diffs Side-by-side diffs Delta from patch set Stats (+642 lines, -442 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h View 1 2 3 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp View 1 2 3 chunks +24 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl View 1 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl View 1 2 2 chunks +18 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp View 1 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedPrimaryGlobal.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 chunks +159 lines, -77 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp View 1 1 chunk +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceGarbageCollected.cpp View 1 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceOriginTrialEnabled.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp View 1 1 chunk +30 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 chunks +280 lines, -249 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp View 1 1 chunk +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp View 1 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 2 2 chunks +37 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 2 chunks +13 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (15 generated)
jbroman
This just changes how we represent per-world bindings in the array. WDYT? This approach would ...
3 years, 9 months ago (2017-03-17 18:08:01 UTC) #9
haraken
LGTM Maybe can we implement this on DOM attribute callbacks as well? https://codereview.chromium.org/2717183002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h ...
3 years, 9 months ago (2017-03-17 18:16:15 UTC) #10
jbroman
On 2017/03/17 at 18:16:15, haraken wrote: > LGTM > > Maybe can we implement this ...
3 years, 9 months ago (2017-03-17 18:32:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2717183002/40001
3 years, 9 months ago (2017-03-17 18:33:28 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/411389)
3 years, 9 months ago (2017-03-17 21:30:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2717183002/40001
3 years, 9 months ago (2017-03-18 00:39:07 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/4f43563b2d986dd686d4f20a14fc15fe02884489
3 years, 9 months ago (2017-03-18 01:52:33 UTC) #22
Yuki
3 years, 9 months ago (2017-03-21 10:05:47 UTC) #23
Message was sent while issue was closed.
LGTM.

Powered by Google App Engine
This is Rietveld 408576698