v8.h   v8.h 
skipping to change at line 3858 skipping to change at line 3858
class V8_EXPORT ResourceConstraints { class V8_EXPORT ResourceConstraints {
public: public:
ResourceConstraints(); ResourceConstraints();
/** /**
* Configures the constraints with reasonable default values based on the * Configures the constraints with reasonable default values based on the
* capabilities of the current device the VM is running on. * capabilities of the current device the VM is running on.
* *
* \param physical_memory The total amount of physical memory on the curr ent * \param physical_memory The total amount of physical memory on the curr ent
* device, in bytes. * device, in bytes.
* \param virtual_memory_limit The amount of virtual memory on the curren
t
* device, in bytes, or zero, if there is no limit.
* \param number_of_processors The number of CPUs available on the curren t * \param number_of_processors The number of CPUs available on the curren t
* device. * device.
*/ */
void ConfigureDefaults(uint64_t physical_memory, void ConfigureDefaults(uint64_t physical_memory,
uint64_t virtual_memory_limit,
uint32_t number_of_processors); uint32_t number_of_processors);
// Deprecated.
void ConfigureDefaults(uint64_t physical_memory,
uint32_t number_of_processors) {
ConfigureDefaults(physical_memory, 0, number_of_processors);
}
int max_young_space_size() const { return max_young_space_size_; } int max_young_space_size() const { return max_young_space_size_; }
void set_max_young_space_size(int value) { max_young_space_size_ = value; } void set_max_young_space_size(int value) { max_young_space_size_ = value; }
int max_old_space_size() const { return max_old_space_size_; } int max_old_space_size() const { return max_old_space_size_; }
void set_max_old_space_size(int value) { max_old_space_size_ = value; } void set_max_old_space_size(int value) { max_old_space_size_ = value; }
int max_executable_size() const { return max_executable_size_; } int max_executable_size() const { return max_executable_size_; }
void set_max_executable_size(int value) { max_executable_size_ = value; } void set_max_executable_size(int value) { max_executable_size_ = value; }
uint32_t* stack_limit() const { return stack_limit_; } uint32_t* stack_limit() const { return stack_limit_; }
// Sets an address beyond which the VM's stack may not grow. // Sets an address beyond which the VM's stack may not grow.
void set_stack_limit(uint32_t* value) { stack_limit_ = value; } void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
int max_available_threads() const { return max_available_threads_; } int max_available_threads() const { return max_available_threads_; }
// Set the number of threads available to V8, assuming at least 1. // Set the number of threads available to V8, assuming at least 1.
void set_max_available_threads(int value) { void set_max_available_threads(int value) {
max_available_threads_ = value; max_available_threads_ = value;
} }
int code_range_size() const { return code_range_size_; }
void set_code_range_size(int value) {
code_range_size_ = value;
}
private: private:
int max_young_space_size_; int max_young_space_size_;
int max_old_space_size_; int max_old_space_size_;
int max_executable_size_; int max_executable_size_;
uint32_t* stack_limit_; uint32_t* stack_limit_;
int max_available_threads_; int max_available_threads_;
int code_range_size_;
}; };
/** /**
* Sets the given ResourceConstraints on the given Isolate. * Sets the given ResourceConstraints on the given Isolate.
*/ */
bool V8_EXPORT SetResourceConstraints(Isolate* isolate, bool V8_EXPORT SetResourceConstraints(Isolate* isolate,
ResourceConstraints* constraints); ResourceConstraints* constraints);
// --- Exceptions --- // --- Exceptions ---
 End of changes. 5 change blocks. 
0 lines changed or deleted 14 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/