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

Issue 293993021: Support external startup data in V8. (Closed)

Created:
6 years, 7 months ago by vogelheim
Modified:
6 years, 6 months ago
CC:
v8-dev, Paweł Hajdan Jr.
Visibility:
Public.

Description

Support external startup data in V8. If the embedder chooses, the 'natives' (library sources) and the precompiled startup blob can be written to files during the build process and handed over to V8 at startup. The main purpose would be to reduce the size of the compiled binary for space constrained platforms. The build-time option is off by default. Nothing should change if it's not enabled. BUG= R=bmeurer@chromium.org, jochen@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21646

Patch Set 1 #

Total comments: 20

Patch Set 2 : Fix unit tests. #

Patch Set 3 : review feedback #

Total comments: 21

Patch Set 4 : review feedback, round 2. #

Patch Set 5 : minor fix #

Patch Set 6 : Final rebase (I hope) w/ various fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1011 lines, -257 lines) Patch
M BUILD.gn View 1 2 3 4 5 4 chunks +9 lines, -1 line 0 comments Download
M build/features.gypi View 2 chunks +8 lines, -3 lines 0 comments Download
M include/v8.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 2 chunks +18 lines, -2 lines 0 comments Download
M src/d8.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M src/d8.cc View 1 2 3 4 5 2 chunks +65 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/mksnapshot.cc View 1 2 3 4 5 5 chunks +59 lines, -12 lines 0 comments Download
M src/natives.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
A src/natives-external.cc View 1 2 3 4 5 1 chunk +190 lines, -0 lines 0 comments Download
M src/serialize.h View 1 2 3 4 5 4 chunks +3 lines, -75 lines 0 comments Download
M src/serialize.cc View 1 2 3 4 5 3 chunks +1 line, -21 lines 0 comments Download
M src/snapshot.h View 1 2 3 4 5 2 chunks +7 lines, -10 lines 0 comments Download
M src/snapshot-common.cc View 1 2 3 4 5 3 chunks +13 lines, -52 lines 0 comments Download
A src/snapshot-external.cc View 1 2 3 4 5 1 chunk +140 lines, -0 lines 0 comments Download
A src/snapshot-source-sink.h View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A src/snapshot-source-sink.cc View 1 2 3 4 5 1 chunk +95 lines, -0 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 3 4 5 3 chunks +56 lines, -39 lines 0 comments Download
A + tools/concatenate-files.py View 1 2 3 4 5 2 chunks +42 lines, -21 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 10 chunks +130 lines, -7 lines 0 comments Download
M tools/js2c.py View 1 2 3 4 5 8 chunks +52 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jochen (gone - plz use gerrit)
https://codereview.chromium.org/293993021/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/293993021/diff/1/include/v8.h#newcode4668 include/v8.h:4668: #ifdef V8_USE_EXTERNAL_STARTUP_DATA embedders won't see this #define, the api ...
6 years, 7 months ago (2014-05-23 11:44:44 UTC) #1
vogelheim
https://codereview.chromium.org/293993021/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/293993021/diff/1/include/v8.h#newcode4668 include/v8.h:4668: #ifdef V8_USE_EXTERNAL_STARTUP_DATA On 2014/05/23 11:44:44, jochen wrote: > embedders ...
6 years, 7 months ago (2014-05-26 12:36:03 UTC) #2
jochen (gone - plz use gerrit)
lgtm Benedikt, since Sven is OOO, can you have a look as well? https://codereview.chromium.org/293993021/diff/40001/src/natives-external.cc File ...
6 years, 7 months ago (2014-05-26 14:34:49 UTC) #3
Benedikt Meurer
LGTM with nits. https://codereview.chromium.org/293993021/diff/40001/src/natives.h File src/natives.h (right): https://codereview.chromium.org/293993021/diff/40001/src/natives.h#newcode10 src/natives.h:10: namespace v8 { class StartupData; } ...
6 years, 7 months ago (2014-05-27 04:09:59 UTC) #4
vogelheim
PTAL. (Had to rebase, so unfortunately the diffs between versions are hard to read. Is ...
6 years, 7 months ago (2014-05-27 15:20:23 UTC) #5
Benedikt Meurer
I usually try to upload a separate REBASE patch, but even that doesn't always yield ...
6 years, 6 months ago (2014-05-29 03:19:59 UTC) #6
vogelheim
6 years, 6 months ago (2014-06-03 14:38:59 UTC) #7
Message was sent while issue was closed.
Committed patchset #6 manually as r21646 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698