#include <v8.h>
Static Public メソッド | |
static void | SetFatalErrorHandler (FatalErrorCallback that) |
static void | IgnoreOutOfMemoryException () |
static bool | IsDead () |
static bool | AddMessageListener (MessageCallback that, Handle< Value > data=Handle< Value >()) |
static void | RemoveMessageListeners (MessageCallback that) |
static void | SetFlagsFromString (const char *str, int length) |
static void | SetFlagsFromCommandLine (int *argc, char **argv, bool remove_flags) |
static const char * | GetVersion () |
static void | SetCounterFunction (CounterLookupCallback) |
static void | EnableSlidingStateWindow () |
static void | SetFailedAccessCheckCallbackFunction (FailedAccessCheckCallback) |
static void | SetGlobalGCPrologueCallback (GCCallback) |
static void | SetGlobalGCEpilogueCallback (GCCallback) |
static void | AddObjectToGroup (void *id, Persistent< Object > obj) |
static bool | Initialize () |
static int | AdjustAmountOfExternalAllocatedMemory (int change_in_bytes) |
Private メソッド | |
V8 () | |
Static Private メソッド | |
static void ** | GlobalizeReference (void **handle) |
static void | DisposeGlobal (void **global_handle) |
static void | MakeWeak (void **global_handle, void *data, WeakReferenceCallback) |
static void | ClearWeak (void **global_handle) |
static bool | IsGlobalNearDeath (void **global_handle) |
static bool | IsGlobalWeak (void **global_handle) |
フレンド | |
class | Handle |
class | Local |
class | Persistent |
class | Context |
Container class for static utility functions.
v8::V8::V8 | ( | ) | [private] |
bool v8::V8::AddMessageListener | ( | MessageCallback | that, | |
Handle< Value > | data = Handle<Value>() | |||
) | [static] |
Adds a message listener.
The same message listener can be added more than once and it that case it will be called more than once for each message.
参照先 v8::NeanderArray::add(), v8::EnsureInitialized(), FUNCTION_ADDR, v8::Handle< T >::IsEmpty(), v8::internal::Factory::NewProxy(), ON_BAILOUT, v8::Utils::OpenHandle(), v8::NeanderObject::set(), と v8::NeanderObject::value().
void v8::V8::AddObjectToGroup | ( | void * | id, | |
Persistent< Object > | obj | |||
) | [static] |
Allows the host application to group objects together. If one object in the group is alive, all objects in the group are alive. After each garbage collection, object groups are removed. It is intended to be used in the before-garbage-collection callback function for istance to simulate DOM tree connections among JS wrapper objects.
参照先 v8::internal::GlobalHandles::AddToGroup(), と v8::IsDeadCheck().
int v8::V8::AdjustAmountOfExternalAllocatedMemory | ( | int | change_in_bytes | ) | [static] |
Adjusts the amount of registered external memory. Used to give V8 an indication of the amount of externally allocated memory that is kept alive by JavaScript objects. V8 uses this to decide when to perform global garbage collections. Registering externally allocated memory will trigger global garbage collections more often than otherwise in an attempt to garbage collect the JavaScript objects keeping the externally allocated memory alive.
change_in_bytes | the change in externally allocated memory that is kept alive by JavaScript objects. |
参照先 v8::IsDeadCheck().
void v8::V8::ClearWeak | ( | void ** | global_handle | ) | [static, private] |
void v8::V8::DisposeGlobal | ( | void ** | global_handle | ) | [static, private] |
void v8::V8::EnableSlidingStateWindow | ( | ) | [static] |
Enables the computation of a sliding window of states. The sliding window information is recorded in statistics counters.
参照先 v8::IsDeadCheck().
const char * v8::V8::GetVersion | ( | ) | [static] |
Get the version string.
void ** v8::V8::GlobalizeReference | ( | void ** | handle | ) | [static, private] |
void v8::V8::IgnoreOutOfMemoryException | ( | ) | [static] |
Ignore out-of-memory exceptions.
V8 running out of memory is treated as a fatal error by default. This means that the fatal error handler is called and that V8 is terminated.
IgnoreOutOfMemoryException can be used to not treat a out-of-memory situation as a fatal error. This way, the contexts that did not cause the out of memory problem might be able to continue execution.
参照先 v8::internal::HandleScopeImplementer::SetIgnoreOutOfMemory(), と v8::thread_local.
bool v8::V8::Initialize | ( | ) | [static] |
Initializes from snapshot if possible. Otherwise, attempts to initialize from scratch.
参照先 v8::internal::Serializer::disable(), v8::internal::V8::HasBeenSetup(), v8::internal::Snapshot::Initialize(), と NULL.
bool v8::V8::IsDead | ( | ) | [static] |
Check if V8 is dead and therefore unusable. This is the case after fatal errors such as out-of-memory situations.
参照先 v8::has_shut_down.
bool v8::V8::IsGlobalNearDeath | ( | void ** | global_handle | ) | [static, private] |
bool v8::V8::IsGlobalWeak | ( | void ** | global_handle | ) | [static, private] |
void v8::V8::MakeWeak | ( | void ** | global_handle, | |
void * | data, | |||
WeakReferenceCallback | callback | |||
) | [static, private] |
void v8::V8::RemoveMessageListeners | ( | MessageCallback | that | ) | [static] |
Remove all message listeners from the specified callback function.
参照先 v8::internal::Proxy::cast(), v8::internal::JSObject::cast(), v8::EnsureInitialized(), FUNCTION_ADDR, v8::NeanderObject::get(), v8::NeanderArray::get(), v8::NeanderArray::length(), ON_BAILOUT, と v8::NeanderArray::set().
void v8::V8::SetCounterFunction | ( | CounterLookupCallback | callback | ) | [static] |
Enables the host application to provide a mechanism for recording statistics counters.
参照先 v8::IsDeadCheck().
参照元 v8::Shell::Initialize(), と main().
void v8::V8::SetFailedAccessCheckCallbackFunction | ( | FailedAccessCheckCallback | callback | ) | [static] |
Callback function for reporting failed access checks.
参照先 v8::IsDeadCheck(), と v8::internal::Top::SetFailedAccessCheckCallback().
void v8::V8::SetFatalErrorHandler | ( | FatalErrorCallback | that | ) | [static] |
Set the callback to invoke in case of fatal errors.
void v8::V8::SetFlagsFromCommandLine | ( | int * | argc, | |
char ** | argv, | |||
bool | remove_flags | |||
) | [static] |
void v8::V8::SetFlagsFromString | ( | const char * | str, | |
int | length | |||
) | [static] |
void v8::V8::SetGlobalGCEpilogueCallback | ( | GCCallback | callback | ) | [static] |
Enables the host application to receive a notification after a major garbage collection. Allocations are not allowed in the callback function, you therefore cannot manipulate objects (set or delete properties for example) since it is possible such operations will result in the allocation of objects.
参照先 v8::IsDeadCheck().
void v8::V8::SetGlobalGCPrologueCallback | ( | GCCallback | callback | ) | [static] |
Enables the host application to receive a notification before a major garbage colletion. Allocations are not allowed in the callback function, you therefore cannot manipulate objects (set or delete properties for example) since it is possible such operations will result in the allocation of objects.
参照先 v8::IsDeadCheck().
friend class Persistent [friend] |