Require V8 to be explicitly initialized before an Isolate is created
authorjochen@chromium.org <jochen@chromium.org>
Thu, 18 Sep 2014 21:07:50 +0000 (21:07 +0000)
committerjochen@chromium.org <jochen@chromium.org>
Thu, 18 Sep 2014 21:07:50 +0000 (21:07 +0000)
commit27f3cc1b9c3ef6f5ff46478de3ee92733b9b6e4d
treed2b5044be981ef8acfcfd579cd4f412b92e28dfa
parentf28f6c17c9e592eadb4228b50f5a6113eaf1c045
Require V8 to be explicitly initialized before an Isolate is created

We also initialize the Isolate on creation.

This should allow for getting rid of the last remaining default isolate
traces. Also, it'll speed up several isolate related operations that no
longer require locks.

Embedders that relied on v8::Isolate to return an uninitialized Isolate
(so they can set ResourceConstraints for example, or set flags that
modify the way the isolate is created) should either do the setup before
creating the isolate, or use the recently added CreateParams to pass e.g.
ResourceConstraints.

BUG=none
LOG=y
R=svenpanne@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24052 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
37 files changed:
include/v8.h
samples/lineprocessor.cc
samples/process.cc
samples/shell.cc
src/api.cc
src/base/utils/random-number-generator.cc
src/base/utils/random-number-generator.h
src/bootstrapper.cc
src/d8.cc
src/isolate.cc
src/isolate.h
src/mksnapshot.cc
src/snapshot-common.cc
src/snapshot-external.cc
src/snapshot.h
src/v8.cc
src/v8.h
test/cctest/cctest.cc
test/cctest/cctest.h
test/cctest/test-api.cc
test/cctest/test-ast.cc
test/cctest/test-dataflow.cc
test/cctest/test-debug.cc
test/cctest/test-deoptimization.cc
test/cctest/test-heap.cc
test/cctest/test-liveedit.cc
test/cctest/test-log.cc
test/cctest/test-macro-assembler-arm.cc
test/cctest/test-macro-assembler-ia32.cc
test/cctest/test-macro-assembler-x64.cc
test/cctest/test-macro-assembler-x87.cc
test/cctest/test-random-number-generator.cc
test/cctest/test-regexp.cc
test/cctest/test-serialize.cc
test/cctest/test-spaces.cc
tools/lexer-shell.cc
tools/parser-shell.cc