New Compilation API, part 1
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 13 Mar 2014 08:54:11 +0000 (08:54 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 13 Mar 2014 08:54:11 +0000 (08:54 +0000)
commit52c0098f0d0cd78fed1e4580bdbdc70b701bbcce
treeb1b10cce0b41ab27303831fc3d18d55f70a806db
parent750ab8834165cbc00b3df348f10f931d80d778b3
New Compilation API, part 1

- Distinguish between context bound scripts (Script) and context unbound scripts
(UnboundScript).
- Add ScriptCompiler (which will later contain functions for async compilation).

This is a breaking change, in particular, Script::New no longer exists (it is
replaced by ScriptCompiler::CompileUnbound). Script::Compile remains as a
backwards-compatible shorthand for ScriptCompiler::Compile.

Passing CompilerOptions with produce_data_to_cache = true doesn't do anything
yet; the only way to generate the data to cache is the old preparsing API. (To
be fixed in the next version.)

BUG=
R=dcarney@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19881 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
14 files changed:
include/v8.h
samples/lineprocessor.cc
samples/shell.cc
src/api.cc
src/api.h
src/d8.cc
src/heap.cc
src/profile-generator-inl.h
test/cctest/cctest.h
test/cctest/test-api.cc
test/cctest/test-cpu-profiler.cc
test/cctest/test-debug.cc
test/cctest/test-log.cc
test/cctest/test-parsing.cc