| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index b7d9820bbfaadf598e53e1c6ff6943c57a9278f9..64dda45aca81c753978a3b0287d9ec1ee50cb307 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -1984,23 +1984,28 @@ Handle<Boolean> V8EXPORT False();
|
| * A set of constraints that specifies the limits of the runtime's
|
| * memory use.
|
| */
|
| -class V8EXPORT ResourceConstraints {
|
| +class V8EXPORT HeapResourceConstraints {
|
| public:
|
| - ResourceConstraints();
|
| + HeapResourceConstraints();
|
| int max_young_space_size() const { return max_young_space_size_; }
|
| void set_max_young_space_size(int value) { max_young_space_size_ = value; }
|
| int max_old_space_size() const { return max_old_space_size_; }
|
| void set_max_old_space_size(int value) { max_old_space_size_ = value; }
|
| - uint32_t* stack_limit() const { return stack_limit_; }
|
| - void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
|
| private:
|
| int max_young_space_size_;
|
| int max_old_space_size_;
|
| - uint32_t* stack_limit_;
|
| };
|
|
|
|
|
| -bool SetResourceConstraints(ResourceConstraints* constraints);
|
| +bool SetHeapResourceConstraints(HeapResourceConstraints* constraints);
|
| +
|
| +
|
| +/**
|
| + * Specifies the approximate limit of the runtime's stack
|
| + * use. SetStackLimit can be called multiple times to set the stack
|
| + * limit on different threads.
|
| + */
|
| +void SetStackLimit(uint32_t* limit);
|
|
|
|
|
| // --- E x c e p t i o n s ---
|
|
|