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

Issue 2760233005: [snapshot] Move builtins generation into mksnapshot (Closed)

Created:
3 years, 9 months ago by Jakob Kummerow
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Reland "[snapshot] Move builtins generation into mksnapshot" and out of the main library. This saves about 5% of binary size (800KB on x64, 373KB on android_arm). Only the GN build is supported; the GYP build is maintained working but does not support the feature. Previously landed as 4782bc0df89 / r44412. BUG=v8:6055 CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_linux_nosnap_rel; Review-Url: https://codereview.chromium.org/2760233005 Cr-Commit-Position: refs/heads/master@{#44489} Committed: https://chromium.googlesource.com/v8/v8/+/5f9af1e7b56846950f134a198d150822e75337b6

Patch Set 1 #

Total comments: 10

Patch Set 2 : addressed comment #

Patch Set 3 : rebased #

Patch Set 4 : rebased #

Patch Set 5 : fix gn visibility #

Patch Set 6 : fix unittests build for shared library #

Patch Set 7 : fix nosnap cctests #

Patch Set 8 : nosnap: skip incompatible tests #

Patch Set 9 : rebased for reland #

Patch Set 10 : fix GYP builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+642 lines, -526 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 14 chunks +30 lines, -4 lines 0 comments Download
M gypfiles/features.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M src/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/api.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M src/builtins/builtins.cc View 1 2 3 2 chunks +0 lines, -171 lines 0 comments Download
M src/builtins/builtins-call.cc View 2 chunks +1 line, -82 lines 0 comments Download
A + src/builtins/builtins-call-gen.cc View 1 chunk +2 lines, -70 lines 0 comments Download
M src/builtins/builtins-interpreter.cc View 3 chunks +2 lines, -45 lines 0 comments Download
A + src/builtins/builtins-interpreter-gen.cc View 2 chunks +3 lines, -40 lines 0 comments Download
A src/builtins/setup-builtins-internal.cc View 1 2 3 1 chunk +195 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 4 chunks +3 lines, -12 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 4 chunks +1 line, -81 lines 0 comments Download
A src/interpreter/setup-interpreter.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A src/interpreter/setup-interpreter-internal.cc View 1 1 chunk +94 lines, -0 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -2 lines 0 comments Download
A src/setup-isolate.h View 1 1 chunk +44 lines, -0 lines 0 comments Download
A src/setup-isolate-deserialize.cc View 1 1 chunk +36 lines, -0 lines 0 comments Download
A src/setup-isolate-full.cc View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -0 lines 0 comments Download
M test/cctest/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/cctest.status View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A test/cctest/setup-isolate-for-tests.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
A test/cctest/setup-isolate-for-tests.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 3 4 5 6 16 chunks +41 lines, -14 lines 0 comments Download
M test/unittests/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -1 line 0 comments Download
M tools/verify_source_deps.py View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 49 (32 generated)
Jakob Kummerow
Ross, PTAL @ interpreter. Jakob, PTAL @ everything else. Find some reviewer's guidance below. https://codereview.chromium.org/2760233005/diff/1/src/builtins/builtins-call.cc ...
3 years, 9 months ago (2017-03-21 16:38:00 UTC) #2
rmcilroy
https://codereview.chromium.org/2760233005/diff/1/src/interpreter/setup-interpreter-full.cc File src/interpreter/setup-interpreter-full.cc (right): https://codereview.chromium.org/2760233005/diff/1/src/interpreter/setup-interpreter-full.cc#newcode26 src/interpreter/setup-interpreter-full.cc:26: } This code needs to be done for snapshot ...
3 years, 9 months ago (2017-03-21 16:55:56 UTC) #3
Michael Achenbach
https://codereview.chromium.org/2760233005/diff/1/tools/verify_source_deps.py File tools/verify_source_deps.py (right): https://codereview.chromium.org/2760233005/diff/1/tools/verify_source_deps.py#newcode56 tools/verify_source_deps.py:56: 'setup-builtins-deserialize.cc', On 2017/03/21 16:38:00, Jakob Kummerow wrote: > Pacify ...
3 years, 9 months ago (2017-03-21 20:07:11 UTC) #5
jgruber
Very cool, lgtm
3 years, 9 months ago (2017-03-22 09:21:30 UTC) #6
Jakob Kummerow
PTAL. https://codereview.chromium.org/2760233005/diff/1/src/interpreter/setup-interpreter-full.cc File src/interpreter/setup-interpreter-full.cc (right): https://codereview.chromium.org/2760233005/diff/1/src/interpreter/setup-interpreter-full.cc#newcode26 src/interpreter/setup-interpreter-full.cc:26: } On 2017/03/21 16:55:56, rmcilroy wrote: > This ...
3 years, 8 months ago (2017-03-28 10:35:16 UTC) #8
Michael Achenbach
lgtm on build and tools changes. I added a nosnap bot to CL desc to ...
3 years, 8 months ago (2017-03-28 12:19:57 UTC) #10
rmcilroy
LGTM, thanks.
3 years, 8 months ago (2017-03-29 17:11:44 UTC) #11
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/2760233005/60001
3 years, 8 months ago (2017-03-29 18:14:03 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/19867) v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 8 months ago (2017-03-29 18:15:34 UTC) #16
Yang
On 2017/03/29 18:15:34, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-05 12:39:51 UTC) #27
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/2760233005/160001
3 years, 8 months ago (2017-04-05 13:27:09 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:160001) as https://chromium.googlesource.com/v8/v8/+/4782bc0df89ceb127e38017b8dcf531222a0e966
3 years, 8 months ago (2017-04-05 13:28:57 UTC) #35
kozy
A revert of this CL (patchset #8 id:160001) has been created in https://codereview.chromium.org/2803903002/ by kozyatinskiy@chromium.org. ...
3 years, 8 months ago (2017-04-05 23:41:33 UTC) #36
Michael Achenbach
FYI: This seems to also lead to failures on the legacy gyp full debug bot: ...
3 years, 8 months ago (2017-04-06 08:46:24 UTC) #37
Jakob Kummerow
The Windows+clang failure is fixed by https://codereview.chromium.org/2806493002/ The GYP failure is fixed by patch set ...
3 years, 8 months ago (2017-04-07 12:12:51 UTC) #39
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/2760233005/200001
3 years, 8 months ago (2017-04-07 13:16:59 UTC) #46
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 13:31:36 UTC) #49
Message was sent while issue was closed.
Committed patchset #10 (id:200001) as
https://chromium.googlesource.com/v8/v8/+/5f9af1e7b56846950f134a198d150822e75...

Powered by Google App Engine
This is Rietveld 408576698