v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <bootstrapper.h>
Public Member Functions | |
void | Initialize (bool create_heap_objects) |
void | TearDown () |
Handle< Context > | CreateEnvironment (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< String > | NativesSourceLookup (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 |
Definition at line 89 of file bootstrapper.h.
char * AllocateAutoDeletedArray | ( | int | bytes | ) |
Definition at line 103 of file bootstrapper.cc.
References List< T, P >::Add(), v8::internal::memory(), and v8::internal::NULL.
|
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().
Definition at line 328 of file bootstrapper.cc.
References JSGlobalProxy::cast().
Referenced by Context::DetachGlobal().
|
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 | ) |
Definition at line 95 of file bootstrapper.cc.
References GCExtension::Register(), StatisticsExtension::Register(), and ExternalizeStringExtension::Register().
bool InstallExtensions | ( | Handle< Context > | native_context, |
v8::ExtensionConfiguration * | extensions | ||
) |
Definition at line 1933 of file bootstrapper.cc.
References Bootstrapper::BootstrapperActive, and Isolate::set_context().
Referenced by Bootstrapper::CreateEnvironment().
|
inline |
Definition at line 116 of file bootstrapper.h.
Referenced by Scope::Analyze(), Heap::ClearJSFunctionResultCaches(), Heap::ClearNormalizedMapCaches(), Isolate::DoThrow(), and Bootstrapper::FreeThreadResources().
void Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 294 of file bootstrapper.cc.
Referenced by Heap::IterateStrongRoots().
Definition at line 74 of file bootstrapper.cc.
References ASSERT, Handle< T >::cast(), Isolate::factory(), NativesCollection< type >::GetBuiltinsCount(), NativesCollection< type >::GetRawScriptSource(), Isolate::heap(), Vector< T >::length(), Bootstrapper::NativesExternalStringResource, Factory::NewExternalStringFromAscii(), and Vector< T >::start().
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.
|
friend |
Definition at line 143 of file bootstrapper.h.
Referenced by Bootstrapper::InstallExtensions().
|
friend |
Definition at line 144 of file bootstrapper.h.
|
friend |
Definition at line 145 of file bootstrapper.h.
Referenced by Bootstrapper::NativesSourceLookup().