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

#include <bootstrapper.h>

Public Member Functions

void Initialize (bool create_heap_objects)
 
void TearDown ()
 
Handle< ContextCreateEnvironment (Handle< Object > global_object, v8::Handle< v8::ObjectTemplate > global_template, v8::ExtensionConfiguration *extensions)
 
void DetachGlobal (Handle< Context > env)
 
void Iterate (ObjectVisitor *v)
 
Handle< StringNativesSourceLookup (int index)
 
bool IsActive () const
 
char * ArchiveState (char *to)
 
char * RestoreState (char *from)
 
void FreeThreadResources ()
 
char * AllocateAutoDeletedArray (int bytes)
 
bool InstallExtensions (Handle< Context > native_context, v8::ExtensionConfiguration *extensions)
 
SourceCodeCache * extensions_cache ()
 

Static Public Member Functions

static void InitializeOncePerProcess ()
 
static void TearDownExtensions ()
 
static int ArchiveSpacePerThread ()
 

Friends

class BootstrapperActive
 
class Isolate
 
class NativesExternalStringResource
 

Detailed Description

Definition at line 91 of file bootstrapper.h.

Member Function Documentation

char * AllocateAutoDeletedArray ( int  bytes)

Definition at line 142 of file bootstrapper.cc.

References List< T, P >::Add(), v8::internal::memory(), and v8::internal::NULL.

int ArchiveSpacePerThread ( )
static

Definition at line 2737 of file bootstrapper.cc.

char * ArchiveState ( char *  to)

Definition at line 2743 of file bootstrapper.cc.

Handle< Context > CreateEnvironment ( Handle< Object global_object,
v8::Handle< v8::ObjectTemplate global_template,
v8::ExtensionConfiguration extensions 
)
void DetachGlobal ( Handle< Context env)

Definition at line 372 of file bootstrapper.cc.

References JSGlobalProxy::cast(), and Context::GetIsolate().

Referenced by Context::DetachGlobal().

SourceCodeCache* extensions_cache ( )
inline

Definition at line 133 of file bootstrapper.h.

void FreeThreadResources ( )

Definition at line 2758 of file bootstrapper.cc.

References ASSERT, and Bootstrapper::IsActive().

Referenced by ThreadManager::FreeThreadResources().

void Initialize ( bool  create_heap_objects)

Definition at line 101 of file bootstrapper.cc.

void InitializeOncePerProcess ( )
static

Definition at line 119 of file bootstrapper.cc.

References v8::RegisterExtension().

bool InstallExtensions ( Handle< Context native_context,
v8::ExtensionConfiguration extensions 
)
void Iterate ( ObjectVisitor *  v)

Definition at line 342 of file bootstrapper.cc.

Referenced by Heap::IterateStrongRoots().

char * RestoreState ( char *  from)

Definition at line 2751 of file bootstrapper.cc.

Referenced by ThreadManager::RestoreThread().

void TearDown ( )

Definition at line 154 of file bootstrapper.cc.

References ASSERT, List< T, P >::at(), and v8::internal::NULL.

void TearDownExtensions ( )
static

Definition at line 133 of file bootstrapper.cc.

Referenced by V8::TearDown().

Friends And Related Function Documentation

friend class BootstrapperActive
friend

Definition at line 145 of file bootstrapper.h.

Referenced by Bootstrapper::InstallExtensions().

friend class Isolate
friend

Definition at line 146 of file bootstrapper.h.

friend class NativesExternalStringResource
friend

Definition at line 147 of file bootstrapper.h.

Referenced by Bootstrapper::NativesSourceLookup().


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