Support external startup data in V8.
authorvogelheim@chromium.org <vogelheim@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 Jun 2014 13:52:17 +0000 (13:52 +0000)
committervogelheim@chromium.org <vogelheim@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 Jun 2014 13:52:17 +0000 (13:52 +0000)
commit7b7bb25a24deeeb1ff4304b9922c05aaba8db5e3
tree379a0b213e07effb1e5f468408ef6f866b7a67e8
parentd2f229bf9fe217e2b44948e01dc961730679e78a
Support external startup data in V8.

[Re-retry of r21696 and r21739]

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=jochen@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21941 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