| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 0bb374f2dc69bea8e712d4962363e835bfbb80bc..8f66b7c7c04044f63f06de10db328b63420cd1d2 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -568,7 +568,14 @@ ResourceConstraints::ResourceConstraints()
|
|
|
| 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);
|
| int young_space_size = constraints->max_young_space_size();
|
| int old_gen_size = constraints->max_old_space_size();
|
| int max_executable_size = constraints->max_executable_size();
|
|
|