ネームスペース | 構成 | 型定義 | 列挙型 | 関数 | 変数

ネームスペース v8

ネームスペース

namespace  internal

構成

class  Consts
class  NeanderObject
class  NeanderArray
class  RegisteredExtension
class  ImplementationUtilities
class  Utils
class  ReadLineEditor
class  DumbLineEditor
class  Counter
class  Shell
class  LineEditor
class  Debug
class  Handle
class  Local
class  Persistent
class  HandleScope
class  Data
class  ScriptData
class  ScriptOrigin
class  Script
class  Message
class  Value
class  Primitive
class  Boolean
class  String
class  Number
class  Integer
class  Int32
class  Uint32
class  Date
class  Object
class  Array
class  Function
class  External
class  Template
class  Arguments
class  AccessorInfo
class  FunctionTemplate
class  ObjectTemplate
class  Signature
class  TypeSwitch
class  Extension
class  DeclareExtension
class  ResourceConstraints
class  Exception
class  V8
class  TryCatch
class  ExtensionConfiguration
class  Context
class  Unlocker
class  Locker

型定義

typedef void(* DebugEventCallback )(DebugEvent event, Handle< Object > exec_state, Handle< Object > event_data, Handle< Value > data)
typedef void(* DebugMessageHandler )(const uint16_t *message, int length, void *data)
typedef void(* WeakReferenceCallback )(Persistent< Value > object, void *parameter)
typedef Handle< Value >(* InvocationCallback )(const Arguments &args)
typedef int(* LookupCallback )(Local< Object > self, Local< String > name)
typedef Handle< Value >(* AccessorGetter )(Local< String > property, const AccessorInfo &info)
typedef void(* AccessorSetter )(Local< String > property, Local< Value > value, const AccessorInfo &info)
typedef Handle< Value >(* NamedPropertyGetter )(Local< String > property, const AccessorInfo &info)
typedef Handle< Value >(* NamedPropertySetter )(Local< String > property, Local< Value > value, const AccessorInfo &info)
typedef Handle< Boolean >(* NamedPropertyQuery )(Local< String > property, const AccessorInfo &info)
typedef Handle< Boolean >(* NamedPropertyDeleter )(Local< String > property, const AccessorInfo &info)
typedef Handle< Array >(* NamedPropertyEnumerator )(const AccessorInfo &info)
typedef Handle< Value >(* IndexedPropertyGetter )(uint32_t index, const AccessorInfo &info)
typedef Handle< Value >(* IndexedPropertySetter )(uint32_t index, Local< Value > value, const AccessorInfo &info)
typedef Handle< Boolean >(* IndexedPropertyQuery )(uint32_t index, const AccessorInfo &info)
typedef Handle< Boolean >(* IndexedPropertyDeleter )(uint32_t index, const AccessorInfo &info)
typedef Handle< Array >(* IndexedPropertyEnumerator )(const AccessorInfo &info)
typedef bool(* NamedSecurityCallback )(Local< Object > global, Local< Value > key, AccessType type, Local< Value > data)
typedef bool(* IndexedSecurityCallback )(Local< Object > global, uint32_t index, AccessType type, Local< Value > data)
typedef void(* FatalErrorCallback )(const char *location, const char *message)
typedef void(* MessageCallback )(Handle< Message > message, Handle< Value > data)
typedef int *(* CounterLookupCallback )(const wchar_t *name)
typedef void(* FailedAccessCheckCallback )(Local< Object > target, AccessType type, Local< Value > data)
typedef void(* GCCallback )()
typedef Persistent< Context >(* ContextGenerator )()

列挙型

enum  ExtensionTraversalState { UNVISITED, VISITED, INSTALLED }
enum  DebugEvent {
  Break = 1, Exception = 2, NewFunction = 3, BeforeCompile = 4,
  AfterCompile = 5
}
enum  PropertyAttribute { None = 0, ReadOnly = 1 << 0, DontEnum = 1 << 1, DontDelete = 1 << 2 }
enum  AccessControl { DEFAULT = 0, ALL_CAN_READ = 1, ALL_CAN_WRITE = 2 }
enum  AccessType {
  ACCESS_GET, ACCESS_SET, ACCESS_HAS, ACCESS_DELETE,
  ACCESS_KEYS
}

関数

static void DefaultFatalErrorHandler (const char *location, const char *message)
static FatalErrorCallbackGetFatalErrorHandler ()
static bool ApiCheck (bool condition, const char *location, const char *message)
static bool ReportV8Dead (const char *location)
static bool ReportEmptyHandle (const char *location)
static bool IsDeadCheck (const char *location)
static bool EmptyCheck (const char *location, v8::Handle< v8::Data > obj)
static bool EmptyCheck (const char *location, v8::Data *obj)
static void EnsureInitialized (const char *location)
v8::Handle< ValueThrowException (v8::Handle< v8::Value > value)
void RegisterExtension (Extension *that)
v8::Handle< PrimitiveUndefined ()
v8::Handle< PrimitiveNull ()
v8::Handle< BooleanTrue ()
v8::Handle< BooleanFalse ()
bool SetResourceConstraints (ResourceConstraints *constraints)
static void InitializeTemplate (i::Handle< i::TemplateInfo > that, int type)
static void InitializeFunctionTemplate (i::Handle< i::FunctionTemplateInfo > info)
static void EnsureConstructor (ObjectTemplate *object_template)
static i::Handle< i::Object > CallV8HeapFunction (const char *name, i::Handle< i::Object > recv, int argc, i::Object **argv[], bool *has_pending_exception)
static i::Handle< i::Object > CallV8HeapFunction (const char *name, i::Handle< i::Object > data, bool *has_pending_exception)
static i::Handle
< i::FunctionTemplateInfo
EnsureConstructor (i::Handle< i::ObjectTemplateInfo > templ)
static int TwoByteStringLength (const uint16_t *data)
i::Handle< i::StringNewExternalStringHandle (v8::String::ExternalStringResource *resource)
i::Handle< i::StringNewExternalAsciiStringHandle (v8::String::ExternalAsciiStringResource *resource)
static void DisposeExternalString (v8::Persistent< v8::Value > obj, void *parameter)
static void DisposeExternalAsciiString (v8::Persistent< v8::Value > obj, void *parameter)
template<typename T >
static T ToCData (v8::internal::Object *obj)
template<typename T >
static v8::internal::Handle
< v8::internal::Object
FromCData (T obj)
template<class T >
static T * ToApi (v8::internal::Handle< v8::internal::Object > obj)

変数

static i::HandleScopeImplementer thread_local
static bool has_shut_down = false
static FatalErrorCallback exception_behavior = NULL
static i::StringInputBuffer write_input_buffer
static int next_serial_number = 0
static ReadLineEditor read_line_editor
static DumbLineEditor dumb_line_editor
static
internal::Thread::LocalStorageKey 
thread_state_key

説明

Debugger support for the V8 JavaScript engine.

The v8 JavaScript engine.


型定義

typedef Handle<Value>(* v8::AccessorGetter)(Local< String > property, const AccessorInfo &info)

Accessor[Getter|Setter] are used as callback functions when setting|getting a particular property. See objectTemplate::SetAccessor.

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

typedef void(* v8::AccessorSetter)(Local< String > property, Local< Value > value, const AccessorInfo &info)

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

Applications must provide a callback function which is called to generate a context if a context was not deserialized from the snapshot.

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

typedef int*(* v8::CounterLookupCallback)(const wchar_t *name)

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

typedef void(* v8::DebugEventCallback)(DebugEvent event, Handle< Object > exec_state, Handle< Object > event_data, Handle< Value > data)

Debug event callback function.

引数:
event the debug event from which occoured (from the DebugEvent enumeration)
exec_state execution state (JavaScript object)
event_data event specific data (JavaScript object)
data value passed by the user to AddDebugEventListener

v8-debug.h91 行で定義されています。

typedef void(* v8::DebugMessageHandler)(const uint16_t *message, int length, void *data)

Debug message callback function.

引数:
message the debug message
length length of the message A DebugMessageHandler does not take posession of the message string, and must not rely on the data persisting after the handler returns.

v8-debug.h105 行で定義されています。

typedef void(* v8::FailedAccessCheckCallback)(Local< Object > target, AccessType type, Local< Value > data)

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

typedef void(* v8::FatalErrorCallback)(const char *location, const char *message)

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

typedef void(* v8::GCCallback)()

Applications can register a callback function which is called before and 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.h1825 行で定義されています。

typedef Handle<Boolean>(* v8::IndexedPropertyDeleter)(uint32_t index, const AccessorInfo &info)

Returns a non-empty handle if the deleter intercepts the request. The return value is true if the property could be deleted and false otherwise.

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

Returns an array containing the indices of the properties the indexed property getter intercepts.

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

typedef Handle<Value>(* v8::IndexedPropertyGetter)(uint32_t index, const AccessorInfo &info)

Returns the value of the property if the getter intercepts the request. Otherwise, returns an empty handle.

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

typedef Handle<Boolean>(* v8::IndexedPropertyQuery)(uint32_t index, const AccessorInfo &info)

Returns a non-empty handle if the interceptor intercepts the request. The result is true if the property exists and false otherwise.

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

typedef Handle<Value>(* v8::IndexedPropertySetter)(uint32_t index, Local< Value > value, const AccessorInfo &info)

Returns the value if the setter intercepts the request. Otherwise, returns an empty handle.

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

typedef bool(* v8::IndexedSecurityCallback)(Local< Object > global, uint32_t index, AccessType type, Local< Value > data)

Returns true if cross-context access should be allowed to the indexed property with the given index on the global object.

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

typedef Handle<Value>(* v8::InvocationCallback)(const Arguments &args)

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

typedef int(* v8::LookupCallback)(Local< Object > self, Local< String > name)

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

typedef void(* v8::MessageCallback)(Handle< Message > message, Handle< Value > data)

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

typedef Handle<Boolean>(* v8::NamedPropertyDeleter)(Local< String > property, const AccessorInfo &info)

Returns a non-empty handle if the deleter intercepts the request. The return value is true if the property could be deleted and false otherwise.

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

Returns an array containing the names of the properties the named property getter intercepts.

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

typedef Handle<Value>(* v8::NamedPropertyGetter)(Local< String > property, const AccessorInfo &info)

NamedProperty[Getter|Setter] are used as interceptors on object. See ObjectTemplate::SetNamedPropertyHandler.

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

typedef Handle<Boolean>(* v8::NamedPropertyQuery)(Local< String > property, const AccessorInfo &info)

Returns a non-empty handle if the interceptor intercepts the request. The result is true if the property exists and false otherwise.

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

typedef Handle<Value>(* v8::NamedPropertySetter)(Local< String > property, Local< Value > value, const AccessorInfo &info)

Returns the value if the setter intercepts the request. Otherwise, returns an empty handle.

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

typedef bool(* v8::NamedSecurityCallback)(Local< Object > global, Local< Value > key, AccessType type, Local< Value > data)

Returns true if cross-context access should be allowed to the named property with the given key on the global object.

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

typedef void(* v8::WeakReferenceCallback)(Persistent< Value > object, void *parameter)

A weak reference callback function.

引数:
object the weak global object to be reclaimed by the garbage collector
parameter the value passed in when making the weak global object

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


列挙型

Access control specifications.

Some accessors should be accessible across contexts. These accessors have an explicit access control parameter which specifies the kind of cross-context access that should be allowed.

列挙型の値:
DEFAULT 
ALL_CAN_READ 
ALL_CAN_WRITE 

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

Access type specification.

列挙型の値:
ACCESS_GET 
ACCESS_SET 
ACCESS_HAS 
ACCESS_DELETE 
ACCESS_KEYS 

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

列挙型の値:
Break 
Exception 
NewFunction 
BeforeCompile 
AfterCompile 

v8-debug.h73 行で定義されています。

列挙型の値:
UNVISITED 
VISITED 
INSTALLED 

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

列挙型の値:
None 
ReadOnly 
DontEnum 
DontDelete 

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


関数

static bool v8::ApiCheck ( bool  condition,
const char *  location,
const char *  message 
) [inline, static]
static i::Handle<i::Object> v8::CallV8HeapFunction ( const char *  name,
i::Handle< i::Object >  recv,
int  argc,
i::Object **  argv[],
bool *  has_pending_exception 
) [static]
static i::Handle<i::Object> v8::CallV8HeapFunction ( const char *  name,
i::Handle< i::Object >  data,
bool *  has_pending_exception 
) [static]
static void v8::DefaultFatalErrorHandler ( const char *  location,
const char *  message 
) [static]

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

参照先 API_Fatal().

static void v8::DisposeExternalAsciiString ( v8::Persistent< v8::Value obj,
void *  parameter 
) [static]
static void v8::DisposeExternalString ( v8::Persistent< v8::Value obj,
void *  parameter 
) [static]
static bool v8::EmptyCheck ( const char *  location,
v8::Data obj 
) [inline, static]

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

参照先 ReportEmptyHandle().

static bool v8::EmptyCheck ( const char *  location,
v8::Handle< v8::Data obj 
) [inline, static]
static void v8::EnsureConstructor ( ObjectTemplate *  object_template  )  [static]
static i::Handle<i::FunctionTemplateInfo> v8::EnsureConstructor ( i::Handle< i::ObjectTemplateInfo templ  )  [static]
static void v8::EnsureInitialized ( const char *  location  )  [static]
Handle< Boolean > EXPORT v8::False (  ) 

参照元 v8::Boolean::New().

template<typename T >
static v8::internal::Handle<v8::internal::Object> v8::FromCData ( obj  )  [inline, static]
static FatalErrorCallback& v8::GetFatalErrorHandler (  )  [static]

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

参照先 exception_behavior, と NULL.

参照元 v8::Utils::ReportApiFailure(), ReportEmptyHandle(), と ReportV8Dead().

static void v8::InitializeFunctionTemplate ( i::Handle< i::FunctionTemplateInfo info  )  [static]

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

参照先 v8::internal::Smi::FromInt(), と v8::Consts::FUNCTION_TEMPLATE.

参照元 v8::FunctionTemplate::New().

static void v8::InitializeTemplate ( i::Handle< i::TemplateInfo that,
int  type 
) [static]

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

参照先 v8::internal::Smi::FromInt().

参照元 v8::ObjectTemplate::New().

static bool v8::IsDeadCheck ( const char *  location  )  [inline, static]

IsDeadCheck checks that the vm is useable. If, for instance, the vm has been out of memory at some point this check will fail. It should be called on entry to all methods that touch anything in the heap, except destructors which you sometimes can't avoid calling after the vm has crashed. Functions that call EnsureInitialized or ON_BAILOUT don't have to also call IsDeadCheck. ON_BAILOUT has the advantage over EnsureInitialized that you can arrange to return if the VM is dead. This is needed to ensure that no VM heap allocations are attempted on a dead VM. EnsureInitialized has the advantage over ON_BAILOUT that it actually initializes the VM if this has not yet been done.

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

参照先 has_shut_down, と ReportV8Dead().

参照元 v8::FunctionTemplate::AddInstancePropertyAccessor(), v8::V8::AddObjectToGroup(), v8::V8::AdjustAmountOfExternalAllocatedMemory(), v8::Value::BooleanValue(), v8::Date::Cast(), v8::Array::Cast(), v8::Integer::Cast(), v8::Number::Cast(), v8::String::Cast(), v8::Function::Cast(), v8::Object::Cast(), v8::External::Cast(), v8::Context::DetachGlobal(), v8::V8::EnableSlidingStateWindow(), EnsureInitialized(), v8::Context::Enter(), v8::Value::Equals(), v8::ImplementationUtilities::False(), v8::Context::GetCurrent(), v8::Message::GetEndColumn(), v8::Message::GetEndPosition(), v8::Context::GetEntered(), v8::Object::GetInternalField(), v8::Message::GetScriptResourceName(), v8::Context::GetSecurityToken(), v8::Message::GetStartColumn(), v8::Message::GetStartPosition(), v8::Context::Global(), v8::V8::GlobalizeReference(), v8::FunctionTemplate::Inherit(), v8::FunctionTemplate::InstanceTemplate(), v8::Value::Int32Value(), v8::Value::IntegerValue(), v8::Object::InternalFieldCount(), v8::ObjectTemplate::InternalFieldCount(), v8::Value::IsArray(), v8::Value::IsBoolean(), v8::Value::IsDate(), v8::Value::IsExternal(), v8::Value::IsFalse(), v8::Value::IsFunction(), v8::Value::IsInt32(), v8::Value::IsNull(), v8::Value::IsNumber(), v8::Value::IsObject(), v8::Value::IsString(), v8::Value::IsTrue(), v8::Value::IsUndefined(), v8::Array::Length(), v8::String::Length(), v8::ObjectTemplate::MarkAsUndetectable(), v8::ObjectTemplate::New(), v8::ImplementationUtilities::Null(), v8::Date::NumberValue(), v8::Value::NumberValue(), v8::Message::PrintCurrentStackTrace(), v8::FunctionTemplate::PrototypeTemplate(), v8::Template::Set(), v8::ObjectTemplate::SetAccessCheckCallbacks(), v8::ObjectTemplate::SetAccessor(), v8::ObjectTemplate::SetCallAsFunctionHandler(), v8::FunctionTemplate::SetCallHandler(), v8::FunctionTemplate::SetClassName(), v8::V8::SetCounterFunction(), v8::V8::SetFailedAccessCheckCallbackFunction(), v8::V8::SetGlobalGCEpilogueCallback(), v8::V8::SetGlobalGCPrologueCallback(), v8::FunctionTemplate::SetHiddenPrototype(), v8::FunctionTemplate::SetIndexedInstancePropertyHandler(), v8::ObjectTemplate::SetIndexedPropertyHandler(), v8::FunctionTemplate::SetInstanceCallAsFunctionHandler(), v8::Object::SetInternalField(), v8::ObjectTemplate::SetInternalFieldCount(), v8::FunctionTemplate::SetNamedInstancePropertyHandler(), v8::ObjectTemplate::SetNamedPropertyHandler(), v8::Context::SetSecurityToken(), v8::Value::StrictEquals(), v8::Value::ToArrayIndex(), v8::Value::ToBoolean(), v8::Value::ToDetailString(), v8::Value::ToInt32(), v8::Value::ToInteger(), v8::Value::ToNumber(), v8::Value::ToObject(), v8::Value::ToString(), v8::Value::ToUint32(), v8::ImplementationUtilities::True(), v8::Value::Uint32Value(), v8::ImplementationUtilities::Undefined(), v8::Context::UseDefaultSecurityToken(), v8::String::Utf8Length(), v8::External::Value(), v8::Int32::Value(), v8::Integer::Value(), v8::Boolean::Value(), v8::Number::Value(), v8::String::Write(), v8::String::WriteAscii(), と v8::String::WriteUtf8().

i::Handle<i::String> v8::NewExternalAsciiStringHandle ( v8::String::ExternalAsciiStringResource resource  ) 

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

参照先 v8::internal::Factory::NewExternalStringFromAscii().

参照元 v8::String::NewExternal().

i::Handle<i::String> v8::NewExternalStringHandle ( v8::String::ExternalStringResource resource  ) 

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

参照先 v8::internal::Factory::NewExternalStringFromTwoByte().

参照元 v8::String::NewExternal().

Handle< Primitive > EXPORT v8::Null (  ) 
void EXPORT v8::RegisterExtension ( Extension *  that  ) 
static bool v8::ReportEmptyHandle ( const char *  location  )  [static]

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

参照先 GetFatalErrorHandler().

参照元 EmptyCheck().

static bool v8::ReportV8Dead ( const char *  location  )  [static]

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

参照先 GetFatalErrorHandler().

参照元 IsDeadCheck().

bool v8::SetResourceConstraints ( ResourceConstraints *  constraints  ) 
Handle< Value > EXPORT v8::ThrowException ( Handle< Value >  exception  ) 

Schedules an exception to be thrown when returning to JavaScript. When an exception has been scheduled it is illegal to invoke any JavaScript operation; the caller must return immediately and only after the exception has been handled does it become legal to invoke JavaScript operations.

参照元 v8::Shell::Load().

template<class T >
static T* v8::ToApi ( v8::internal::Handle< v8::internal::Object obj  )  [inline, static]

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

参照先 v8::internal::Handle< T >::location(), と T.

template<typename T >
static T v8::ToCData ( v8::internal::Object obj  )  [inline, static]

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

参照先 v8::internal::Proxy::cast(), STATIC_ASSERT, と T.

Handle< Boolean > EXPORT v8::True (  ) 

参照元 v8::Boolean::New().

static int v8::TwoByteStringLength ( const uint16_t *  data  )  [static]

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

参照元 v8::String::New(), と v8::String::NewUndetectable().

Handle< Primitive > EXPORT v8::Undefined (  ) 

変数

d8.cc72 行で定義されています。

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

参照元 GetFatalErrorHandler(), と v8::V8::SetFatalErrorHandler().

bool v8::has_shut_down = false [static]
int v8::next_serial_number = 0 [static]

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

参照元 v8::FunctionTemplate::New().

d8-readline.cc51 行で定義されています。

初期値:
    internal::Thread::CreateThreadLocalKey()

v8threads.cc37 行で定義されています。

参照元 v8::internal::ThreadManager::ArchiveThread(), と v8::internal::ThreadManager::RestoreThread().

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

参照元 v8::String::Write(), v8::String::WriteAscii(), と v8::String::WriteUtf8().

 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義