Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 0bb374f2dc69bea8e712d4962363e835bfbb80bc..72e1252866d16b0414b8e08d1f9a28deb78a2451 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(constraints, |
+ reinterpret_cast<Isolate*>(isolate)); |
+} |
+ |
+bool SetResourceConstraints(ResourceConstraints* constraints, |
+ Isolate* v8_isolate) { |
+ 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(); |