Static Public メソッド | Private メソッド | Static Private メソッド | フレンド

クラス v8::V8

#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.h1840 行で定義されています。


コンストラクタとデストラクタ

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.

api.cc2576 行で定義されています。

参照先 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.

api.cc2627 行で定義されています。

参照先 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.
戻り値:
the adjusted value.

api.cc2633 行で定義されています。

参照先 v8::IsDeadCheck().

void v8::V8::ClearWeak ( void **  global_handle  )  [static, private]

api.cc333 行で定義されています。

参照先 v8::internal::GlobalHandles::ClearWeakness(), と LOG_API.

void v8::V8::DisposeGlobal ( void **  global_handle  )  [static, private]

api.cc353 行で定義されています。

参照先 v8::internal::GlobalHandles::Destroy(), v8::has_shut_down, と LOG_API.

参照元 v8::Persistent< T >::Dispose().

void v8::V8::EnableSlidingStateWindow (  )  [static]

Enables the computation of a sliding window of states. The sliding window information is recorded in statistics counters.

api.cc2614 行で定義されています。

参照先 v8::IsDeadCheck().

const char * v8::V8::GetVersion (  )  [static]

Get the version string.

api.cc2201 行で定義されています。

参照元 v8::Shell::RunShell(), と v8::Shell::Version().

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.

api.cc2571 行で定義されています。

参照先 v8::internal::HandleScopeImplementer::SetIgnoreOutOfMemory(), と v8::thread_local.

bool v8::V8::Initialize (  )  [static]

Initializes from snapshot if possible. Otherwise, attempts to initialize from scratch.

api.cc2189 行で定義されています。

参照先 v8::internal::Serializer::disable(), v8::internal::V8::HasBeenSetup(), v8::internal::Snapshot::Initialize(), と NULL.

参照元 v8::EnsureInitialized().

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.

api.cc129 行で定義されています。

参照先 v8::has_shut_down.

bool v8::V8::IsGlobalNearDeath ( void **  global_handle  )  [static, private]

api.cc339 行で定義されています。

参照先 v8::has_shut_down, v8::internal::GlobalHandles::IsNearDeath(), と LOG_API.

参照元 v8::Persistent< T >::IsNearDeath().

bool v8::V8::IsGlobalWeak ( void **  global_handle  )  [static, private]

api.cc346 行で定義されています。

参照先 v8::has_shut_down, v8::internal::GlobalHandles::IsWeak(), と LOG_API.

参照元 v8::Persistent< T >::IsWeak().

void v8::V8::MakeWeak ( void **  global_handle,
void *  data,
WeakReferenceCallback  callback 
) [static, private]

api.cc325 行で定義されています。

参照先 LOG_API.

void v8::V8::RemoveMessageListeners ( MessageCallback  that  )  [static]

Remove all message listeners from the specified callback function.

api.cc2591 行で定義されています。

参照先 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.

api.cc2608 行で定義されています。

参照先 v8::IsDeadCheck().

参照元 v8::Shell::Initialize(), と main().

void v8::V8::SetFailedAccessCheckCallbackFunction ( FailedAccessCheckCallback  callback  )  [static]

Callback function for reporting failed access checks.

api.cc2620 行で定義されています。

参照先 v8::IsDeadCheck(), と v8::internal::Top::SetFailedAccessCheckCallback().

void v8::V8::SetFatalErrorHandler ( FatalErrorCallback  that  )  [static]

Set the callback to invoke in case of fatal errors.

api.cc116 行で定義されています。

参照先 v8::exception_behavior.

void v8::V8::SetFlagsFromCommandLine ( int *  argc,
char **  argv,
bool  remove_flags 
) [static]

Sets V8 flags from the command line.

api.cc226 行で定義されています。

void v8::V8::SetFlagsFromString ( const char *  str,
int  length 
) [static]

Sets V8 flags from a string.

api.cc221 行で定義されています。

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.

api.cc2645 行で定義されています。

参照先 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.

api.cc2639 行で定義されています。

参照先 v8::IsDeadCheck().


フレンドと関連する関数

friend class Context [friend]

v8.h1972 行で定義されています。

friend class Handle [friend]

v8.h1969 行で定義されています。

friend class Local [friend]

v8.h1970 行で定義されています。

friend class Persistent [friend]

v8.h1971 行で定義されています。


このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義