v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <execution.h>
Static Public Member Functions | |
static Handle< Object > | Call (Isolate *isolate, Handle< Object > callable, Handle< Object > receiver, int argc, Handle< Object > argv[], bool *pending_exception, bool convert_receiver=false) |
static Handle< Object > | New (Handle< JSFunction > func, int argc, Handle< Object > argv[], bool *pending_exception) |
static Handle< Object > | TryCall (Handle< JSFunction > func, Handle< Object > receiver, int argc, Handle< Object > argv[], bool *caught_exception) |
static Handle< Object > | ToNumber (Isolate *isolate, Handle< Object > obj, bool *exc) |
static Handle< Object > | ToInteger (Isolate *isolate, Handle< Object > obj, bool *exc) |
static Handle< Object > | ToInt32 (Isolate *isolate, Handle< Object > obj, bool *exc) |
static Handle< Object > | ToUint32 (Isolate *isolate, Handle< Object > obj, bool *exc) |
static Handle< Object > | ToString (Isolate *isolate, Handle< Object > obj, bool *exc) |
static Handle< Object > | ToDetailString (Isolate *isolate, Handle< Object > obj, bool *exc) |
static Handle< Object > | ToObject (Isolate *isolate, Handle< Object > obj, bool *exc) |
static Handle< Object > | NewDate (Isolate *isolate, double time, bool *exc) |
static Handle< JSRegExp > | NewJSRegExp (Handle< String > pattern, Handle< String > flags, bool *exc) |
static Handle< Object > | CharAt (Handle< String > str, uint32_t index) |
static Handle< Object > | GetFunctionFor () |
static Handle< JSFunction > | InstantiateFunction (Handle< FunctionTemplateInfo > data, bool *exc) |
static Handle< JSObject > | InstantiateObject (Handle< ObjectTemplateInfo > data, bool *exc) |
static void | ConfigureInstance (Isolate *isolate, Handle< Object > instance, Handle< Object > data, bool *exc) |
static Handle< String > | GetStackTraceLine (Handle< Object > recv, Handle< JSFunction > fun, Handle< Object > pos, Handle< Object > is_global) |
static MUST_USE_RESULT MaybeObject * | HandleStackGuardInterrupt (Isolate *isolate) |
static Handle< Object > | GetFunctionDelegate (Isolate *isolate, Handle< Object > object) |
static Handle< Object > | TryGetFunctionDelegate (Isolate *isolate, Handle< Object > object, bool *has_pending_exception) |
static Handle< Object > | GetConstructorDelegate (Isolate *isolate, Handle< Object > object) |
static Handle< Object > | TryGetConstructorDelegate (Isolate *isolate, Handle< Object > object, bool *has_pending_exception) |
static void | RunMicrotasks (Isolate *isolate) |
static void | EnqueueMicrotask (Isolate *isolate, Handle< Object > microtask) |
Definition at line 55 of file execution.h.
|
static |
Definition at line 153 of file execution.cc.
References Handle< T >::cast(), Value::IsNull(), Value::IsUndefined(), v8::internal::SLOPPY, Execution::ToObject(), and Execution::TryGetFunctionDelegate().
Referenced by Function::Call(), Object::CallAsConstructor(), Object::CallAsFunction(), JSProxy::CallTrap(), Promise::Catch(), Promise::Chain(), Execution::ConfigureInstance(), JSObject::EnqueueChangeRecord(), Execution::EnqueueMicrotask(), FormatMessage(), v8::internal::GetKeysInFixedArrayFor(), JSProxy::GetPropertyAttributeWithHandler(), Object::GetPropertyWithDefinedGetter(), Execution::InstantiateFunction(), Execution::InstantiateObject(), Value::IsPromise(), Promise::Resolver::New(), Promise::Resolver::Reject(), Promise::Resolver::Resolve(), Script::Run(), Execution::RunMicrotasks(), v8::internal::RUNTIME_FUNCTION(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSReceiver::SetPropertyWithDefinedSetter(), TEST(), and BinaryOpIC::Transition().
Definition at line 777 of file execution.cc.
References ARRAY_SIZE, Isolate::factory(), v8::internal::GetProperty(), Isolate::js_builtins_object(), Factory::NewNumberFromInt(), and Execution::TryCall().
|
static |
Definition at line 866 of file execution.cc.
References ARRAY_SIZE, Execution::Call(), and Isolate::js_builtins_object().
Referenced by Factory::ConfigureInstance().
Definition at line 371 of file execution.cc.
References ASSERT, Execution::Call(), and Isolate::factory().
Referenced by V8::EnqueueMicrotask().
Definition at line 296 of file execution.cc.
References ASSERT, HeapObject::cast(), JSFunctionProxy::cast(), Isolate::factory(), Map::has_instance_call_handler(), HeapObject::map(), and Isolate::native_context().
Referenced by v8::internal::RUNTIME_FUNCTION().
Definition at line 238 of file execution.cc.
References ASSERT, HeapObject::cast(), JSFunctionProxy::cast(), Isolate::factory(), Map::has_instance_call_handler(), HeapObject::map(), and Isolate::native_context().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 880 of file execution.cc.
References ARRAY_SIZE, Handle< T >::cast(), Isolate::factory(), Value::IsString(), Isolate::js_builtins_object(), and Execution::TryCall().
Referenced by Isolate::PrintCurrentStackTrace().
|
static |
Definition at line 1006 of file execution.cc.
References v8::internal::API_INTERRUPT, ASSERT, Heap::CollectAllGarbage(), Isolate::concurrent_recompilation_enabled(), StackGuard::Continue(), Isolate::counters(), v8::internal::DEOPT_MARKED_ALLOCATION_SITES, Deoptimizer::DeoptimizeAll(), Heap::DeoptMarkedAllocationSites(), v8::internal::FULL_DEOPT, v8::internal::GC_REQUEST, Isolate::heap(), v8::internal::INSTALL_CODE, OptimizingCompilerThread::InstallOptimizedFunctions(), v8::internal::INTERRUPT, StackGuard::InvokeInterruptCallback(), StackGuard::IsAPIInterrupt(), StackGuard::IsDeoptMarkedAllocationSites(), StackGuard::IsFullDeopt(), StackGuard::IsGCRequest(), StackGuard::IsInstallCodeRequest(), StackGuard::IsInterrupted(), StackGuard::IsPreempted(), StackGuard::IsTerminateExecution(), Heap::kNoGCFlags, RuntimeProfiler::OptimizeNow(), Isolate::optimizing_compiler_thread(), Isolate::runtime_profiler(), StackGuard::ShouldPostponeInterrupts(), Isolate::stack_guard(), Isolate::StackOverflow(), v8::internal::TERMINATE, and Isolate::TerminateExecution().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 807 of file execution.cc.
References ARRAY_SIZE, Execution::Call(), Handle< T >::cast(), Smi::cast(), Object::GetElementNoExceptionThrown(), Isolate::js_builtins_object(), Isolate::native_context(), and Handle< T >::null().
Referenced by FunctionTemplate::GetFunction(), and Execution::InstantiateObject().
|
static |
Definition at line 832 of file execution.cc.
References ARRAY_SIZE, ASSERT, Execution::Call(), Handle< T >::cast(), JSObject::cast(), FunctionTemplateInfo::cast(), Execution::InstantiateFunction(), Isolate::js_builtins_object(), Execution::New(), Handle< T >::null(), and v8::internal::NULL.
Referenced by ObjectTemplate::NewInstance().
|
static |
Definition at line 190 of file execution.cc.
Referenced by Object::CallAsConstructor(), RegExpImpl::CreateRegExpLiteral(), Execution::InstantiateObject(), Function::NewInstance(), and v8::internal::RUNTIME_FUNCTION().
Definition at line 756 of file execution.cc.
References Isolate::factory(), Factory::NewNumber(), and RETURN_NATIVE_CALL.
Referenced by Date::New().
|
static |
Definition at line 765 of file execution.cc.
References Handle< T >::cast(), and RegExpImpl::CreateRegExpLiteral().
Referenced by RegExp::New().
|
static |
Definition at line 357 of file execution.cc.
References ASSERT, Execution::Call(), Isolate::factory(), and v8::internal::NULL.
Referenced by V8::FireCallCompletedCallback(), V8::RunMicrotasks(), and v8::internal::RUNTIME_FUNCTION().
Definition at line 725 of file execution.cc.
References RETURN_NATIVE_CALL.
Referenced by Isolate::DoThrow(), and Value::ToDetailString().
Definition at line 750 of file execution.cc.
References RETURN_NATIVE_CALL.
Referenced by Value::Int32Value(), and Value::ToInt32().
Definition at line 738 of file execution.cc.
References RETURN_NATIVE_CALL.
Referenced by Value::IntegerValue(), and Value::ToInteger().
Definition at line 713 of file execution.cc.
References RETURN_NATIVE_CALL.
Referenced by Value::NumberValue(), JSObject::SetElement(), Runtime::SetObjectProperty(), and Value::ToNumber().
Definition at line 731 of file execution.cc.
References RETURN_NATIVE_CALL.
Referenced by Execution::Call(), and Value::ToObject().
Definition at line 719 of file execution.cc.
References RETURN_NATIVE_CALL.
Referenced by Runtime::DeleteObjectProperty(), Runtime::ForceSetObjectProperty(), Object::GetPropertyAttributes(), v8::internal::RUNTIME_FUNCTION(), Runtime::SetObjectProperty(), Value::ToArrayIndex(), and Value::ToString().
Definition at line 744 of file execution.cc.
References RETURN_NATIVE_CALL.
Referenced by Value::ToUint32(), and Value::Uint32Value().
|
static |
Definition at line 199 of file execution.cc.
References ASSERT, TryCatch::Exception(), Isolate::factory(), Isolate::has_pending_exception(), TryCatch::HasCaught(), Isolate::heap(), Utils::OpenHandle(), Isolate::OptionalRescheduleException(), Isolate::pending_exception(), TryCatch::SetCaptureMessage(), and TryCatch::SetVerbose().
Referenced by Execution::CharAt(), MessageHandler::GetMessage(), v8::internal::GetScriptNameOrSourceURL(), Execution::GetStackTraceLine(), and Factory::NewError().
|
static |
Definition at line 322 of file execution.cc.
References ASSERT, HeapObject::cast(), JSFunctionProxy::cast(), Isolate::factory(), Map::has_instance_call_handler(), HeapObject::map(), Isolate::native_context(), Factory::NewTypeError(), and Isolate::Throw().
Referenced by Object::CallAsConstructor(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 265 of file execution.cc.
References ASSERT, HeapObject::cast(), JSFunctionProxy::cast(), Isolate::factory(), Map::has_instance_call_handler(), HeapObject::map(), Isolate::native_context(), Factory::NewTypeError(), and Isolate::Throw().
Referenced by Execution::Call(), Object::CallAsFunction(), and v8::internal::RUNTIME_FUNCTION().