v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include "api.h"
#include <math.h>
#include <string.h>
#include "../include/v8-debug.h"
#include "../include/v8-profiler.h"
#include "../include/v8-testing.h"
#include "bootstrapper.h"
#include "code-stubs.h"
#include "compiler.h"
#include "conversions-inl.h"
#include "counters.h"
#include "debug.h"
#include "deoptimizer.h"
#include "execution.h"
#include "global-handles.h"
#include "heap-profiler.h"
#include "messages.h"
#include "parser.h"
#include "platform.h"
#include "profile-generator-inl.h"
#include "property-details.h"
#include "property.h"
#include "runtime-profiler.h"
#include "scanner-character-streams.h"
#include "snapshot.h"
#include "unicode-inl.h"
#include "v8threads.h"
#include "version.h"
#include "vm-state-inl.h"
Go to the source code of this file.
Namespaces | |
v8 | |
v8::internal | |
Macros | |
#define | LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) |
#define | ENTER_V8(isolate) |
#define | LEAVE_V8(isolate) i::VMState __state__((isolate), i::EXTERNAL) |
#define | ON_BAILOUT(isolate, location, code) |
#define | EXCEPTION_PREAMBLE(isolate) |
#define | EXCEPTION_BAILOUT_CHECK_GENERIC(isolate, value, do_callback) |
#define | EXCEPTION_BAILOUT_CHECK_DO_CALLBACK(isolate, value) |
#define | EXCEPTION_BAILOUT_CHECK(isolate, value) EXCEPTION_BAILOUT_CHECK_GENERIC(isolate, value, ;) |
#define | API_ENTRY_CHECK(isolate, msg) |
#define | SET_FIELD_WRAPPED(obj, setter, cdata) |
#define | REGEXP_FLAG_ASSERT_EQ(api_flag, internal_flag) |
Enumerations | |
enum | CompressedStartupDataItems { kSnapshot = 0, kSnapshotContext, kLibraries, kExperimentalLibraries, kCompressedStartupDataCount } |
Functions | |
Handle< Value > V8EXPORT | ThrowException (Handle< Value > exception) |
void V8EXPORT | RegisterExtension (Extension *extension) |
Handle< Primitive > V8EXPORT | Undefined () |
Handle< Primitive > V8EXPORT | Null () |
Handle< Boolean > V8EXPORT | True () |
Handle< Boolean > V8EXPORT | False () |
bool V8EXPORT | SetResourceConstraints (ResourceConstraints *constraints) |
i::Handle< i::String > | NewExternalStringHandle (i::Isolate *isolate, v8::String::ExternalStringResource *resource) |
i::Handle< i::String > | NewExternalAsciiStringHandle (i::Isolate *isolate, v8::String::ExternalAsciiStringResource *resource) |
REGEXP_FLAG_ASSERT_EQ (kNone, NONE) | |
REGEXP_FLAG_ASSERT_EQ (kGlobal, GLOBAL) | |
REGEXP_FLAG_ASSERT_EQ (kIgnoreCase, IGNORE_CASE) | |
REGEXP_FLAG_ASSERT_EQ (kMultiline, MULTILINE) | |
#define API_ENTRY_CHECK | ( | isolate, | |
msg | |||
) |
Definition at line 116 of file api.cc.
Referenced by HandleScope::HandleScope(), and V8::TerminateExecution().
#define ENTER_V8 | ( | isolate | ) |
Definition at line 65 of file api.cc.
Referenced by V8::AddMessageListener(), Context::AllowCodeGenerationFromStrings(), StackTrace::AsArray(), String::AsciiValue::AsciiValue(), Value::BooleanValue(), Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), Object::Clone(), Array::CloneElementAt(), Script::Compile(), String::Concat(), Object::CreationContext(), StackTrace::CurrentStackTrace(), Date::DateTimeConfigurationChangeNotification(), Object::Delete(), Object::DeleteHiddenValue(), Context::DetachGlobal(), Context::Enter(), Value::Equals(), Exception::Error(), Object::FindInstanceInPrototypeChain(), Object::ForceDelete(), Object::ForceSet(), Message::Get(), Object::Get(), StackFrame::GetColumn(), Object::GetConstructor(), Object::GetConstructorName(), Message::GetEndColumn(), Message::GetEndPosition(), StackTrace::GetFrame(), StackTrace::GetFrameCount(), FunctionTemplate::GetFunction(), StackFrame::GetFunctionName(), Object::GetHiddenValue(), Object::GetIdentityHash(), Message::GetLineNumber(), StackFrame::GetLineNumber(), Object::GetOwnPropertyNames(), Object::GetPropertyAttributes(), Object::GetPropertyNames(), Object::GetPrototype(), Object::GetRealNamedProperty(), Object::GetRealNamedPropertyInPrototypeChain(), Message::GetScriptData(), StackFrame::GetScriptName(), StackFrame::GetScriptNameOrSourceURL(), Message::GetScriptResourceName(), Message::GetSourceLine(), Message::GetStackTrace(), Message::GetStartColumn(), Message::GetStartPosition(), Object::Has(), Object::HasRealNamedCallbackProperty(), FunctionTemplate::Inherit(), FunctionTemplate::InstanceTemplate(), Value::Int32Value(), Value::IntegerValue(), Object::IsCallable(), Context::IsCodeGenerationFromStringsAllowed(), StackFrame::IsConstructor(), StackFrame::IsEval(), String::MakeExternal(), ObjectTemplate::MarkAsUndetectable(), NeanderObject::NeanderObject(), Script::New(), String::New(), Number::New(), Integer::New(), Object::New(), Array::New(), Date::New(), NumberObject::New(), BooleanObject::New(), StringObject::New(), RegExp::New(), External::New(), FunctionTemplate::New(), Signature::New(), TypeSwitch::New(), Context::New(), String::NewExternal(), Integer::NewFromUnsigned(), Function::NewInstance(), ObjectTemplate::NewInstance(), String::NewSymbol(), String::NewUndetectable(), Value::NumberValue(), Object::ObjectProtoToString(), Message::PrintCurrentStackTrace(), FunctionTemplate::PrototypeTemplate(), Exception::RangeError(), FunctionTemplate::ReadOnlyPrototype(), Context::ReattachGlobal(), Exception::ReferenceError(), V8::RemoveMessageListeners(), Script::Run(), Object::Set(), Template::Set(), ObjectTemplate::SetAccessCheckCallbacks(), Object::SetAccessor(), ObjectTemplate::SetAccessor(), ObjectTemplate::SetCallAsFunctionHandler(), FunctionTemplate::SetCallHandler(), FunctionTemplate::SetClassName(), Context::SetErrorMessageForCodeGenerationFromStrings(), FunctionTemplate::SetHiddenPrototype(), Object::SetHiddenValue(), Object::SetIndexedPropertiesToExternalArrayData(), Object::SetIndexedPropertiesToPixelData(), ObjectTemplate::SetIndexedPropertyHandler(), Object::SetInternalField(), ObjectTemplate::SetInternalFieldCount(), Function::SetName(), ObjectTemplate::SetNamedPropertyHandler(), Object::SetPointerInInternalField(), Object::SetPrototype(), Context::SetSecurityToken(), Exception::SyntaxError(), v8::ThrowException(), Value::ToArrayIndex(), Value::ToBoolean(), Value::ToDetailString(), Value::ToInt32(), Value::ToInteger(), Value::ToNumber(), Value::ToObject(), Value::ToString(), Value::ToUint32(), Object::TurnOnAccessCheck(), Exception::TypeError(), Value::Uint32Value(), Context::UseDefaultSecurityToken(), String::Utf8Value::Utf8Value(), String::Value::Value(), External::Wrap(), String::Write(), String::WriteAscii(), and String::WriteUtf8().
#define EXCEPTION_BAILOUT_CHECK | ( | isolate, | |
value | |||
) | EXCEPTION_BAILOUT_CHECK_GENERIC(isolate, value, ;) |
Definition at line 112 of file api.cc.
Referenced by Object::CallAsConstructor(), Object::CallAsFunction(), Object::Clone(), Array::CloneElementAt(), Value::Equals(), Object::ForceDelete(), Object::ForceSet(), Object::Get(), Message::GetEndColumn(), FunctionTemplate::GetFunction(), Message::GetLineNumber(), Object::GetPropertyAttributes(), Message::GetSourceLine(), Message::GetStartColumn(), Value::Int32Value(), Value::IntegerValue(), Script::New(), Date::New(), RegExp::New(), ObjectTemplate::NewInstance(), Value::NumberValue(), Object::Set(), Object::SetPrototype(), Value::ToArrayIndex(), Value::ToDetailString(), Value::ToInt32(), Value::ToInteger(), Value::ToNumber(), Value::ToObject(), Value::ToString(), Value::ToUint32(), and Value::Uint32Value().
#define EXCEPTION_BAILOUT_CHECK_DO_CALLBACK | ( | isolate, | |
value | |||
) |
Definition at line 107 of file api.cc.
Referenced by Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), Function::NewInstance(), and Script::Run().
#define EXCEPTION_BAILOUT_CHECK_GENERIC | ( | isolate, | |
value, | |||
do_callback | |||
) |
#define EXCEPTION_PREAMBLE | ( | isolate | ) |
Definition at line 81 of file api.cc.
Referenced by Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), Object::Clone(), Array::CloneElementAt(), Value::Equals(), Object::ForceDelete(), Object::ForceSet(), Object::Get(), Message::GetEndColumn(), FunctionTemplate::GetFunction(), Message::GetLineNumber(), Object::GetPropertyAttributes(), Message::GetSourceLine(), Message::GetStartColumn(), Value::Int32Value(), Value::IntegerValue(), Script::New(), Date::New(), RegExp::New(), Function::NewInstance(), ObjectTemplate::NewInstance(), Value::NumberValue(), Script::Run(), Object::Set(), Object::SetPrototype(), Value::ToArrayIndex(), Value::ToDetailString(), Value::ToInt32(), Value::ToInteger(), Value::ToNumber(), Value::ToObject(), Value::ToString(), Value::ToUint32(), and Value::Uint32Value().
#define LEAVE_V8 | ( | isolate | ) | i::VMState __state__((isolate), i::EXTERNAL) |
#define LOG_API | ( | isolate, | |
expr | |||
) | LOG(isolate, ApiEntryCall(expr)) |
Definition at line 63 of file api.cc.
Referenced by Value::BooleanValue(), BooleanObject::BooleanValue(), Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), Script::Compile(), String::Concat(), Date::DateTimeConfigurationChangeNotification(), String::Empty(), Value::Equals(), Exception::Error(), FunctionTemplate::GetFunction(), Script::Id(), Value::Int32Value(), Value::IntegerValue(), TypeSwitch::match(), Script::New(), String::New(), Object::New(), Array::New(), Date::New(), NumberObject::New(), BooleanObject::New(), StringObject::New(), RegExp::New(), External::New(), FunctionTemplate::New(), Signature::New(), TypeSwitch::New(), Context::New(), String::NewExternal(), Function::NewInstance(), ObjectTemplate::NewInstance(), String::NewSymbol(), String::NewUndetectable(), Value::NumberValue(), Date::NumberValue(), NumberObject::NumberValue(), Exception::RangeError(), Exception::ReferenceError(), Script::Run(), Script::SetData(), Value::StrictEquals(), StringObject::StringValue(), Exception::SyntaxError(), Value::ToArrayIndex(), Value::ToBoolean(), Value::ToDetailString(), Value::ToInt32(), Value::ToInteger(), Value::ToNumber(), Value::ToObject(), Value::ToString(), Value::ToUint32(), Exception::TypeError(), Value::Uint32Value(), External::Wrap(), String::Write(), String::WriteAscii(), and String::WriteUtf8().
#define ON_BAILOUT | ( | isolate, | |
location, | |||
code | |||
) |
Definition at line 73 of file api.cc.
Referenced by V8::AddMessageListener(), Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), Object::Clone(), Array::CloneElementAt(), Script::Compile(), Object::CreationContext(), Date::DateTimeConfigurationChangeNotification(), Object::Delete(), Object::DeleteHiddenValue(), Exception::Error(), Object::FindInstanceInPrototypeChain(), Object::ForceDelete(), Object::ForceSet(), Message::Get(), Object::Get(), Object::GetConstructor(), Object::GetConstructorName(), FunctionTemplate::GetFunction(), Object::GetHiddenValue(), Object::GetIdentityHash(), Object::GetIndexedPropertiesExternalArrayData(), Object::GetIndexedPropertiesExternalArrayDataLength(), Object::GetIndexedPropertiesExternalArrayDataType(), Object::GetIndexedPropertiesPixelData(), Object::GetIndexedPropertiesPixelDataLength(), Message::GetLineNumber(), Object::GetOwnPropertyNames(), Object::GetPropertyAttributes(), Object::GetPropertyNames(), Object::GetPrototype(), Object::GetRealNamedProperty(), Object::GetRealNamedPropertyInPrototypeChain(), Message::GetSourceLine(), Object::Has(), Object::HasIndexedLookupInterceptor(), Object::HasIndexedPropertiesInExternalArrayData(), Object::HasIndexedPropertiesInPixelData(), FunctionTemplate::HasInstance(), Object::HasNamedLookupInterceptor(), Object::HasOwnProperty(), Object::HasRealIndexedProperty(), Object::HasRealNamedCallbackProperty(), Object::HasRealNamedProperty(), Script::Id(), Object::IsCallable(), Script::New(), Context::New(), Function::NewInstance(), ObjectTemplate::NewInstance(), Object::ObjectProtoToString(), Exception::RangeError(), Exception::ReferenceError(), V8::RemoveMessageListeners(), Script::Run(), Object::Set(), Object::SetAccessor(), Script::SetData(), Object::SetHiddenValue(), Object::SetIndexedPropertiesToExternalArrayData(), Object::SetIndexedPropertiesToPixelData(), Object::SetPrototype(), Exception::SyntaxError(), Object::TurnOnAccessCheck(), and Exception::TypeError().
#define REGEXP_FLAG_ASSERT_EQ | ( | api_flag, | |
internal_flag | |||
) |
#define SET_FIELD_WRAPPED | ( | obj, | |
setter, | |||
cdata | |||
) |
Definition at line 1045 of file api.cc.
Referenced by ObjectTemplate::SetAccessCheckCallbacks(), and FunctionTemplate::SetCallHandler().