Make V8 extras a separate type of native
authordomenic <domenic@chromium.org>
Thu, 7 May 2015 12:44:06 +0000 (05:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 May 2015 12:44:10 +0000 (12:44 +0000)
commitc93aff4ac63ad9ffb6318e750335208de32b7902
tree7986269e1c97fe8c835f23ab5fed91f1b8867f1c
parent112f8dc97a34cd6b8a7febf191a09a513c4a3e3f
Make V8 extras a separate type of native

Instead of making them an extra option that gets passed in and compiled
at the end of the natives file for a given run of js2c, we now make them a
separate run of js2c with a separate natives file output.

This natives file output is then compiled in the bootstrapper. It is not part
of the snapshot (yet), but instead is treated similar to the experimental
natives, just without any of the complexity that comes from tieing the
behavior to flags. We also don't add counterparts to
InitializeExperimentalGlobal and InstallExperimentalNativeFunctions, yet.

R=yangguo@chromium.org, jochen@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#28296}
BUILD.gn
src/bootstrapper.cc
src/heap/heap.cc
src/heap/heap.h
src/snapshot/natives-external.cc
src/snapshot/natives.h
tools/gyp/v8.gyp
tools/js2c.py