v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utils Class Reference

#include <api.h>

Static Public Member Functions

static bool ApiCheck (bool condition, const char *location, const char *message)
 
static Local< FunctionTemplateToFunctionTemplate (NeanderObject obj)
 
static Local< ObjectTemplateToObjectTemplate (NeanderObject obj)
 
static Local< ContextToLocal (v8::internal::Handle< v8::internal::Context > obj)
 
static Local< ValueToLocal (v8::internal::Handle< v8::internal::Object > obj)
 
static Local< FunctionToLocal (v8::internal::Handle< v8::internal::JSFunction > obj)
 
static Local< StringToLocal (v8::internal::Handle< v8::internal::String > obj)
 
static Local< SymbolToLocal (v8::internal::Handle< v8::internal::Symbol > obj)
 
static Local< RegExpToLocal (v8::internal::Handle< v8::internal::JSRegExp > obj)
 
static Local< ObjectToLocal (v8::internal::Handle< v8::internal::JSObject > obj)
 
static Local< ArrayToLocal (v8::internal::Handle< v8::internal::JSArray > obj)
 
static Local< ArrayBufferToLocal (v8::internal::Handle< v8::internal::JSArrayBuffer > obj)
 
static Local< ArrayBufferViewToLocal (v8::internal::Handle< v8::internal::JSArrayBufferView > obj)
 
static Local< DataViewToLocal (v8::internal::Handle< v8::internal::JSDataView > obj)
 
static Local< TypedArrayToLocal (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Uint8ArrayToLocalUint8Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Uint8ClampedArrayToLocalUint8ClampedArray (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Int8ArrayToLocalInt8Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Uint16ArrayToLocalUint16Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Int16ArrayToLocalInt16Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Uint32ArrayToLocalUint32Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Int32ArrayToLocalInt32Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Float32ArrayToLocalFloat32Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< Float64ArrayToLocalFloat64Array (v8::internal::Handle< v8::internal::JSTypedArray > obj)
 
static Local< MessageMessageToLocal (v8::internal::Handle< v8::internal::Object > obj)
 
static Local< StackTraceStackTraceToLocal (v8::internal::Handle< v8::internal::JSArray > obj)
 
static Local< StackFrameStackFrameToLocal (v8::internal::Handle< v8::internal::JSObject > obj)
 
static Local< NumberNumberToLocal (v8::internal::Handle< v8::internal::Object > obj)
 
static Local< IntegerIntegerToLocal (v8::internal::Handle< v8::internal::Object > obj)
 
static Local< Uint32Uint32ToLocal (v8::internal::Handle< v8::internal::Object > obj)
 
static Local< FunctionTemplateToLocal (v8::internal::Handle< v8::internal::FunctionTemplateInfo > obj)
 
static Local< ObjectTemplateToLocal (v8::internal::Handle< v8::internal::ObjectTemplateInfo > obj)
 
static Local< SignatureToLocal (v8::internal::Handle< v8::internal::SignatureInfo > obj)
 
static Local< AccessorSignatureAccessorSignatureToLocal (v8::internal::Handle< v8::internal::FunctionTemplateInfo > obj)
 
static Local< TypeSwitchToLocal (v8::internal::Handle< v8::internal::TypeSwitchInfo > obj)
 
static Local< ExternalExternalToLocal (v8::internal::Handle< v8::internal::JSObject > obj)
 
static Local
< DeclaredAccessorDescriptor
ToLocal (v8::internal::Handle< v8::internal::DeclaredAccessorDescriptor > obj)
 
template<class From , class To >
static Local< To > Convert (v8::internal::Handle< From > obj)
 
template<class T >
static v8::internal::Handle
< v8::internal::Object
OpenPersistent (const v8::Persistent< T > &persistent)
 
template<class T >
static v8::internal::Handle
< v8::internal::Object
OpenPersistent (v8::Persistent< T > *persistent)
 
template<class From , class To >
static v8::internal::Handle< To > OpenHandle (v8::Local< From > handle)
 

Detailed Description

Definition at line 197 of file api.h.

Member Function Documentation

static Local<AccessorSignature> AccessorSignatureToLocal ( v8::internal::Handle< v8::internal::FunctionTemplateInfo obj)
inlinestatic

Referenced by AccessorSignature::New().

static Local<To> Convert ( v8::internal::Handle< From >  obj)
inlinestatic

Definition at line 289 of file api.h.

References ASSERT, and Handle< T >::is_null().

static Local<External> ExternalToLocal ( v8::internal::Handle< v8::internal::JSObject obj)
inlinestatic

Referenced by External::New().

static Local<Integer> IntegerToLocal ( v8::internal::Handle< v8::internal::Object obj)
inlinestatic
static Local<Message> MessageToLocal ( v8::internal::Handle< v8::internal::Object obj)
inlinestatic
static Local<Number> NumberToLocal ( v8::internal::Handle< v8::internal::Object obj)
inlinestatic

Referenced by Number::New().

static v8::internal::Handle<To> OpenHandle ( v8::Local< From >  handle)
inlinestatic

Definition at line 308 of file api.h.

Referenced by V8::AddMessageListener(), Context::AllowCodeGenerationFromStrings(), StackTrace::AsArray(), UnboundScript::BindToCurrentContext(), Value::BooleanValue(), ArrayBufferView::Buffer(), ArrayBuffer::ByteLength(), ArrayBufferView::ByteLength(), ArrayBufferView::ByteOffset(), Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), String::CanMakeExternal(), Promise::Catch(), Promise::Chain(), Object::Clone(), Array::CloneElementAt(), Script::Compile(), ScriptCompiler::CompileUnbound(), String::Concat(), String::ContainsOnlyOneByte(), CreateCode(), Object::CreationContext(), Object::Delete(), Object::DeleteHiddenValue(), Context::DetachGlobal(), DummyCode(), V8::EnqueueMicrotask(), Context::Enter(), Value::Equals(), Exception::Error(), Handle< T >::EscapeFrom(), Context::Exit(), ExternalizeStringExtension::Externalize(), ArrayBuffer::Externalize(), Object::FindInstanceInPrototypeChain(), FooGetInterceptor(), FooSetInterceptor(), Symbol::For(), Symbol::ForApi(), Private::ForApi(), Object::ForceDelete(), Object::ForceSet(), FormatMessage(), Message::Get(), Object::Get(), Function::GetBoundFunction(), StackFrame::GetColumn(), Object::GetConstructor(), Object::GetConstructorName(), Function::GetDisplayName(), JSObject::GetElementWithInterceptor(), Message::GetEndColumn(), Message::GetEndPosition(), String::GetExternalAsciiStringResource(), RegExp::GetFlags(), StackTrace::GetFrame(), StackTrace::GetFrameCount(), FunctionTemplate::GetFunction(), GetFunctionLineNumber(), StackFrame::GetFunctionName(), Object::GetHiddenValue(), UnboundScript::GetId(), Object::GetIdentityHash(), Object::GetIndexedPropertiesExternalArrayData(), Object::GetIndexedPropertiesExternalArrayDataLength(), Object::GetIndexedPropertiesExternalArrayDataType(), Object::GetIndexedPropertiesPixelData(), Object::GetIndexedPropertiesPixelDataLength(), Function::GetInferredName(), Context::GetIsolate(), v8::internal::GetKeysForIndexedInterceptor(), v8::internal::GetKeysForNamedInterceptor(), v8::internal::GetKeysInFixedArrayFor(), UnboundScript::GetLineNumber(), Message::GetLineNumber(), StackFrame::GetLineNumber(), Function::GetName(), HeapProfiler::GetObjectId(), Object::GetOwnPropertyNames(), Promise::Resolver::GetPromise(), Object::GetPropertyAttributes(), Object::GetPropertyNames(), JSObject::GetPropertyWithCallback(), JSObject::GetPropertyWithInterceptor(), Object::GetPrototype(), Object::GetRealNamedProperty(), Object::GetRealNamedPropertyInPrototypeChain(), Function::GetScriptColumnNumber(), StackFrame::GetScriptId(), Function::GetScriptLineNumber(), UnboundScript::GetScriptName(), StackFrame::GetScriptName(), StackFrame::GetScriptNameOrSourceURL(), Function::GetScriptOrigin(), Message::GetScriptResourceName(), Context::GetSecurityToken(), RegExp::GetSource(), Message::GetSourceLine(), Message::GetStackTrace(), Message::GetStartColumn(), Message::GetStartPosition(), Script::GetUnboundScript(), GetUtf8Length(), Context::Global(), Object::Has(), Object::HasIndexedLookupInterceptor(), Object::HasIndexedPropertiesInExternalArrayData(), Object::HasIndexedPropertiesInPixelData(), FunctionTemplate::HasInstance(), Object::HasNamedLookupInterceptor(), Object::HasOwnProperty(), Object::HasRealIndexedProperty(), Object::HasRealNamedCallbackProperty(), Object::HasRealNamedProperty(), FunctionTemplate::Inherit(), FunctionTemplate::InstanceTemplate(), Value::Int32Value(), Value::IntegerValue(), Object::InternalFieldCount(), ObjectTemplate::InternalFieldCount(), Value::IsArray(), Value::IsArrayBuffer(), Value::IsArrayBufferView(), ExternalizeStringExtension::IsAscii(), Value::IsBoolean(), Value::IsBooleanObject(), Function::IsBuiltin(), Object::IsCallable(), Context::IsCodeGenerationFromStringsAllowed(), StackFrame::IsConstructor(), Value::IsDataView(), Value::IsDate(), Object::IsDirty(), StackFrame::IsEval(), Value::IsExternal(), String::IsExternal(), ArrayBuffer::IsExternal(), String::IsExternalAscii(), Value::IsFalse(), Value::IsFunction(), Value::IsInt32(), Value::IsNativeError(), Value::IsNumber(), Value::IsNumberObject(), Value::IsObject(), String::IsOneByte(), Value::IsPromise(), Value::IsRegExp(), Message::IsSharedCrossOrigin(), Value::IsStringObject(), Value::IsSymbol(), Value::IsSymbolObject(), Value::IsTrue(), Value::IsTypedArray(), Value::IsUint32(), String::Length(), Array::Length(), TypedArray::Length(), String::MakeExternal(), ObjectTemplate::MarkAsUndetectable(), TypeSwitch::match(), Symbol::Name(), ArrayBuffer::Neuter(), Symbol::New(), Private::New(), DataView::New(), StringObject::New(), SymbolObject::New(), RegExp::New(), Signature::New(), AccessorSignature::New(), TypeSwitch::New(), Function::NewInstance(), ObjectTemplate::NewInstance(), v8::NewTypedArray(), Value::NumberValue(), Object::ObjectProtoToString(), JSON::Parse(), ScriptData::PreCompile(), FunctionTemplate::PrototypeTemplate(), Exception::RangeError(), FunctionTemplate::ReadOnlyPrototype(), Exception::ReferenceError(), Promise::Resolver::Reject(), FunctionTemplate::RemovePrototype(), Promise::Resolver::Resolve(), Script::Run(), SetFunctionEntryHookTest::RunLoopInNewEnv(), v8::internal::RUNTIME_FUNCTION(), Value::SameValue(), Function::ScriptId(), Object::Set(), ObjectTemplate::SetAccessCheckCallbacks(), Object::SetAccessorProperty(), Template::SetAccessorProperty(), Object::SetAlignedPointerInInternalField(), ObjectTemplate::SetCallAsFunctionHandler(), FunctionTemplate::SetCallHandler(), FunctionTemplate::SetClassName(), Context::SetEmbedderData(), Context::SetErrorMessageForCodeGenerationFromStrings(), FunctionTemplate::SetHiddenPrototype(), Object::SetHiddenValue(), Object::SetIndexedPropertiesToExternalArrayData(), Object::SetIndexedPropertiesToPixelData(), ObjectTemplate::SetIndexedPropertyHandler(), Object::SetInternalField(), ObjectTemplate::SetInternalFieldCount(), FunctionTemplate::SetLength(), Function::SetName(), ObjectTemplate::SetNamedPropertyHandler(), Object::SetPrototype(), Context::SetSecurityToken(), CpuProfiler::StartProfiling(), CpuProfiler::StopProfiling(), Value::StrictEquals(), Exception::SyntaxError(), HeapProfiler::TakeHeapSnapshot(), TEST(), TestViewFromApi(), THREADED_TEST(), Isolate::ThrowException(), Value::ToArrayIndex(), Value::ToBoolean(), Value::ToDetailString(), Value::ToInt32(), Value::ToInteger(), Value::ToNumber(), Value::ToObject(), Value::ToString(), Value::ToUint32(), Execution::TryCall(), Object::TurnOnAccessCheck(), Exception::TypeError(), Value::Uint32Value(), UNINITIALIZED_TEST(), Context::UseDefaultSecurityToken(), String::Utf8Length(), String::Utf8Value::Utf8Value(), Boolean::Value(), Number::Value(), Integer::Value(), Int32::Value(), Uint32::Value(), External::Value(), Date::ValueOf(), NumberObject::ValueOf(), BooleanObject::ValueOf(), StringObject::ValueOf(), SymbolObject::ValueOf(), and String::WriteUtf8().

static v8::internal::Handle<v8::internal::Object> OpenPersistent ( const v8::Persistent< T > &  persistent)
inlinestatic

Definition at line 295 of file api.h.

Referenced by main(), Utils::OpenPersistent(), and TEST().

static v8::internal::Handle<v8::internal::Object> OpenPersistent ( v8::Persistent< T > *  persistent)
inlinestatic

Definition at line 302 of file api.h.

References Utils::OpenPersistent().

static Local<StackFrame> StackFrameToLocal ( v8::internal::Handle< v8::internal::JSObject obj)
inlinestatic

Referenced by StackTrace::GetFrame().

static Local<StackTrace> StackTraceToLocal ( v8::internal::Handle< v8::internal::JSArray obj)
inlinestatic
static Local<FunctionTemplate> ToFunctionTemplate ( NeanderObject  obj)
static
static Local<Context> ToLocal ( v8::internal::Handle< v8::internal::Context obj)
inlinestatic

Referenced by StackTrace::AsArray(), ArrayBufferView::Buffer(), Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), Promise::Catch(), Promise::Chain(), Object::Clone(), Array::CloneElementAt(), v8::internal::CodeGenerationFromStringsAllowed(), String::Concat(), Shell::CreateEvaluationContext(), Object::CreationContext(), Exception::Error(), Handle< T >::EscapeFrom(), TryCatch::Exception(), HeapProfiler::ExecuteWrapperClassCallback(), Object::FindInstanceInPrototypeChain(), HeapProfiler::FindObjectById(), Symbol::For(), Symbol::ForApi(), Private::ForApi(), Message::Get(), Object::Get(), Function::GetBoundFunction(), Isolate::GetCallingContext(), Object::GetConstructor(), Object::GetConstructorName(), Isolate::GetCurrentContext(), Function::GetDisplayName(), Isolate::GetEnteredContext(), FunctionTemplate::GetFunction(), StackFrame::GetFunctionName(), Object::GetHiddenValue(), Function::GetInferredName(), Function::GetName(), Object::GetOwnPropertyNames(), Promise::Resolver::GetPromise(), JSObject::GetPropertyAttributeWithInterceptor(), Object::GetPropertyNames(), JSObject::GetPropertyWithCallback(), JSObject::GetPropertyWithInterceptor(), Object::GetPrototype(), UnboundScript::GetScriptName(), StackFrame::GetScriptName(), StackFrame::GetScriptNameOrSourceURL(), Function::GetScriptOrigin(), Message::GetScriptResourceName(), Context::GetSecurityToken(), RegExp::GetSource(), Message::GetSourceLine(), Context::Global(), BreakIterator::InitializeBreakIterator(), Collator::InitializeCollator(), DateFormat::InitializeDateTimeFormat(), NumberFormat::InitializeNumberFormat(), FunctionTemplate::InstanceTemplate(), Isolate::MayIndexedAccess(), Isolate::MayNamedAccess(), Symbol::Name(), Symbol::New(), Private::New(), Object::New(), Array::New(), Promise::Resolver::New(), ArrayBuffer::New(), DataView::New(), Date::New(), NumberObject::New(), BooleanObject::New(), StringObject::New(), SymbolObject::New(), RegExp::New(), Signature::New(), TypeSwitch::New(), Context::New(), String::NewExternal(), Function::NewInstance(), ObjectTemplate::NewInstance(), Object::ObjectProtoToString(), JSON::Parse(), GlobalHandles::Node::PostGarbageCollectionProcessing(), Exception::RangeError(), Exception::ReferenceError(), Isolate::ReportFailedAccessCheck(), MessageHandler::ReportMessage(), Script::Run(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetPropertyWithCallback(), JSObject::SetPropertyWithInterceptor(), SloppyArgsIndexedPropertyEnumerator(), TryCatch::StackTrace(), Exception::SyntaxError(), V8HeapExplorer::TagGlobalObjects(), TEST(), THREADED_TEST(), Exception::TypeError(), StringObject::ValueOf(), SymbolObject::ValueOf(), and Heap::VisitExternalResources().

static Local<Value> ToLocal ( v8::internal::Handle< v8::internal::Object obj)
inlinestatic
static Local<Function> ToLocal ( v8::internal::Handle< v8::internal::JSFunction obj)
inlinestatic
static Local<String> ToLocal ( v8::internal::Handle< v8::internal::String obj)
inlinestatic
static Local<Symbol> ToLocal ( v8::internal::Handle< v8::internal::Symbol obj)
inlinestatic
static Local<RegExp> ToLocal ( v8::internal::Handle< v8::internal::JSRegExp obj)
inlinestatic
static Local<Object> ToLocal ( v8::internal::Handle< v8::internal::JSObject obj)
inlinestatic
static Local<Array> ToLocal ( v8::internal::Handle< v8::internal::JSArray obj)
inlinestatic
static Local<ArrayBuffer> ToLocal ( v8::internal::Handle< v8::internal::JSArrayBuffer obj)
inlinestatic
static Local<DataView> ToLocal ( v8::internal::Handle< v8::internal::JSDataView obj)
inlinestatic
static Local<TypedArray> ToLocal ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Signature> ToLocal ( v8::internal::Handle< v8::internal::SignatureInfo obj)
inlinestatic
static Local<TypeSwitch> ToLocal ( v8::internal::Handle< v8::internal::TypeSwitchInfo obj)
inlinestatic
static Local<Float32Array> ToLocalFloat32Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Float64Array> ToLocalFloat64Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Int16Array> ToLocalInt16Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Int32Array> ToLocalInt32Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Int8Array> ToLocalInt8Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Uint16Array> ToLocalUint16Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Uint32Array> ToLocalUint32Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Uint8Array> ToLocalUint8Array ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<Uint8ClampedArray> ToLocalUint8ClampedArray ( v8::internal::Handle< v8::internal::JSTypedArray obj)
inlinestatic
static Local<ObjectTemplate> ToObjectTemplate ( NeanderObject  obj)
static
static Local<Uint32> Uint32ToLocal ( v8::internal::Handle< v8::internal::Object obj)
inlinestatic

Referenced by Value::ToArrayIndex().


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