Implement --omit, --raw_[context_]file=... for mksnapshot tool.
authorvogelheim@chromium.org <vogelheim@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Apr 2014 12:31:10 +0000 (12:31 +0000)
committervogelheim@chromium.org <vogelheim@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Apr 2014 12:31:10 +0000 (12:31 +0000)
commit331cc8a278128dd04b647f6272258b8be21c4a26
tree38fe86beba7ea0c5705907f5447279721ad8062f
parentb8d27f9d381beae1f546cd38b324936bedf475bc
Implement --omit, --raw_[context_]file=... for mksnapshot tool.

These switches are analogous to --omit and --raw for js2c.py.
The goal it to allow embedders to externally load all (or generate) the V8 startup data.

There's a bit of gratuitous refactoring with the writing logic that helped me understand the code. Let me know if it's not an improvement.

BUG=355539
LOG=N
R=jochen@chromium.org, svenpanne@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20941 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/flag-definitions.h
src/mksnapshot.cc
src/serialize.h