New Compilation API, part 1, try 2
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Mar 2014 10:20:33 +0000 (10:20 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Mar 2014 10:20:33 +0000 (10:20 +0000)
commit6923d84785569a944ab3cf32daf42a05a2588ca4
treee642301f0239d0e153421a3a7aff8f5a02dce2a6
parent452d15d997fc1ca3520f3eb5cb9600d4e6a7d16c
New Compilation API, part 1, try 2

- 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.)

This is a fixed version of https://codereview.chromium.org/186723005/

BUG=
R=dcarney@chromium.org

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

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