v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <isolate.h>
Data Structures | |
class | ExceptionScope |
class | PerIsolateThreadData |
Public Types | |
enum | AddressId { kIsolateAddressCount } |
enum | CallDescriptorKey { KeyedCall, NamedCall, CallHandler, ArgumentAdaptorCall, ApiFunctionCall, NUMBER_OF_CALL_DESCRIPTORS } |
Static Public Member Functions | |
static PerIsolateThreadData * | CurrentPerIsolateThreadData () |
static void | GlobalTearDown () |
static void | SetCrashIfDefaultIsolateInitialized () |
static void | EnsureDefaultIsolate () |
static StackGuard * | GetDefaultIsolateStackGuard () |
static Thread::LocalStorageKey | isolate_key () |
static Thread::LocalStorageKey | thread_id_key () |
static Thread::LocalStorageKey | per_isolate_thread_data_key () |
static void | EnterDefaultIsolate () |
static Address | c_entry_fp (ThreadLocalTop *thread) |
static Address | handler (ThreadLocalTop *thread) |
static int | ArchiveSpacePerThread () |
static v8::Isolate * | GetDefaultIsolateForLocking () |
Static Public Attributes | |
static const char *const | kStackOverflowMessage |
static const int | kUC16AlphabetSize = 256 |
static const int | kBMMaxShift = 250 |
static const int | kJSRegexpStaticOffsetsVectorSize = 128 |
Friends | |
struct | GlobalState |
struct | InitializeGlobalState |
class | ExecutionAccess |
class | HandleScopeImplementer |
class | IsolateInitializer |
class | OptimizingCompilerThread |
class | SweeperThread |
class | ThreadManager |
class | Simulator |
class | StackGuard |
class | ThreadId |
class | TestMemoryAllocatorScope |
class | TestCodeRangeScope |
class | v8::Isolate |
class | v8::Locker |
class | v8::Unlocker |
enum CallDescriptorKey |
~Isolate | ( | ) |
Definition at line 1710 of file isolate.cc.
References ASSERT, NULL, and TRACE_ISOLATE.
char * ArchiveThread | ( | char * | to | ) |
Definition at line 1404 of file isolate.cc.
References Isolate::clear_pending_exception(), Isolate::clear_pending_message(), Isolate::clear_scheduled_exception(), OS::MemCopy(), and Isolate::thread_local_top().
|
inline |
Definition at line 858 of file isolate.h.
Referenced by Scope::Analyze(), Heap::ClearJSFunctionResultCaches(), Heap::ClearNormalizedMapCaches(), Context::DetachGlobal(), Isolate::DoThrow(), ThreadManager::FreeThreadResources(), JSObject::GetElementAttributeWithReceiver(), Heap::IterateStrongRoots(), main(), CodeGenerator::MakeCodePrologue(), CodeGenerator::PrintCode(), ThreadManager::RestoreThread(), and TEST().
|
inline |
Definition at line 549 of file isolate.h.
Referenced by BASE_EMBEDDED< Visitor >::Lock(), BASE_EMBEDDED< Visitor >::TryLock(), and BASE_EMBEDDED< Visitor >::Unlock().
|
inline |
Definition at line 948 of file isolate.h.
Referenced by BackEdgeTable::AddStackCheck(), Heap::AllocateSharedFunctionInfo(), SharedFunctionInfo::AttachInitialMap(), Compiler::BuildFunctionInfo(), Logger::CodeCreateEvent(), LoadIC::CompileHandler(), StoreIC::CompileHandler(), SharedFunctionInfo::CompleteInobjectSlackTracking(), Factory::CreateApiFunction(), SharedFunctionInfo::DetachInitialMap(), RootsReferencesExtractor::FillReferences(), KeyedLoadIC::generic_stub(), Compiler::GetOptimizedCode(), SharedFunctionInfo::is_compiled(), JSFunction::is_compiled(), JSFunction::IsInOptimizationQueue(), JSFunction::IsMarkedForConcurrentOptimization(), JSFunction::IsMarkedForOptimization(), Heap::IterateStrongRoots(), TypeFeedbackOracle::LoadIsBuiltin(), Logger::LogCompiledFunctions(), KeyedLoadIC::megamorphic_stub(), KeyedStoreIC::megamorphic_stub(), BackEdgeTable::Patch(), KeyedStoreIC::pre_monomorphic_stub(), Compiler::RecordFunctionCompilation(), BackEdgeTable::RemoveStackCheck(), BackEdgeTable::Revert(), LoadIC::slow_stub(), KeyedLoadIC::slow_stub(), StoreIC::slow_stub(), KeyedStoreIC::slow_stub(), SharedFunctionInfo::StartInobjectSlackTracking(), and ArgumentsAdaptorFrame::unchecked_code().
|
inlinestatic |
Definition at line 648 of file isolate.h.
Referenced by IC::IC(), Isolate::PrintStack(), and SafeStackFrameIterator::SafeStackFrameIterator().
CallInterfaceDescriptor * call_descriptor | ( | CallDescriptorKey | index | ) |
Definition at line 2280 of file isolate.cc.
References ASSERT.
void CancelTerminateExecution | ( | ) |
Definition at line 906 of file isolate.cc.
References Isolate::clear_pending_exception(), Isolate::clear_scheduled_exception(), Isolate::has_pending_exception(), Isolate::has_scheduled_exception(), Isolate::pending_exception(), Isolate::scheduled_exception(), Isolate::thread_local_top(), and Isolate::try_catch_handler().
Referenced by StackGuard::CancelTerminateExecution().
Definition at line 509 of file isolate.cc.
References Isolate::CaptureCurrentStackTrace(), Isolate::factory(), and JSObject::SetHiddenProperty().
Handle< JSArray > CaptureCurrentStackTrace | ( | int | frame_limit, |
StackTrace::StackTraceOptions | options | ||
) |
Definition at line 521 of file isolate.cc.
References StackTraceFrameIterator::Advance(), Smi::cast(), FixedArray::cast(), Script::cast(), CHECK_NOT_EMPTY_HANDLE, Script::COMPILATION_TYPE_EVAL, Isolate::factory(), Smi::FromInt(), v8::internal::GetScriptLineNumber(), v8::internal::GetScriptNameOrSourceURL(), Factory::InternalizeOneByteString(), StackTrace::kColumnOffset, StackTrace::kFunctionName, StackTrace::kIsConstructor, StackTrace::kIsEval, StackTrace::kLineNumber, StackTrace::kScriptId, StackTrace::kScriptName, StackTrace::kScriptNameOrSourceURL, v8::internal::Max(), Factory::NewJSArray(), Factory::NewJSObject(), NONE, v8::internal::pc, JSObject::SetLocalPropertyIgnoreAttributes(), STATIC_ASCII_VECTOR, and JavaScriptFrame::Summarize().
Referenced by Isolate::CaptureAndSetDetailedStackTrace(), StackTrace::CurrentStackTrace(), and Isolate::DoThrow().
Handle< JSArray > CaptureSimpleStackTrace | ( | Handle< JSObject > | error_object, |
Handle< Object > | caller, | ||
int | limit | ||
) |
Definition at line 441 of file isolate.cc.
References StackFrameIterator::Advance(), ASSERT, JavaScriptFrame::cast(), v8::internal::code(), Isolate::factory(), Smi::FromInt(), v8::internal::Max(), v8::internal::Min(), JSObject::NewElementsCapacity(), Factory::NewFixedArrayWithHoles(), Factory::NewJSArrayWithElements(), v8::internal::STRICT, and JavaScriptFrame::Summarize().
Referenced by Isolate::StackOverflow().
|
inline |
Definition at line 579 of file isolate.h.
Referenced by Isolate::ArchiveThread(), Isolate::CancelTerminateExecution(), Compiler::GetCodeForDebugging(), Compiler::GetOptimizedCode(), Isolate::OptionalRescheduleException(), MessageHandler::ReportMessage(), Isolate::ScheduleThrow(), and TEST().
|
inline |
Definition at line 593 of file isolate.h.
Referenced by Isolate::ArchiveThread(), and Isolate::ReportPendingMessages().
|
inline |
Definition at line 634 of file isolate.h.
Referenced by Isolate::ArchiveThread(), Isolate::CancelTerminateExecution(), Isolate::PromoteScheduledException(), and MessageHandler::ReportMessage().
|
inline |
Definition at line 865 of file isolate.h.
Referenced by MemoryAllocator::AllocateChunk(), MemoryChunk::CommitArea(), Heap::CopyCode(), Heap::CreateCode(), MemoryAllocator::FreeMemory(), Assembler::runtime_entry_at(), and Heap::SetUp().
CodeStubInterfaceDescriptor * code_stub_interface_descriptor | ( | int | index | ) |
Definition at line 2274 of file isolate.cc.
Referenced by HydrogenCodeStub::GetInterfaceDescriptor(), ToNumberStub::InstallDescriptors(), CompareNilICStub::InstallDescriptors(), and ToBooleanStub::InstallDescriptors().
|
inline |
Definition at line 867 of file isolate.h.
Referenced by Heap::CollectAllAvailableGarbage(), RegExpImpl::Compile(), Compiler::CompileScript(), Compiler::GetFunctionFromEval(), Heap::IterateStrongRoots(), TEST(), and THREADED_TEST().
void ComputeLocation | ( | MessageLocation * | target | ) |
Definition at line 1021 of file isolate.cc.
References Script::cast(), and JavaScriptFrame::function().
Referenced by Isolate::DoThrow().
|
inline |
Definition at line 1069 of file isolate.h.
References ASSERT, and v8::internal::NULL.
|
inline |
Definition at line 1062 of file isolate.h.
References ASSERT, and v8::internal::NULL.
Referenced by Execution::HandleStackGuardInterrupt().
|
inline |
Definition at line 557 of file isolate.h.
Referenced by Heap::AllocateArgumentsObject(), Promise::Catch(), Promise::Chain(), Runtime::CreateArrayLiteralBoilerplate(), Context::Enter(), Isolate::GetCallingNativeContext(), IC::GetCodeCacheHolder(), Isolate::GetCurrentContext(), JSObject::GetElementsTransitionMap(), Object::GetElementWithReceiver(), v8::internal::GetKeysInFixedArrayFor(), Object::GetPrototype(), Isolate::global_context(), Isolate::global_object(), Isolate::global_proxy(), Isolate::InContext(), Value::IsPromise(), Isolate::MayIndexedAccess(), Isolate::MayNamedAccess(), Isolate::native_context(), Promise::Resolver::New(), JSObject::ReferencesObject(), Promise::Resolver::Reject(), Isolate::ReportFailedAccessCheck(), Promise::Resolver::Resolve(), Isolate::RestoreThread(), Script::Run(), Isolate::set_context(), JSFunction::SetPrototype(), TEST(), THREADED_TEST(), and Object::ToObject().
|
inline |
Definition at line 892 of file isolate.h.
Referenced by ScopeInfo::ContextSlotIndex().
|
inline |
Definition at line 859 of file isolate.h.
References ASSERT, and v8::internal::NULL.
Referenced by Zone::adjust_segment_bytes_allocated(), MemoryAllocator::AllocateChunk(), Heap::AllocateRaw(), CodeStubGraphBuilderBase::BuildCheckAndInstallOptimizedCode(), CodeStubGraphBuilder< Stub >::BuildCodeStub(), CodeStubGraphBuilderBase::BuildGraph(), CodeStubGraphBuilderBase::BuildInstallFromOptimizedCodeMap(), Heap::CheckpointObjectStats(), MemoryAllocator::CommitBlock(), StoreBuffer::Compact(), Compiler::CompileScript(), JSObject::EnsureWritableFastElements(), MemoryAllocator::FreeMemory(), PlatformCodeStub::GenerateCode(), HydrogenCodeStub::GenerateLightweightMissCode(), NormalizedMapCache::Get(), InnerPointerToCodeCache::GetCacheEntry(), StatisticsExtension::GetCounters(), v8::internal::GetEnumPropertyKeys(), Compiler::GetFunctionFromEval(), v8::internal::GetKeysFor(), Compiler::GetOptimizedCode(), v8::internal::GetScriptWrapper(), Execution::HandleStackGuardInterrupt(), Heap::IdleNotification(), CompilationCacheScript::Lookup(), CompilationCacheEval::Lookup(), CompilationCacheRegExp::Lookup(), FullCodeGenerator::MakeCode(), CodeGenerator::MakeCodeEpilogue(), Heap::NumberToString(), Runtime::PerformGC(), PreParserApi::PreParse(), V8::SetCreateHistogramFunction(), StoreBuffer::StoreBufferOverflow(), JSObjectWalkVisitor< ContextObject >::StructureWalk(), TEST(), and MemoryAllocator::UncommitBlock().
|
inline |
Definition at line 984 of file isolate.h.
Referenced by CpuProfile::Delete(), GetFunctionLineNumber(), Compiler::RecordFunctionCompilation(), Sampler::SampleStack(), CodeGenerator::ShouldGenerateLog(), and TEST().
|
inlinestatic |
Definition at line 463 of file isolate.h.
References Thread::GetThreadLocal().
Referenced by Isolate::EnterDefaultIsolate(), and V8::Initialize().
|
inline |
Definition at line 1025 of file isolate.h.
Referenced by Date::DateTimeConfigurationChangeNotification(), and Isolate::set_date_cache().
|
inline |
Definition at line 66 of file isolate-inl.h.
Referenced by RuntimeProfiler::AttemptOnStackReplacement(), Compiler::GetUnoptimizedCode(), Factory::NewFunctionFromSharedFunctionInfo(), and RuntimeProfiler::OptimizeNow().
|
inline |
Definition at line 878 of file isolate.h.
Referenced by Deoptimizer::EnsureCodeForDeoptimizationEntry(), Deoptimizer::GetDeoptimizationEntry(), Deoptimizer::GetDeoptimizationId(), Deoptimizer::Grab(), Heap::IterateStrongRoots(), and Deoptimizer::New().
|
inline |
void DoThrow | ( | Object * | exception, |
MessageLocation * | location | ||
) |
Definition at line 1090 of file isolate.cc.
References OS::Abort(), ASSERT, Isolate::bootstrapper(), Isolate::CaptureCurrentStackTrace(), JSObject::cast(), String::cast(), JSArray::cast(), Isolate::ComputeLocation(), MessageLocation::end_pos(), Isolate::factory(), JSObject::GetHiddenProperty(), MessageHandler::GetLocalizedMessage(), v8::internal::GetScriptLineNumberSafe(), Isolate::has_pending_exception(), Isolate::heap(), Factory::InternalizeOneByteString(), Isolate::is_catchable_by_javascript(), Handle< T >::is_null(), Bootstrapper::IsActive(), MessageHandler::MakeMessageObject(), v8::internal::NULL, Isolate::PrintCurrentStackTrace(), OS::PrintError(), v8::internal::PrintF(), MessageLocation::script(), Isolate::set_pending_exception(), Isolate::ShouldReportException(), MessageLocation::start_pos(), STATIC_ASCII_VECTOR, Isolate::thread_local_top(), ToCString(), Execution::ToDetailString(), and Isolate::try_catch_handler().
Referenced by Isolate::StackOverflow(), Isolate::TerminateExecution(), and Isolate::Throw().
|
static |
Definition at line 189 of file isolate.cc.
References CHECK, Thread::CreateThreadLocalKey(), Thread::GetThreadLocal(), v8::internal::kDefaultIsolateCrashIfInitialized, v8::internal::NULL, Thread::SetThreadLocal(), and PerThreadAssertScopeBase::thread_local_key.
Referenced by Isolate::EnterDefaultIsolate(), Isolate::GetDefaultIsolateForLocking(), Isolate::GetDefaultIsolateStackGuard(), and StaticInitializer::StaticInitializer().
|
static |
Definition at line 229 of file isolate.cc.
References ASSERT, Isolate::CurrentPerIsolateThreadData(), Isolate::EnsureDefaultIsolate(), Isolate::PerIsolateThreadData::isolate(), and v8::internal::NULL.
Referenced by V8::Initialize().
|
inline |
Definition at line 920 of file isolate.h.
Referenced by Date::DateTimeConfigurationChangeNotification(), Heap::IterateStrongRoots(), StartupSerializer::SerializeStrongReferences(), and TEST().
|
inline |
Definition at line 995 of file isolate.h.
Referenced by BASE_EMBEDDED< Visitor >::Add(), V8::AddMessageListener(), Scanner::AllocateInternalizedString(), Scope::AllocateModulesRecursively(), Scanner::AllocateNextLiteralString(), Scope::AllocateNonParameterLocal(), Scope::AllocateParameterLocals(), RegExpImpl::AtomExec(), CodeStubGraphBuilder< Stub >::BuildCodeInitializedStub(), CodeStubGraphBuilder< Stub >::BuildCodeStub(), Compiler::BuildFunctionInfo(), ParserTraits::BuildUnaryExpression(), v8::internal::CalculateLineEnds(), JSProxy::CallTrap(), Isolate::CaptureAndSetDetailedStackTrace(), Isolate::CaptureCurrentStackTrace(), Isolate::CaptureSimpleStackTrace(), Execution::CharAt(), check(), ParserTraits::CheckPossibleEvalCall(), RegExpImpl::Compile(), CompiledReplacement::Compile(), Compiler::CompileScript(), String::Concat(), ScopeInfo::Create(), DeclaredAccessorDescriptor::Create(), Runtime::CreateArrayLiteralBoilerplate(), JSObject::DefineAccessor(), SloppyArgumentsElementsAccessor::Delete(), DictionaryElementsAccessor::DeleteCommon(), JSObject::DeleteHiddenProperty(), Object::DeleteHiddenValue(), Isolate::DoThrow(), BoyerMooreLookahead::EmitSkipInstructions(), JSObject::EnqueueChangeRecord(), Execution::EnqueueMicrotask(), Map::EnsureDescriptorSlack(), JSFunction::EnsureHasInitialMap(), JSGlobalObject::EnsurePropertyCell(), AllocationSiteCreationContext::EnterNewScope(), Exception::Error(), Context::ErrorMessageForCodeGenerationFromStrings(), URIEscape::Escape(), ParserTraits::ExpressionFromLiteral(), StubCache::factory(), JSProxy::Fix(), Symbol::For(), Symbol::ForApi(), Private::ForApi(), FormatMessage(), JSObject::Freeze(), HeapTypeConfig::from_constant(), v8::FromCData(), PlatformCodeStub::GenerateCode(), HydrogenCodeStub::GenerateLightweightMissCode(), FixedDoubleArray::get_as_handle(), JSObject::GetAccessor(), MaterializedLiteral::GetBoilerplateValue(), StoreGlobalStub::GetCodeCopyFromTemplate(), V8_FINAL< kOperandKind, kNumCachedOperands >::GetCodeCopyFromTemplate(), Execution::GetConstructorDelegate(), Function::GetDisplayName(), JSProxy::GetElementAttributeWithHandler(), JSObject::GetElementWithInterceptor(), Object::GetElementWithReceiver(), v8::internal::GetEnumPropertyKeys(), Execution::GetFunctionDelegate(), Compiler::GetFunctionFromEval(), CpuProfileNode::GetFunctionName(), Object::GetHiddenValue(), v8::internal::GetKeysFor(), v8::internal::GetKeysInFixedArrayFor(), ParserTraits::GetLiteralTheHole(), MessageHandler::GetMessage(), HeapGraphEdge::GetName(), HeapGraphNode::GetName(), Runtime::GetObjectProperty(), Object::GetOwnPropertyNames(), v8::internal::GetProperty(), JSProxy::GetPropertyAttributeWithHandler(), Object::GetPropertyNames(), JSObject::GetPropertyPostInterceptor(), JSObject::GetPropertyWithCallback(), JSObject::GetPropertyWithInterceptor(), v8::internal::GetScriptNameOrSourceURL(), CpuProfileNode::GetScriptResourceName(), v8::internal::GetScriptWrapper(), SharedFunctionInfo::GetSourceCode(), Execution::GetStackTraceLine(), CpuProfile::GetTitle(), HeapSnapshot::GetTitle(), CompileTimeValue::GetValue(), StoreGlobalStub::global_placeholder(), V8_FINAL< kOperandKind, kNumCachedOperands >::handle(), Scope::HasArgumentsParameter(), Scope::Initialize(), v8::internal::InitScriptLineEnds(), RegExpImpl::IrregexpExec(), Variable::is_possibly_eval(), ParserTraits::IsEvalOrArguments(), Value::IsPromise(), PolymorphicCodeCache::Lookup(), CodeGenerator::MakeCodeEpilogue(), MessageHandler::MakeMessageObject(), Accessors::MakeModuleExport(), Deoptimizer::MaterializeHeapObjects(), TypeFeedbackInfo::MegamorphicSentinel(), JSObject::MigrateToMap(), Bootstrapper::NativesSourceLookup(), NeanderObject::NeanderObject(), Symbol::New(), Private::New(), Number::New(), Integer::New(), Object::New(), Array::New(), Promise::Resolver::New(), ArrayBuffer::New(), DataView::New(), NumberObject::New(), BooleanObject::New(), StringObject::New(), SymbolObject::New(), External::New(), Signature::New(), TypeSwitch::New(), Execution::NewDate(), Integer::NewFromUnsigned(), v8::NewTypedArray(), CompilationInfo::object_wrapper(), JSObject::PrepareElementsForSort(), JSObject::PreventExtensions(), Isolate::PrintCurrentStackTrace(), ParserTraits::PushPropertyName(), Exception::RangeError(), IC::ReferenceError(), Exception::ReferenceError(), Promise::Resolver::Reject(), V8::RemoveMessageListeners(), MessageHandler::ReportMessage(), ParserTraits::ReportMessageAt(), Promise::Resolver::Resolve(), Rewriter::Rewrite(), Execution::RunMicrotasks(), ObjectTemplate::SetAccessCheckCallbacks(), JSObject::SetAccessor(), Object::SetAccessorProperty(), ObjectTemplate::SetCallAsFunctionHandler(), FunctionTemplate::SetCallHandler(), JSObject::SetElement(), JSArray::SetElementsLength(), JSObject::SetHiddenProperty(), Object::SetHiddenValue(), JSObject::SetIdentityHash(), ObjectTemplate::SetIndexedPropertyHandler(), ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::SetLengthWithoutNormalize(), JSObject::SetLocalPropertyIgnoreAttributes(), ObjectTemplate::SetNamedPropertyHandler(), Runtime::SetObjectProperty(), JSObject::SetPropertyForResult(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), JSObject::SetPropertyWithInterceptor(), JSObject::SetPrototype(), Runtime::SetupArrayBuffer(), Isolate::StackOverflow(), Isolate::StackTraceString(), v8::internal::StringReplaceOneCharWithString(), JSObjectWalkVisitor< ContextObject >::StructureWalk(), Exception::SyntaxError(), TEST(), TestCharacterStream(), TestParserSync(), TestParserSyncWithFlags(), THREADED_TEST(), Isolate::ThrowInvalidStringLength(), ArrayConcatVisitor::ToArray(), Value::ToArrayIndex(), Value::ToBoolean(), StringStream::ToString(), ReplacementStringBuilder::ToString(), BinaryOpIC::Transition(), SeqString::Truncate(), Execution::TryCall(), Execution::TryGetConstructorDelegate(), Execution::TryGetFunctionDelegate(), Object::TurnOnAccessCheck(), IC::TypeError(), Exception::TypeError(), Types< Type, TypeHandle, Region >::Types(), IC::TypeToMap(), TypeFeedbackInfo::UninitializedSentinel(), HeapTypeConfig::union_create(), BreakIterator::UnpackBreakIterator(), Collator::UnpackCollator(), DateFormat::UnpackDateFormat(), NumberFormat::UnpackNumberFormat(), ArrayConcatVisitor::visit(), and HOptimizedGraphBuilder::VisitDeclarations().
Definition at line 2286 of file isolate.cc.
Referenced by JavaScriptFrame::PrintTop(), and StubFrame::unchecked_code().
Isolate::PerIsolateThreadData * FindPerThreadDataForThisThread | ( | ) |
Definition at line 165 of file isolate.cc.
References ThreadId::Current(), and Isolate::FindPerThreadDataForThread().
Referenced by ThreadManager::IsArchived(), and ThreadManager::RestoreThread().
Isolate::PerIsolateThreadData * FindPerThreadDataForThread | ( | ThreadId | thread_id | ) |
Definition at line 171 of file isolate.cc.
References v8::internal::NULL.
Referenced by Isolate::FindPerThreadDataForThisThread().
|
inline |
Definition at line 685 of file isolate.h.
Referenced by ThreadManager::FreeThreadResources().
|
inline |
Definition at line 1099 of file isolate.h.
Referenced by Isolate::set_function_entry_hook(), and V8::SetFunctionEntryHook().
Address get_address_from_id | ( | Isolate::AddressId | id | ) |
Definition at line 247 of file isolate.cc.
References Isolate::id().
Map * get_initial_js_array_map | ( | ElementsKind | kind | ) |
Definition at line 2235 of file isolate.cc.
References Context::native_context(), and NULL.
Definition at line 1382 of file isolate.cc.
References Context::cast(), StandardFrame::context(), Isolate::context(), and Context::native_context().
Referenced by Isolate::GetCallingContext().
CodeTracer * GetCodeTracer | ( | ) |
Definition at line 2229 of file isolate.cc.
References NULL.
Referenced by RegExpCompiler::Assemble(), Deoptimizer::DeoptimizeAll(), Deoptimizer::DeoptimizeGlobalObject(), Deoptimizer::DeoptimizeMarkedCode(), CodeGenerator::PrintCode(), and Builtins::SetUp().
|
inline |
Definition at line 1007 of file isolate.h.
References ASSERT, and Internals::kNumIsolateDataSlots.
Referenced by UNINITIALIZED_TEST().
|
static |
Definition at line 241 of file isolate.cc.
References Isolate::EnsureDefaultIsolate().
|
static |
Definition at line 223 of file isolate.cc.
References Isolate::EnsureDefaultIsolate(), and Isolate::stack_guard().
Referenced by V8::TerminateExecution().
HStatistics * GetHStatistics | ( | ) |
Definition at line 2217 of file isolate.cc.
References NULL.
Referenced by OptimizedCompileJob::CreateGraph().
HTracer * GetHTracer | ( | ) |
Definition at line 2223 of file isolate.cc.
References NULL.
Referenced by CodeStubGraphBuilderBase::BuildGraph(), and OptimizedCompileJob::CreateGraph().
MessageLocation GetMessageLocation | ( | ) |
Definition at line 1301 of file isolate.cc.
References ASSERT, Script::cast(), Isolate::has_pending_exception(), and Isolate::heap().
Definition at line 2300 of file isolate.cc.
References ARRAY_SIZE, v8::internal::JS_OBJECT_TYPE, v8::internal::KEEP_INOBJECT_PROPERTIES, name, NONE, and v8::internal::STRICT.
Referenced by Symbol::For(), Symbol::ForApi(), and Private::ForApi().
Definition at line 1377 of file isolate.cc.
References Isolate::context(), and Context::global_object().
Referenced by ScriptCompiler::CompileUnbound().
|
inline |
Definition at line 918 of file isolate.h.
Referenced by v8::internal::GetScriptWrapper(), Heap::IterateStrongRoots(), Heap::RecordStats(), StartupSerializer::SerializeStrongReferences(), HeapProfiler::SetRetainedObjectInfo(), V8HeapExplorer::TagGlobalObjects(), Heap::TearDown(), TEST(), V8::VisitHandlesForPartialDependence(), and V8::VisitHandlesWithClassIds().
|
inline |
Definition at line 671 of file isolate.h.
References Isolate::context(), and Context::global_object().
|
inline |
Definition at line 676 of file isolate.h.
References Isolate::context(), and Context::global_proxy().
|
static |
Definition at line 1618 of file isolate.cc.
Referenced by V8::TearDown().
|
inline |
Definition at line 900 of file isolate.h.
Referenced by HandleScope::CloseAndEscape(), HandleScope::CreateHandle(), HandleScope::current_level_address(), HandleScope::current_limit_address(), HandleScope::current_next_address(), DeferredHandleScope::DeferredHandleScope(), HandleScope::DeleteExtensions(), DeferredHandleScope::Detach(), HandleScope::HandleScope(), HandleScope::Initialize(), HandleScope::NumberOfHandles(), TEST(), and DeferredHandleScope::~DeferredHandleScope().
|
inline |
Definition at line 902 of file isolate.h.
References ASSERT.
Referenced by HandleScope::DeleteExtensions(), Deserializer::Deserialize(), Context::Enter(), Context::Exit(), V8::FireCallCompletedCallback(), ThreadManager::FreeThreadResources(), Isolate::GetEnteredContext(), Heap::IterateStrongRoots(), HandleScope::NumberOfHandles(), ThreadManager::RestoreThread(), V8::RunMicrotasks(), StartupSerializer::SerializeStrongReferences(), and TEST().
|
inlinestatic |
Definition at line 651 of file isolate.h.
Referenced by TickSample::Init(), Isolate::IsExternallyCaught(), and Isolate::ShouldReportException().
|
inline |
Definition at line 954 of file isolate.h.
Referenced by StartupSerializer::SerializeStrongReferences().
|
inline |
Definition at line 587 of file isolate.h.
Referenced by JSProxy::CallTrap(), Isolate::CancelTerminateExecution(), Isolate::DoThrow(), NativeRegExpMacroAssembler::Execute(), Compiler::GetCodeForDebugging(), Isolate::GetMessageLocation(), Compiler::GetOptimizedCode(), JSProxy::GetPropertyAttributeWithHandler(), JSProxy::GetPropertyWithHandler(), Compiler::GetUnoptimizedCode(), RegExpImpl::IrregexpExec(), RegExpImpl::IrregexpExecRaw(), Isolate::IsExternallyCaught(), Context::Lookup(), FullCodeGenerator::MakeCode(), Isolate::OptionalRescheduleException(), Isolate::pending_exception(), MessageHandler::ReportMessage(), Isolate::ReportPendingMessages(), Isolate::ScheduleThrow(), JSProxy::SetPropertyViaPrototypesWithHandler(), TEST(), TestParserSyncWithFlags(), and Execution::TryCall().
|
inline |
Definition at line 631 of file isolate.h.
Referenced by Isolate::CancelTerminateExecution(), v8::internal::GetKeysInFixedArrayFor(), MessageHandler::ReportMessage(), and Isolate::scheduled_exception().
|
inline |
Definition at line 875 of file isolate.h.
Referenced by Isolate::AddGCEpilogueCallback(), V8::AddGCEpilogueCallback(), Isolate::AddGCPrologueCallback(), V8::AddGCPrologueCallback(), V8::AddMessageListener(), CompilationSubCache::Age(), DescriptorArray::Allocate(), DeoptimizationInputData::Allocate(), DeoptimizationOutputData::Allocate(), MemoryAllocator::AllocateChunk(), MemoryAllocator::AllocateLargePage(), MemoryAllocator::AllocatePage(), Context::AllowCodeGenerationFromStrings(), StackGuard::ArchiveStackGuard(), CodeStubGraphBuilder< Stub >::BuildCodeInitializedStub(), String::CanMakeExternal(), check(), StackGuard::ClearThread(), Compiler::CompileScript(), v8::internal::ConstantIsObject(), V8::ContextDisposedNotification(), JSObject::Copy(), GlobalHandles::Create(), EternalHandles::Create(), Runtime::CreateArrayLiteralBoilerplate(), JSObject::DefineAccessor(), DictionaryElementsAccessor::DeleteCommon(), Runtime::DeleteObjectProperty(), Deoptimizer::DeoptimizeAll(), Deoptimizer::DeoptimizeMarkedCode(), Deserializer::Deserialize(), Deserializer::DeserializePartial(), Isolate::DoThrow(), ScopeInfo::Empty(), JSObject::EnsureWritableFastElements(), EscapableHandleScope::EscapableHandleScope(), CodeFlusher::EvictCandidate(), CodeFlusher::EvictOptimizedCodeMap(), ExternalizeStringExtension::Externalize(), HashTable< Shape, Key >::FindEntry(), MemoryAllocator::Free(), Runtime::FreeArrayBuffer(), Heap::FreeQueuedChunks(), JSObject::Freeze(), FunctionCallbackArguments::FunctionCallbackArguments(), InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer(), StatisticsExtension::GetCounters(), Deoptimizer::GetDeoptimizedCodeCount(), Object::GetElementWithReceiver(), v8::internal::GetEnumPropertyKeys(), Compiler::GetFunctionFromEval(), Isolate::GetHeapStatistics(), v8::internal::GetKeysInFixedArrayFor(), Object::GetMarkerMap(), Isolate::GetMessageLocation(), Object::GetProperty(), JSProxy::GetPropertyWithHandler(), Object::GetPrototype(), Factory::GlobalConstantFor(), Execution::HandleStackGuardInterrupt(), Map::has_code_cache(), Runtime::HasObjectProperty(), CcTest::heap(), StubCache::heap(), Factory::hidden_string(), GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), V8::IdleNotification(), BASE_EMBEDDED< Visitor >::Initialize(), v8::internal::InitScriptLineEnds(), StackGuard::InitThread(), PromotionQueue::insert(), Isolate::is_catchable_by_javascript(), Value::IsBooleanObject(), Value::IsDate(), StringTracker::IsFreshUnusedString(), Accessors::IsJSObjectFieldAccessor(), Value::IsNumberObject(), Value::IsStringObject(), Value::IsSymbolObject(), Expression::IsUndefinedLiteral(), SerializerDeserializer::Iterate(), CompilationSubCache::IterateFunctions(), GlobalHandles::IterateObjectGroups(), CodeFlusher::IteratePointersToFromSpace(), KeyedLoadIC::Load(), Logger::LogAccessorCallbacks(), Logger::LogCodeObjects(), Logger::LogCompiledFunctions(), Logger::LogExistingFunction(), JSObject::LookupRealNamedPropertyInPrototypes(), v8::internal::LookupSingleCharacterStringFromCode(), V8::LowMemoryNotification(), main(), CodeGenerator::MakeCodeEpilogue(), String::MakeExternal(), JSObject::MigrateToMap(), Bootstrapper::NativesSourceLookup(), V8_FINAL< kOperandKind, kNumCachedOperands >::New(), BooleanObject::New(), String::NewExternal(), Factory::NewFunctionFromSharedFunctionInfo(), Runtime::PerformGC(), GlobalHandles::PostGarbageCollectionProcessing(), JSObject::PrepareElementsForSort(), StringStream::PrintPrototype(), StringStream::PrintSecurityTokenIfChanged(), PropertyCallbackArguments::PropertyCallbackArguments(), Compiler::RecordFunctionCompilation(), StringTracker::RecordWrite(), IncrementalMarking::RecordWriteFromCode(), Isolate::RemoveGCEpilogueCallback(), V8::RemoveGCEpilogueCallback(), Isolate::RemoveGCPrologueCallback(), V8::RemoveGCPrologueCallback(), V8::RemoveMessageListeners(), MessageHandler::ReportMessage(), Isolate::ReportPendingMessages(), StackGuard::RequestGC(), StackGuard::RequestInstallCode(), StackGuard::RestoreStackGuard(), Serializer::RootIndex(), v8::internal::RUNTIME_FUNCTION(), Heap::ScavengeObject(), StartupSerializer::SerializeStrongReferences(), StartupSerializer::SerializeWeakReferences(), JSObject::SetLocalPropertyIgnoreAttributes(), JSObject::SetObserved(), JSObject::SetPropertyForResult(), JSObject::SetPrototype(), v8::SetResourceConstraints(), Builtins::SetUp(), Runtime::SetupArrayBuffer(), Runtime::SetupArrayBufferAllocatingData(), JSDate::SetValue(), PartialSerializer::ShouldBeInThePartialSnapshotCache(), Serializer::ShouldBeSkipped(), KeyedStoreIC::Store(), StoreBuffer::StoreBufferOverflow(), JSObjectWalkVisitor< ContextObject >::StructureWalk(), OptimizedFrame::Summarize(), Logger::SuspectReadEvent(), TEST(), TestViewFromApi(), Isolate::ThrowException(), JSObject::TransitionElementsKind(), Execution::TryCall(), EntryFrame::unchecked_code(), EntryConstructFrame::unchecked_code(), UNINITIALIZED_TEST(), ContextSlotCache::Update(), KeyedLookupCache::Update(), Deoptimizer::VisitAllOptimizedFunctions(), V8::VisitExternalResources(), Serializer::VisitPointers(), and VerifyPointersVisitor::VisitPointers().
|
inline |
Definition at line 985 of file isolate.h.
Referenced by Heap::AllocateRaw(), HeapSnapshot::Delete(), and MarkCompactCollector::MigrateObject().
|
inline |
Definition at line 1093 of file isolate.h.
Referenced by Isolate::get_address_from_id(), and Isolate::NextOptimizationId().
bool Init | ( | Deserializer * | des | ) |
Definition at line 1873 of file isolate.cc.
References ASSERT, ASSIGN_ELEMENT, CHECK_EQ, Deserializer::Deserialize(), v8::internal::FatalProcessOutOfMemory(), FOR_EACH_ISOLATE_ADDRESS_NAME, v8::internal::kDeoptTableSerializeEntryCount, LOG, v8::internal::Max(), v8::internal::Min(), NULL, OFFSET_OF, v8::internal::PrintF(), and TRACE_ISOLATE.
Referenced by V8::Initialize().
void InitializeLoggingAndCounters | ( | ) |
Definition at line 1851 of file isolate.cc.
References NULL.
Referenced by Serializer::Enable(), Isolate::PrintStack(), V8::SetCreateHistogramFunction(), V8::SetJitCodeEventHandler(), and TEST().
|
inline |
Definition at line 469 of file isolate.h.
References ASSERT, Thread::GetExistingThreadLocal(), and v8::internal::NULL.
|
inline |
Definition at line 476 of file isolate.h.
References Thread::GetThreadLocal().
|
inline |
Definition at line 912 of file isolate.h.
Referenced by OptimizedFrame::GetDeoptimizationData(), IncrementalMarking::RecordCodeTargetPatch(), and MarkCompactCollector::RecordCodeTargetPatch().
|
inline |
|
inline |
Definition at line 640 of file isolate.h.
References Isolate::heap().
Referenced by Isolate::DoThrow(), Isolate::IsExternallyCaught(), and Isolate::ReThrow().
|
inline |
Definition at line 51 of file isolate-inl.h.
References Isolate::IsDebuggerActive().
|
inline |
Definition at line 1014 of file isolate.h.
Referenced by V8::Initialize(), and V8::IsDead().
|
inline |
Definition at line 56 of file isolate-inl.h.
References v8::internal::NoBarrier_Load().
Referenced by Heap::CreateCode(), Isolate::IsCodePreAgingActive(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 501 of file isolate.h.
Referenced by V8::Dispose(), V8::TearDown(), Locker::~Locker(), and Unlocker::~Unlocker().
bool IsExternallyCaught | ( | ) |
Definition at line 1226 of file isolate.cc.
References ASSERT, Isolate::handler(), Isolate::has_pending_exception(), Isolate::is_catchable_by_javascript(), v8::internal::NULL, Isolate::pending_exception(), Isolate::thread_local_top(), and Isolate::try_catch_handler().
bool IsFastArrayConstructorPrototypeChainIntact | ( | ) |
Definition at line 2249 of file isolate.cc.
References ASSERT, v8::internal::GetInitialFastElementsKind(), JSReceiver::GetPrototype(), and NULL.
|
inline |
Definition at line 489 of file isolate.h.
Referenced by V8::ContextDisposedNotification(), Isolate::GetHeapStatistics(), V8::IdleNotification(), TickSample::Init(), V8::Initialize(), V8::LowMemoryNotification(), Number::New(), Integer::New(), Integer::NewFromUnsigned(), Isolate::PrintStack(), SamplerThread::Run(), V8::SetFunctionEntryHook(), v8::SetResourceConstraints(), IncrementalMarking::Start(), V8::TearDown(), and IncrementalMarking::WorthActivating().
|
inline |
Definition at line 492 of file isolate.h.
References v8::internal::NULL.
Referenced by Isolate::Dispose().
|
inlinestatic |
void Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 301 of file isolate.cc.
References Isolate::thread_local_top().
Referenced by ThreadManager::Iterate(), Isolate::Iterate(), and Heap::IterateStrongRoots().
void Iterate | ( | ObjectVisitor * | v, |
ThreadLocalTop * | t | ||
) |
Definition at line 265 of file isolate.cc.
References StackFrameIterator::Advance(), v8::internal::NULL, and TRY_CATCH_FROM_ADDRESS.
char * Iterate | ( | ObjectVisitor * | v, |
char * | t | ||
) |
Definition at line 252 of file isolate.cc.
References Isolate::Iterate().
void IterateDeferredHandles | ( | ObjectVisitor * | visitor | ) |
Definition at line 307 of file isolate.cc.
References v8::internal::NULL.
Referenced by Heap::IterateStrongRoots().
void IterateThread | ( | ThreadVisitor * | v, |
char * | t | ||
) |
Definition at line 259 of file isolate.cc.
References ThreadVisitor::VisitThread().
Referenced by ThreadManager::IterateArchivedThreads().
|
inline |
Definition at line 680 of file isolate.h.
Referenced by Execution::CharAt(), Execution::ConfigureInstance(), FormatMessage(), MessageHandler::GetMessage(), Execution::GetStackTraceLine(), Execution::InstantiateFunction(), Execution::InstantiateObject(), Isolate::StackOverflow(), and BinaryOpIC::Transition().
|
inline |
Definition at line 659 of file isolate.h.
Referenced by TraceExtension::GetJsEntrySp(), TickSample::Init(), and CpuProfiler::SetIdle().
|
inline |
Definition at line 930 of file isolate.h.
Referenced by CharacterRange::AddCaseEquivalents().
|
inline |
Definition at line 926 of file isolate.h.
Referenced by CharacterRange::AddCaseEquivalents().
|
inline |
Definition at line 888 of file isolate.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
void LinkDeferredHandles | ( | DeferredHandles * | deferred_handles | ) |
Definition at line 2187 of file isolate.cc.
References NULL.
|
inline |
Definition at line 868 of file isolate.h.
References ASSERT, and v8::internal::NULL.
Referenced by CodeAddressMap::CodeAddressMap(), Profiler::Disengage(), Profiler::Engage(), Compiler::RecordFunctionCompilation(), V8::SetJitCodeEventHandler(), CodeGenerator::ShouldGenerateLog(), TEST(), and CodeAddressMap::~CodeAddressMap().
|
inline |
Definition at line 880 of file isolate.h.
Referenced by Deoptimizer::MaterializeHeapObjects().
bool MayIndexedAccess | ( | JSObject * | receiver, |
uint32_t | index, | ||
v8::AccessType | type | ||
) |
Definition at line 825 of file isolate.cc.
References ASSERT, JSFunction::cast(), AccessCheckInfo::cast(), Isolate::context(), LOG, HeapObject::map(), Utils::ToLocal(), v8::internal::UNKNOWN, and v8::internal::YES.
Referenced by Isolate::MayIndexedAccessWrapper().
|
inline |
Definition at line 747 of file isolate.h.
References Isolate::MayIndexedAccess().
Referenced by JSObject::GetElementAttributeWithReceiver(), Object::GetElementWithReceiver(), JSObject::HasRealElementProperty(), and JSObject::SetElement().
bool MayNamedAccess | ( | JSObject * | receiver, |
Object * | key, | ||
v8::AccessType | type | ||
) |
Definition at line 775 of file isolate.cc.
References ASSERT, JSFunction::cast(), AccessCheckInfo::cast(), Isolate::context(), Heap::hidden_string(), LOG, HeapObject::map(), Utils::ToLocal(), v8::internal::UNKNOWN, and v8::internal::YES.
Referenced by Object::GetProperty(), and Isolate::MayNamedAccessWrapper().
|
inline |
Definition at line 742 of file isolate.h.
References Isolate::MayNamedAccess().
Referenced by JSObject::DefineAccessor(), JSObject::Freeze(), JSObject::GetAccessor(), v8::internal::GetKeysInFixedArrayFor(), JSObject::HasRealNamedCallbackProperty(), JSObject::HasRealNamedProperty(), JSObject::PreventExtensions(), JSObject::SetAccessor(), JSObject::SetLocalPropertyIgnoreAttributes(), and JSObject::SetPropertyForResult().
|
inline |
Definition at line 884 of file isolate.h.
Referenced by V8::AddMemoryAllocationCallback(), LargeObjectSpace::AllocateRaw(), CodeRange::AllocateRawMemory(), RegExpCompiler::Assemble(), MemoryChunk::CommitArea(), CodeRange::CommitRawMemory(), Heap::CommittedMemoryExecutable(), Heap::Contains(), PagedSpace::Expand(), Heap::FreeQueuedChunks(), LargeObjectSpace::FreeUnmarkedObjects(), StatisticsExtension::GetCounters(), Heap::InSpace(), PagedSpace::PagedSpace(), Heap::PrintShortHeapStatistics(), Heap::RecordStats(), PagedSpace::ReleasePage(), V8::RemoveMemoryAllocationCallback(), Heap::SetUp(), NewSpace::SetUp(), SemiSpace::ShrinkTo(), Serializer::SpaceAreaSize(), Heap::TearDown(), PagedSpace::TearDown(), NewSpace::TearDown(), and LargeObjectSpace::TearDown().
Definition at line 1372 of file isolate.cc.
References Isolate::context(), and Context::global_object().
Referenced by TypeFeedbackOracle::GetCallNewTarget(), TypeFeedbackOracle::GetCallTarget(), Execution::GetConstructorDelegate(), Execution::GetFunctionDelegate(), Execution::InstantiateFunction(), THREADED_TEST(), Execution::TryGetConstructorDelegate(), and Execution::TryGetFunctionDelegate().
|
inline |
Definition at line 1111 of file isolate.h.
References Isolate::id(), and Smi::IsValid().
Referenced by CompilationInfo::SetOptimizing().
NO_INLINE | ( | void | PushStackTraceAndDieunsigned int magic, Object *object, Map *map, unsigned int magic2 | ) |
|
inline |
Definition at line 1080 of file isolate.h.
Referenced by MarkCompactCollector::WaitUntilSweepingCompleted().
|
inline |
|
inline |
|
inline |
Definition at line 942 of file isolate.h.
Referenced by String::ToCString(), and String::ToWideCString().
|
inline |
Definition at line 1076 of file isolate.h.
Referenced by Heap::CollectAllAvailableGarbage(), Execution::HandleStackGuardInterrupt(), and Heap::NotifyContextDisposed().
bool OptionalRescheduleException | ( | bool | is_bottom_call | ) |
Definition at line 1319 of file isolate.cc.
References ASSERT, Isolate::clear_pending_exception(), Isolate::has_pending_exception(), v8::internal::NULL, Isolate::pending_exception(), Isolate::thread_local_top(), and Isolate::try_catch_handler_address().
Referenced by Execution::TryCall().
|
inline |
Definition at line 570 of file isolate.h.
References ASSERT, and Isolate::has_pending_exception().
Referenced by Isolate::CancelTerminateExecution(), Isolate::IsExternallyCaught(), Isolate::OptionalRescheduleException(), MessageHandler::ReportMessage(), Isolate::ScheduleThrow(), TEST(), TestParserSyncWithFlags(), and Execution::TryCall().
|
static |
void PrintCurrentStackTrace | ( | FILE * | out | ) |
Definition at line 993 of file isolate.cc.
References StackTraceFrameIterator::Advance(), Isolate::factory(), Smi::FromInt(), JavaScriptFrame::function(), Execution::GetStackTraceLine(), v8::internal::PrintF(), and JavaScriptFrame::receiver().
Referenced by Isolate::DoThrow(), and Message::PrintCurrentStackTrace().
void PrintStack | ( | StringStream * | accumulator | ) |
Definition at line 686 of file isolate.cc.
References StringStream::Add(), ASSERT, Isolate::c_entry_fp(), Isolate::IsInitialized(), StringStream::PrintMentionedObjectCache(), and Isolate::thread_local_top().
Referenced by Isolate::PrintStack(), Isolate::StackTraceString(), and Isolate::ThrowIllegalOperation().
void PrintStack | ( | FILE * | out | ) |
Definition at line 652 of file isolate.cc.
References StringStream::ClearMentionedObjectCache(), Isolate::InitializeLoggingAndCounters(), StringStream::Log(), v8::internal::NULL, StringStream::OutputToFile(), OS::PrintError(), and Isolate::PrintStack().
Failure * PromoteScheduledException | ( | ) |
Definition at line 985 of file isolate.cc.
References Isolate::clear_scheduled_exception(), Isolate::ReThrow(), and Isolate::scheduled_exception().
Referenced by v8::internal::GetKeysInFixedArrayFor().
void PushToPartialSnapshotCache | ( | Object * | obj | ) |
Definition at line 1683 of file isolate.cc.
References obj.
Referenced by SerializerDeserializer::Iterate(), and PartialSerializer::PartialSnapshotCacheIndex().
|
inline |
Definition at line 75 of file isolate-inl.h.
References v8::internal::NULL.
Referenced by Heap::AllocateSymbol(), AssemblerBase::AssemblerBase(), JSReceiver::GenerateIdentityHash(), OS::GetRandomMmapAddr(), and Heap::SetUp().
|
inline |
Definition at line 957 of file isolate.h.
Referenced by NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16().
|
inline |
Definition at line 961 of file isolate.h.
Referenced by ThreadManager::FreeThreadResources(), NativeRegExpMacroAssembler::GrowStack(), and ThreadManager::RestoreThread().
void RegisterTryCatchHandler | ( | v8::TryCatch * | that | ) |
Definition at line 339 of file isolate.cc.
References SimulatorStack::RegisterCTryCatch(), and Isolate::thread_local_top().
Referenced by TryCatch::TryCatch().
void ReportFailedAccessCheck | ( | JSObject * | receiver, |
v8::AccessType | type | ||
) |
Definition at line 720 of file isolate.cc.
References ASSERT, JSFunction::cast(), AccessCheckInfo::cast(), Isolate::context(), HeapObject::map(), Isolate::thread_local_top(), and Utils::ToLocal().
Referenced by Isolate::ReportFailedAccessCheckWrapper().
|
inline |
Definition at line 752 of file isolate.h.
References Isolate::ReportFailedAccessCheck().
Referenced by JSObject::DefineAccessor(), JSObject::Freeze(), JSObject::GetAccessor(), JSObject::GetElementAttributeWithReceiver(), Object::GetElementWithReceiver(), v8::internal::GetKeysInFixedArrayFor(), JSObject::HasRealElementProperty(), JSObject::HasRealNamedCallbackProperty(), JSObject::HasRealNamedProperty(), JSObject::PreventExtensions(), JSObject::SetAccessor(), and JSObject::SetElement().
void ReportPendingMessages | ( | ) |
Definition at line 1268 of file isolate.cc.
References ASSERT, Script::cast(), Isolate::clear_pending_message(), Isolate::has_pending_exception(), Isolate::heap(), v8::internal::NULL, and MessageHandler::ReportMessage().
Referenced by Compiler::CompileScript().
void RestorePendingMessageFromTryCatch | ( | v8::TryCatch * | handler | ) |
Definition at line 969 of file isolate.cc.
References ASSERT, TryCatch::HasCaught(), v8::internal::message, Isolate::thread_local_top(), and Isolate::try_catch_handler().
char * RestoreThread | ( | char * | from | ) |
Definition at line 1415 of file isolate.cc.
References ASSERT, Isolate::context(), OS::MemCopy(), v8::internal::NULL, and Isolate::thread_local_top().
Referenced by ThreadManager::RestoreThread().
Failure * ReThrow | ( | MaybeObject * | exception | ) |
Definition at line 929 of file isolate.cc.
References Failure::Exception(), Isolate::is_catchable_by_javascript(), v8::internal::NULL, Isolate::set_pending_exception(), Isolate::ShouldReportException(), Isolate::thread_local_top(), and Isolate::try_catch_handler().
Referenced by Isolate::PromoteScheduledException().
|
inline |
Definition at line 866 of file isolate.h.
Referenced by Execution::HandleStackGuardInterrupt(), and IC::PostPatching().
|
inline |
|
inline |
Definition at line 627 of file isolate.h.
References ASSERT, and Isolate::has_scheduled_exception().
Referenced by Isolate::CancelTerminateExecution(), and Isolate::PromoteScheduledException().
void ScheduleThrow | ( | Object * | exception | ) |
Definition at line 956 of file isolate.cc.
References Isolate::clear_pending_exception(), Isolate::has_pending_exception(), Isolate::pending_exception(), Isolate::thread_local_top(), and Isolate::Throw().
Referenced by Isolate::ThrowException().
|
inline |
Definition at line 558 of file isolate.h.
References ASSERT, Isolate::context(), and v8::internal::NULL.
Referenced by Context::Enter(), Context::Exit(), and Bootstrapper::InstallExtensions().
|
inline |
Definition at line 1029 of file isolate.h.
References Isolate::date_cache().
|
inline |
Definition at line 1100 of file isolate.h.
References Isolate::function_entry_hook().
Referenced by V8::SetFunctionEntryHook().
|
inline |
Definition at line 575 of file isolate.h.
Referenced by Isolate::DoThrow(), Isolate::ReThrow(), and Isolate::ExceptionScope::~ExceptionScope().
void SetCaptureStackTraceForUncaughtExceptions | ( | bool | capture, |
int | frame_limit, | ||
StackTrace::StackTraceOptions | options | ||
) |
Definition at line 1362 of file isolate.cc.
|
static |
Definition at line 182 of file isolate.cc.
References CHECK, v8::internal::kDefaultIsolateCrashIfInitialized, and v8::internal::kDefaultIsolateInitialized.
Referenced by main().
|
inline |
Definition at line 1003 of file isolate.h.
References ASSERT, and Internals::kNumIsolateDataSlots.
void SetFailedAccessCheckCallback | ( | v8::FailedAccessCheckCallback | callback | ) |
Definition at line 714 of file isolate.cc.
References Isolate::thread_local_top().
Referenced by V8::SetFailedAccessCheckCallbackFunction().
bool ShouldReportException | ( | bool * | can_be_caught_externally, |
bool | catchable_by_javascript | ||
) |
Definition at line 1039 of file isolate.cc.
References Isolate::handler(), v8::internal::NULL, Isolate::thread_local_top(), and Isolate::try_catch_handler().
Referenced by Isolate::DoThrow(), and Isolate::ReThrow().
|
inline |
Definition at line 874 of file isolate.h.
Referenced by IncrementalMarking::Abort(), V8::CancelTerminateExecution(), IncrementalMarking::Finalize(), ThreadManager::FreeThreadResources(), Isolate::GetDefaultIsolateStackGuard(), Execution::HandleStackGuardInterrupt(), IncrementalMarking::MarkingComplete(), PreParserApi::PreParse(), ThreadManager::RestoreThread(), RunParserSyncTest(), v8::SetResourceConstraints(), Heap::SetStackLimits(), TEST(), and TestParserSyncWithFlags().
Failure * StackOverflow | ( | ) |
Definition at line 871 of file isolate.cc.
References Isolate::CaptureSimpleStackTrace(), Handle< T >::cast(), JSObject::Copy(), Isolate::DoThrow(), Failure::Exception(), Isolate::factory(), v8::internal::GetProperty(), std::isnan(), Value::IsNumber(), Isolate::js_builtins_object(), v8::internal::NULL, and JSObject::SetHiddenProperty().
Referenced by NativeRegExpMacroAssembler::Execute(), Execution::HandleStackGuardInterrupt(), RegExpImpl::IrregexpExecRaw(), PreParserApi::PreParse(), and JSObjectWalkVisitor< ContextObject >::StructureWalk().
Definition at line 360 of file isolate.cc.
References OS::Abort(), StringStream::ClearMentionedObjectCache(), Isolate::factory(), v8::internal::NULL, StringStream::OutputToStdOut(), OS::PrintError(), Isolate::PrintStack(), and StringStream::ToString().
StatsTable * stats_table | ( | ) |
Definition at line 2110 of file isolate.cc.
References NULL.
Referenced by CompilationCacheScript::Lookup(), V8::SetAddHistogramSampleFunction(), V8::SetCounterFunction(), V8::SetCreateHistogramFunction(), and TEST().
|
inline |
Definition at line 924 of file isolate.h.
Referenced by String::CanMakeExternal(), and String::MakeExternal().
|
inline |
Definition at line 877 of file isolate.h.
Referenced by CompareNilIC::CompareNil(), IC::ComputeHandler(), StoreIC::generic_stub(), LoadIC::initialize_stub(), StoreIC::initialize_stub(), KeyedLoadIC::LoadElementStub(), LoadIC::megamorphic_stub(), StoreIC::megamorphic_stub(), StoreIC::pre_monomorphic_stub(), KeyedStoreIC::StoreElementStub(), LoadIC::UpdateCaches(), IC::UpdateMegamorphicCache(), IC::UpdateMonomorphicIC(), and IC::UpdatePolymorphicIC().
|
inline |
Definition at line 1084 of file isolate.h.
Referenced by MarkCompactCollector::AreSweeperThreadsActivated(), and MarkCompactCollector::WaitUntilSweepingCompleted().
void TearDown | ( | ) |
Definition at line 1587 of file isolate.cc.
References NULL, and TRACE_ISOLATE.
Referenced by Isolate::Dispose(), and V8::TearDown().
Failure * TerminateExecution | ( | ) |
Definition at line 900 of file isolate.cc.
References Isolate::DoThrow(), Failure::Exception(), and v8::internal::NULL.
Referenced by Execution::HandleStackGuardInterrupt(), and V8::TerminateExecution().
|
inlinestatic |
|
inline |
Definition at line 879 of file isolate.h.
Referenced by Isolate::ArchiveThread(), Isolate::CancelTerminateExecution(), Isolate::DoThrow(), IC::IC(), TickSample::Init(), Isolate::IsExternallyCaught(), Isolate::Iterate(), Isolate::OptionalRescheduleException(), Isolate::PrintStack(), Isolate::RegisterTryCatchHandler(), Isolate::ReportFailedAccessCheck(), Isolate::RestorePendingMessageFromTryCatch(), Isolate::RestoreThread(), Isolate::ReThrow(), SafeStackFrameIterator::SafeStackFrameIterator(), Isolate::ScheduleThrow(), Isolate::SetFailedAccessCheckCallback(), Isolate::ShouldReportException(), StackFrameIterator::StackFrameIterator(), and Isolate::UnregisterTryCatchHandler().
|
inline |
Definition at line 922 of file isolate.h.
Referenced by Deserializer::Deserialize(), HandleScope::Initialize(), Locker::IsLocked(), Heap::IterateStrongRoots(), StartupSerializer::SerializeStrongReferences(), Locker::~Locker(), and Unlocker::~Unlocker().
Failure * Throw | ( | Object * | exception, |
MessageLocation * | location = NULL |
||
) |
Definition at line 923 of file isolate.cc.
References Isolate::DoThrow(), and Failure::Exception().
Referenced by JSProxy::CallTrap(), DictionaryElementsAccessor::DeleteCommon(), JSObject::Freeze(), Runtime::GetObjectProperty(), JSProxy::GetPropertyAttributeWithHandler(), JSObject::GetPropertyWithCallback(), JSObject::PreventExtensions(), IC::ReferenceError(), ParserTraits::ReportMessageAt(), Isolate::ScheduleThrow(), JSObject::SetElement(), Runtime::SetObjectProperty(), JSObject::SetPropertyForResult(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), JSObject::SetPrototype(), Isolate::ThrowIllegalOperation(), Isolate::ThrowInvalidStringLength(), Execution::TryGetConstructorDelegate(), Execution::TryGetFunctionDelegate(), and IC::TypeError().
Failure * ThrowIllegalOperation | ( | ) |
Definition at line 944 of file isolate.cc.
References Isolate::PrintStack(), and Isolate::Throw().
Referenced by v8::internal::TransitionElements().
Failure * ThrowInvalidStringLength | ( | ) |
Definition at line 950 of file isolate.cc.
References Isolate::factory(), v8::internal::NULL, and Isolate::Throw().
Referenced by Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), Heap::AllocateInternalizedStringImpl(), Heap::AllocateOneByteInternalizedString(), Heap::AllocateRawOneByteString(), Heap::AllocateRawTwoByteString(), and Heap::AllocateTwoByteInternalizedString().
|
inline |
Definition at line 1021 of file isolate.h.
References OS::TimeCurrentMillis().
|
inline |
Definition at line 598 of file isolate.h.
Referenced by Isolate::CancelTerminateExecution(), Isolate::DoThrow(), Isolate::IsExternallyCaught(), Isolate::RestorePendingMessageFromTryCatch(), Isolate::ReThrow(), and Isolate::ShouldReportException().
|
inline |
Definition at line 601 of file isolate.h.
Referenced by Isolate::OptionalRescheduleException().
|
inline |
Definition at line 908 of file isolate.h.
Referenced by Heap::AllocateStringFromUtf8Slow(), Name::IsCacheable(), PreParserApi::PreParse(), and TestParserSyncWithFlags().
void UnlinkDeferredHandles | ( | DeferredHandles * | deferred_handles | ) |
Definition at line 2196 of file isolate.cc.
void UnregisterTryCatchHandler | ( | v8::TryCatch * | that | ) |
Definition at line 351 of file isolate.cc.
References ASSERT, v8::internal::NULL, Isolate::thread_local_top(), and SimulatorStack::UnregisterCTryCatch().
|
inline |
Definition at line 1017 of file isolate.h.
Referenced by Compiler::GetUnoptimizedCode(), and TEST().
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 997 of file isolate.h.
Referenced by RegExpImpl::AtomExec(), RegExpImpl::GlobalCache::GlobalCache(), and RegExpImpl::IrregexpExec().
|
static |