Move configuration of ResourceConstraints to Isolate construction
authorjochen@chromium.org <jochen@chromium.org>
Tue, 16 Sep 2014 09:15:02 +0000 (09:15 +0000)
committerjochen@chromium.org <jochen@chromium.org>
Tue, 16 Sep 2014 09:15:02 +0000 (09:15 +0000)
commit069a9c75ad325716ec0bd129031cc2f517ff2bec
treee8ba3a06282e8c668f3802feb0ef290c37512453
parent426ec8486192df6bd36850cb1359ceb9b75376cd
Move configuration of ResourceConstraints to Isolate construction

We can only set resource constraints before the isolate is initialized.
Since in the future, we want to initialize isolates at construction
time, we need to set constraints there.

It's possible to later modify the stack limit, so introduce an
Isolate::SetStackLimit method for that.

The SetResourceConstraints method will be deprecated. Users should pass
ResourceConstraints to Isolate::New, and use Isolate::SetStackLimit to
later modify the stack limit.

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

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23964 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8.h
src/api.cc
src/d8.cc
test/cctest/test-api.cc
test/cctest/test-strings.cc