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

Issue 29553002: Move privateTemplateUniqueKey / sharedTemplateUniqueKey to .bss section (Closed)

Created:
7 years, 2 months ago by Inactive
Modified:
7 years, 1 month ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin
Visibility:
Public.

Description

Move privateTemplateUniqueKey / sharedTemplateUniqueKey in the generated bindings to .bss section instead of .data by getting rid of the pointer and using a simple static uninitialized int. This decreases our binary size. This also reduces the number of relocations in libchromeview_prebuilt.so by 18 according to relinfo. BUG=249746 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160087 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160609

Patch Set 1 #

Patch Set 2 : Use int instead of char array #

Patch Set 3 : Update V8PromiseCustom for consistency #

Patch Set 4 : Update sharedTemplateUniqueKey as well #

Total comments: 2

Patch Set 5 : Get rid of const to confirm it makes msvc happy #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8DOMWrapper.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8PromiseCustom.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Inactive
Relinfo output: - Before: out/Release/lib/libchromeview_prebuilt.so: 240776 relocations, 240715 relative (99%), 329 PLT entries, 0 for ...
7 years, 2 months ago (2013-10-18 19:08:57 UTC) #1
Inactive
Relinfo now gives: out/Release/lib/libchromeview_prebuilt.so: 240758 relocations, 240697 relative (99%), 329 PLT entries, 0 for local ...
7 years, 2 months ago (2013-10-18 19:28:04 UTC) #2
abarth-chromium
lgtm
7 years, 2 months ago (2013-10-18 20:00:56 UTC) #3
eseidel
I *love* that you're doing this. You should teach us all how at the next ...
7 years, 2 months ago (2013-10-18 20:02:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/29553002/50001
7 years, 2 months ago (2013-10-18 20:05:58 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12332
7 years, 2 months ago (2013-10-19 02:37:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/29553002/50001
7 years, 2 months ago (2013-10-19 02:40:46 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-19 03:32:29 UTC) #8
digit1
https://codereview.chromium.org/29553002/diff/50001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/29553002/diff/50001/Source/bindings/scripts/code_generator_v8.pm#newcode1189 Source/bindings/scripts/code_generator_v8.pm:1189: static const int privateTemplateUniqueKey = 0; This looks really ...
7 years, 2 months ago (2013-10-19 08:04:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/29553002/50001
7 years, 2 months ago (2013-10-19 13:17:10 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12466
7 years, 2 months ago (2013-10-19 15:41:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/29553002/50001
7 years, 2 months ago (2013-10-20 20:49:50 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=12527
7 years, 2 months ago (2013-10-20 23:14:24 UTC) #13
marja
Cool, thanks for doing this!
7 years, 2 months ago (2013-10-21 07:26:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/29553002/50001
7 years, 2 months ago (2013-10-21 13:21:59 UTC) #15
commit-bot: I haz the power
Change committed as 160087
7 years, 2 months ago (2013-10-21 13:22:19 UTC) #16
alecflett
On 2013/10/21 13:22:19, I haz the power (commit-bot) wrote: > Change committed as 160087 This ...
7 years, 2 months ago (2013-10-21 22:44:23 UTC) #17
Inactive
On 2013/10/21 22:44:23, alecflett wrote: > On 2013/10/21 13:22:19, I haz the power (commit-bot) wrote: ...
7 years, 2 months ago (2013-10-22 13:07:43 UTC) #18
Inactive
https://codereview.chromium.org/29553002/diff/50001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/29553002/diff/50001/Source/bindings/scripts/code_generator_v8.pm#newcode1189 Source/bindings/scripts/code_generator_v8.pm:1189: static const int privateTemplateUniqueKey = 0; On 2013/10/19 08:04:17, ...
7 years, 2 months ago (2013-10-22 14:25:42 UTC) #19
marja
Ha, I was this written but unposted: I'm paranoidically worried that some compiler might not ...
7 years, 2 months ago (2013-10-22 16:13:38 UTC) #20
abarth-chromium
Wouldn't taking the address of the function cause problem with identical code folding? Two functions ...
7 years, 2 months ago (2013-10-22 18:49:07 UTC) #21
Inactive
I removed the 'const' to make msvc happy and updated the description accordingly. Can we ...
7 years, 1 month ago (2013-10-25 14:39:54 UTC) #22
abarth-chromium
LGTM I don't have a better proposal. Maybe digit has a clever idea.
7 years, 1 month ago (2013-10-25 16:08:00 UTC) #23
digit1
LGTM Adam, it's true that taking the function's address is dangerous, the compiler does indeed ...
7 years, 1 month ago (2013-10-25 16:28:31 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/29553002/460001
7 years, 1 month ago (2013-10-25 17:33:37 UTC) #25
commit-bot: I haz the power
Failed to apply patch for Source/bindings/tests/results/V8TestActiveDOMObject.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-10-25 17:33:44 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/29553002/570001
7 years, 1 month ago (2013-10-25 18:24:24 UTC) #27
commit-bot: I haz the power
7 years, 1 month ago (2013-10-25 19:16:58 UTC) #28
Message was sent while issue was closed.
Change committed as 160609

Powered by Google App Engine
This is Rietveld 408576698