Support external startup data in V8.
authorvogelheim@chromium.org <vogelheim@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 3 Jun 2014 14:38:35 +0000 (14:38 +0000)
committervogelheim@chromium.org <vogelheim@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 3 Jun 2014 14:38:35 +0000 (14:38 +0000)
commit61509aaea57b767dcdc47e2b74842c3c462457ca
treeb3a1f65bdf2f35182a1dc0a4d7d8c6f078ca0f25
parentf38b4bef9e2afbb7b864b74fe375ab1ba383d5c1
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

Review URL: https://codereview.chromium.org/293993021

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21646 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
22 files changed:
BUILD.gn
build/features.gypi
include/v8.h
src/api.cc
src/d8.cc
src/d8.h
src/flag-definitions.h
src/heap.cc
src/mksnapshot.cc
src/natives-external.cc [new file with mode: 0644]
src/natives.h
src/serialize.cc
src/serialize.h
src/snapshot-common.cc
src/snapshot-external.cc [new file with mode: 0644]
src/snapshot-source-sink.cc [new file with mode: 0644]
src/snapshot-source-sink.h [new file with mode: 0644]
src/snapshot.h
test/cctest/test-serialize.cc
tools/concatenate-files.py [new file with mode: 0644]
tools/gyp/v8.gyp
tools/js2c.py