v8  3.14.5(node0.10.28)
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 (Isolate *isolate, Handle< Object > global_object, v8::Handle< v8::ObjectTemplate > global_template, v8::ExtensionConfiguration *extensions)
 
void DetachGlobal (Handle< Context > env)
 
void ReattachGlobal (Handle< Context > env, Handle< JSGlobalProxy > global_proxy)
 
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 int ArchiveSpacePerThread ()
 

Friends

class BootstrapperActive
 
class Isolate
 
class NativesExternalStringResource
 

Detailed Description

Definition at line 89 of file bootstrapper.h.

Member Function Documentation

char * AllocateAutoDeletedArray ( int  bytes)

Definition at line 103 of file bootstrapper.cc.

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

int ArchiveSpacePerThread ( )
static

Definition at line 2383 of file bootstrapper.cc.

char * ArchiveState ( char *  to)

Definition at line 2389 of file bootstrapper.cc.

Handle< Context > CreateEnvironment ( Isolate isolate,
Handle< Object global_object,
v8::Handle< v8::ObjectTemplate global_template,
v8::ExtensionConfiguration extensions 
)

Definition at line 300 of file bootstrapper.cc.

References Bootstrapper::InstallExtensions().

Referenced by Context::New().

void DetachGlobal ( Handle< Context env)

Definition at line 328 of file bootstrapper.cc.

References JSGlobalProxy::cast().

Referenced by Context::DetachGlobal().

SourceCodeCache* extensions_cache ( )
inline

Definition at line 132 of file bootstrapper.h.

void FreeThreadResources ( )

Definition at line 2404 of file bootstrapper.cc.

References ASSERT, and Bootstrapper::IsActive().

Referenced by ThreadManager::FreeThreadResources().

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

Definition at line 294 of file bootstrapper.cc.

Referenced by Heap::IterateStrongRoots().

void ReattachGlobal ( Handle< Context env,
Handle< JSGlobalProxy global_proxy 
)

Definition at line 338 of file bootstrapper.cc.

Referenced by Context::ReattachGlobal().

char * RestoreState ( char *  from)

Definition at line 2397 of file bootstrapper.cc.

Referenced by ThreadManager::RestoreThread().

void TearDown ( )

Definition at line 115 of file bootstrapper.cc.

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

Friends And Related Function Documentation

friend class BootstrapperActive
friend

Definition at line 143 of file bootstrapper.h.

Referenced by Bootstrapper::InstallExtensions().

friend class Isolate
friend

Definition at line 144 of file bootstrapper.h.

friend class NativesExternalStringResource
friend

Definition at line 145 of file bootstrapper.h.

Referenced by Bootstrapper::NativesSourceLookup().


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