Commit 782040d2 authored by rmcilroy@chromium.org's avatar rmcilroy@chromium.org

Remove deprecated v8::SetResourceConstraints without Isolate parameter

LOG=Y
R=bmeurer@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17910 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 57dc3139
......@@ -3841,11 +3841,6 @@ class V8_EXPORT ResourceConstraints {
};
V8_DEPRECATED(
"Use SetResourceConstraints(isolate, constraints) instead",
bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints));
/**
* Sets the given ResourceConstraints on the given Isolate.
*/
......
......@@ -610,13 +610,6 @@ void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory) {
}
bool SetResourceConstraints(ResourceConstraints* constraints) {
i::Isolate* isolate = EnterIsolateIfNeeded();
return SetResourceConstraints(reinterpret_cast<Isolate*>(isolate),
constraints);
}
bool SetResourceConstraints(Isolate* v8_isolate,
ResourceConstraints* constraints) {
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
......
......@@ -4263,7 +4263,7 @@ TEST(OutOfMemory) {
v8::ResourceConstraints constraints;
constraints.set_max_young_space_size(256 * K);
constraints.set_max_old_space_size(5 * K * K);
v8::SetResourceConstraints(&constraints);
v8::SetResourceConstraints(CcTest::isolate(), &constraints);
// Execute a script that causes out of memory.
LocalContext context;
......@@ -4304,7 +4304,7 @@ TEST(OutOfMemoryNested) {
v8::ResourceConstraints constraints;
constraints.set_max_young_space_size(256 * K);
constraints.set_max_old_space_size(5 * K * K);
v8::SetResourceConstraints(&constraints);
v8::SetResourceConstraints(CcTest::isolate(), &constraints);
v8::HandleScope scope(CcTest::isolate());
Local<ObjectTemplate> templ = ObjectTemplate::New();
......@@ -4333,7 +4333,7 @@ TEST(HugeConsStringOutOfMemory) {
v8::ResourceConstraints constraints;
constraints.set_max_young_space_size(256 * K);
constraints.set_max_old_space_size(4 * K * K);
v8::SetResourceConstraints(&constraints);
v8::SetResourceConstraints(CcTest::isolate(), &constraints);
// Execute a script that causes out of memory.
v8::V8::IgnoreOutOfMemoryException();
......@@ -17172,7 +17172,7 @@ TEST(SetResourceConstraints) {
// Set stack limit.
v8::ResourceConstraints constraints;
constraints.set_stack_limit(set_limit);
CHECK(v8::SetResourceConstraints(&constraints));
CHECK(v8::SetResourceConstraints(CcTest::isolate(), &constraints));
// Execute a script.
LocalContext env;
......@@ -17196,7 +17196,7 @@ TEST(SetResourceConstraintsInThread) {
// Set stack limit.
v8::ResourceConstraints constraints;
constraints.set_stack_limit(set_limit);
CHECK(v8::SetResourceConstraints(&constraints));
CHECK(v8::SetResourceConstraints(CcTest::isolate(), &constraints));
// Execute a script.
v8::HandleScope scope(CcTest::isolate());
......@@ -18646,7 +18646,7 @@ class InitDefaultIsolateThread : public v8::internal::Thread {
v8::ResourceConstraints constraints;
constraints.set_max_young_space_size(256 * K);
constraints.set_max_old_space_size(4 * K * K);
v8::SetResourceConstraints(&constraints);
v8::SetResourceConstraints(CcTest::isolate(), &constraints);
break;
}
......
......@@ -1213,7 +1213,7 @@ TEST(AsciiArrayJoin) {
v8::ResourceConstraints constraints;
constraints.set_max_young_space_size(256 * K);
constraints.set_max_old_space_size(4 * K * K);
v8::SetResourceConstraints(&constraints);
v8::SetResourceConstraints(CcTest::isolate(), &constraints);
// String s is made of 2^17 = 131072 'c' characters and a is an array
// starting with 'bad', followed by 2^14 times the string s. That means the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment