v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
ResourceConstraints () | |
void | ConfigureDefaults (uint64_t physical_memory, uint32_t number_of_processors) |
int | max_young_space_size () const |
void | set_max_young_space_size (int value) |
int | max_old_space_size () const |
void | set_max_old_space_size (int value) |
int | max_executable_size () const |
void | set_max_executable_size (int value) |
uint32_t * | stack_limit () const |
void | set_stack_limit (uint32_t *value) |
int | max_available_threads () const |
void | set_max_available_threads (int value) |
A set of constraints that specifies the limits of the runtime's memory use. You must set the heap size before initializing the VM - the size cannot be adjusted after the VM is initialized.
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 separately for each thread.
void ConfigureDefaults | ( | uint64_t | physical_memory, |
uint32_t | number_of_processors | ||
) |
Configures the constraints with reasonable default values based on the capabilities of the current device the VM is running on.
physical_memory | The total amount of physical memory on the current device, in bytes. |
number_of_processors | The number of CPUs available on the current device. |
Definition at line 469 of file api.cc.
References v8::internal::GB, v8::internal::kPointerSize, v8::MB, ResourceConstraints::set_max_available_threads(), ResourceConstraints::set_max_executable_size(), ResourceConstraints::set_max_old_space_size(), and ResourceConstraints::set_max_young_space_size().
Referenced by Shell::Main().
|
inline |
Definition at line 3959 of file v8.h.
Referenced by v8::SetResourceConstraints().
|
inline |
Definition at line 3954 of file v8.h.
Referenced by v8::SetResourceConstraints().
|
inline |
Definition at line 3952 of file v8.h.
Referenced by v8::SetResourceConstraints().
|
inline |
Definition at line 3950 of file v8.h.
Referenced by v8::SetResourceConstraints().
|
inline |
Definition at line 3961 of file v8.h.
Referenced by ResourceConstraints::ConfigureDefaults().
|
inline |
Definition at line 3955 of file v8.h.
Referenced by ResourceConstraints::ConfigureDefaults().
|
inline |
Definition at line 3953 of file v8.h.
Referenced by ResourceConstraints::ConfigureDefaults(), InitDefaultIsolateThread::Run(), and TEST().
|
inline |
Definition at line 3951 of file v8.h.
Referenced by ResourceConstraints::ConfigureDefaults(), InitDefaultIsolateThread::Run(), and TEST().
|
inline |
|
inline |
Definition at line 3956 of file v8.h.
Referenced by v8::SetResourceConstraints().