v8.h   v8.h 
skipping to change at line 3014 skipping to change at line 3014
static void CheckCast(v8::Value* obj); static void CheckCast(v8::Value* obj);
}; };
/** /**
* A JavaScript value that wraps a C++ void*. This type of value is mainly used * A JavaScript value that wraps a C++ void*. This type of value is mainly used
* to associate C++ data structures with JavaScript objects. * to associate C++ data structures with JavaScript objects.
*/ */
class V8_EXPORT External : public Value { class V8_EXPORT External : public Value {
public: public:
static Local<External> New(Isolate* isolate, void* value); static Local<External> New(Isolate* isolate, void* value);
// Deprecated, do not use. V8_DEPRECATED("Will be removed", static Local<External> New(void *value))
static Local<External> New(void* value); ;
V8_INLINE static External* Cast(Value* obj); V8_INLINE static External* Cast(Value* obj);
void* Value() const; void* Value() const;
private: private:
static void CheckCast(v8::Value* obj); static void CheckCast(v8::Value* obj);
}; };
// --- Templates --- // --- Templates ---
/** /**
* The superclass of object and function templates. * The superclass of object and function templates.
skipping to change at line 3720 skipping to change at line 3719
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 number_of_processors The number of CPUs available on the curren
t
* device.
*/ */
void ConfigureDefaults(uint64_t physical_memory); void ConfigureDefaults(uint64_t physical_memory,
uint32_t number_of_processors);
V8_DEPRECATED("Will be removed",
void ConfigureDefaults(uint64_t physical_memory));
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() { 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_; }
// Set the number of threads available to V8, assuming at least 1.
void set_max_available_threads(int value) {
max_available_threads_ = 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_;
}; };
V8_DEPRECATED( V8_DEPRECATED(
"Use SetResourceConstraints(isolate, constraints) instead", "Use SetResourceConstraints(isolate, constraints) instead",
bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints) ); bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints) );
/** /**
* 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,
 End of changes. 6 change blocks. 
4 lines changed or deleted 16 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/