v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResourceConstraints Class Reference

#include <v8.h>

Public Member Functions

 ResourceConstraints ()
 
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 ()
 
void set_max_executable_size (int value)
 
uint32_t * stack_limit () const
 
void set_stack_limit (uint32_t *value)
 

Detailed Description

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.

Definition at line 2604 of file v8.h.

Constructor & Destructor Documentation

Definition at line 586 of file api.cc.

Member Function Documentation

int max_executable_size ( )
inline

Definition at line 2611 of file v8.h.

Referenced by v8::SetResourceConstraints().

int max_old_space_size ( ) const
inline

Definition at line 2609 of file v8.h.

Referenced by v8::SetResourceConstraints().

int max_young_space_size ( ) const
inline

Definition at line 2607 of file v8.h.

Referenced by v8::SetResourceConstraints().

void set_max_executable_size ( int  value)
inline

Definition at line 2612 of file v8.h.

void set_max_old_space_size ( int  value)
inline

Definition at line 2610 of file v8.h.

Referenced by InitDefaultIsolateThread::Run(), and TEST().

void set_max_young_space_size ( int  value)
inline

Definition at line 2608 of file v8.h.

Referenced by InitDefaultIsolateThread::Run(), and TEST().

void set_stack_limit ( uint32_t *  value)
inline

Definition at line 2615 of file v8.h.

Referenced by TEST().

uint32_t* stack_limit ( ) const
inline

Definition at line 2613 of file v8.h.

Referenced by v8::SetResourceConstraints().


The documentation for this class was generated from the following files: