v8-defaults.h   v8-defaults.h 
skipping to change at line 38 skipping to change at line 38
#ifndef V8_V8_DEFAULTS_H_ #ifndef V8_V8_DEFAULTS_H_
#define V8_V8_DEFAULTS_H_ #define V8_V8_DEFAULTS_H_
#include "v8.h" #include "v8.h"
/** /**
* Default configuration support for the V8 JavaScript engine. * Default configuration support for the V8 JavaScript engine.
*/ */
namespace v8 { namespace v8 {
/** V8_DEPRECATED("Use ResourceConstraints::ConfigureDefaults instead",
* Configures the constraints with reasonable default values based on the bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
* capabilities of the current device the VM is running on. ResourceConstraints* constraints));
*/
bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
ResourceConstraints* constraints);
/** V8_DEPRECATED("Use ResourceConstraints::ConfigureDefaults instead",
* Convience function which performs SetResourceConstraints with the settin bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform());
gs
* returned by ConfigureResourceConstraintsForCurrentPlatform.
*/
bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform();
} // namespace v8 } // namespace v8
#endif // V8_V8_DEFAULTS_H_ #endif // V8_V8_DEFAULTS_H_
 End of changes. 2 change blocks. 
12 lines changed or deleted 5 lines changed or added


 v8.h   v8.h 
skipping to change at line 3713 skipping to change at line 3713
* You must set the heap size before initializing the VM - the size cannot be * You must set the heap size before initializing the VM - the size cannot be
* adjusted after the VM is initialized. * adjusted after the VM is initialized.
* *
* If you are using threads then you should hold the V8::Locker lock while * If you are using threads then you should hold the V8::Locker lock while
* setting the stack limit and you must set a non-default stack limit separ ately * setting the stack limit and you must set a non-default stack limit separ ately
* for each thread. * for each thread.
*/ */
class V8_EXPORT ResourceConstraints { class V8_EXPORT ResourceConstraints {
public: public:
ResourceConstraints(); ResourceConstraints();
/**
* Configures the constraints with reasonable default values based on the
* capabilities of the current device the VM is running on.
*
* \param physical_memory The total amount of physical memory on the curr
ent
* device, in bytes.
*/
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() { 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; }
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 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/