| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 5b473c9ad9c0016514045202224b5d07463cf9f1..12d50f2bd7126f35d8a4d10180a363382fac4b8c 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -334,21 +334,19 @@ v8::Handle<Boolean> False() {
|
| }
|
|
|
|
|
| -ResourceConstraints::ResourceConstraints()
|
| +HeapResourceConstraints::HeapResourceConstraints()
|
| : max_young_space_size_(0),
|
| - max_old_space_size_(0),
|
| - stack_limit_(NULL) { }
|
| + max_old_space_size_(0) { }
|
|
|
|
|
| -bool SetResourceConstraints(ResourceConstraints* constraints) {
|
| - bool result = i::Heap::ConfigureHeap(constraints->max_young_space_size(),
|
| - constraints->max_old_space_size());
|
| - if (!result) return false;
|
| - if (constraints->stack_limit() != NULL) {
|
| - uintptr_t limit = reinterpret_cast<uintptr_t>(constraints->stack_limit());
|
| - i::StackGuard::SetStackLimit(limit);
|
| - }
|
| - return true;
|
| +bool SetHeapResourceConstraints(HeapResourceConstraints* constraints) {
|
| + return i::Heap::ConfigureHeap(constraints->max_young_space_size(),
|
| + constraints->max_old_space_size());
|
| +}
|
| +
|
| +
|
| +void SetStackLimit(uint32_t* limit) {
|
| + i::StackGuard::SetStackLimit(reinterpret_cast<uintptr_t>(limit));
|
| }
|
|
|
|
|
|
|