V8 Project
|
#include <isolate.h>
Classes | |
class | EntryStackItem |
class | ExceptionScope |
class | PerIsolateThreadData |
class | ThreadDataTable |
Public Types | |
enum | AddressId { kIsolateAddressCount } |
Static Public Member Functions | |
static void | InitializeOncePerProcess () |
static PerIsolateThreadData * | CurrentPerIsolateThreadData () |
static void | GlobalTearDown () |
static base::Thread::LocalStorageKey | isolate_key () |
static base::Thread::LocalStorageKey | thread_id_key () |
static base::Thread::LocalStorageKey | per_isolate_thread_data_key () |
static Address | c_entry_fp (ThreadLocalTop *thread) |
static Address | handler (ThreadLocalTop *thread) |
static int | ArchiveSpacePerThread () |
static Isolate * | NewForTesting () |
Static Public Attributes | |
static const char *const | kStackOverflowMessage |
static const int | kUC16AlphabetSize = 256 |
static const int | kBMMaxShift = 250 |
static const int | kJSRegexpStaticOffsetsVectorSize = 128 |
Private Types | |
enum | State { UNINITIALIZED , INITIALIZED } |
Private Member Functions | |
Isolate () | |
void | Deinit () |
PerIsolateThreadData * | FindOrAllocatePerThreadDataForThisThread () |
void | Enter () |
void | Exit () |
void | InitializeThreadLocal () |
void | MarkCompactPrologue (bool is_compacting, ThreadLocalTop *archived_thread_data) |
void | MarkCompactEpilogue (bool is_compacting, ThreadLocalTop *archived_thread_data) |
void | FillCache () |
bool | PropagatePendingExceptionToExternalTryCatch () |
bool | IsErrorObject (Handle< Object > obj) |
DISALLOW_COPY_AND_ASSIGN (Isolate) | |
Static Private Member Functions | |
static void | SetIsolateThreadLocals (Isolate *isolate, PerIsolateThreadData *data) |
Static Private Attributes | |
static base::LazyMutex | thread_data_table_mutex_ = LAZY_MUTEX_INITIALIZER |
static base::Thread::LocalStorageKey | per_isolate_thread_data_key_ |
static base::Thread::LocalStorageKey | isolate_key_ |
static base::Thread::LocalStorageKey | thread_id_key_ |
static ThreadDataTable * | thread_data_table_ = NULL |
static base::Atomic32 | isolate_counter_ = 0 |
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 |
|
private |
v8::internal::Isolate::~Isolate | ( | ) |
Definition at line 1683 of file isolate.cc.
References bootstrapper_, call_descriptor_data_, code_aging_helper_, code_range_, compilation_cache_, context_slot_cache_, counters_, date_cache_, DCHECK, debug_, v8::internal::Zone::DeleteKeptSegment(), descriptor_lookup_cache_, entry_stack_, eternal_handles_, global_handles_, handle_scope_implementer_, inner_pointer_to_code_cache_, keyed_lookup_cache_, logger_, materialized_object_store_, memory_allocator_, NULL, v8::internal::Isolate::EntryStackItem::previous_item, random_number_generator_, regexp_stack_, runtime_zone_, stats_table_, string_tracker_, stub_cache_, thread_manager_, TRACE_ISOLATE, unicode_cache_, and write_iterator_.
|
private |
Definition at line 1461 of file isolate.cc.
References CHECK, debug_, handle_scope_data_, heap_, id_, v8::internal::HandleScopeData::Initialize(), InitializeLoggingAndCounters(), v8::internal::Heap::isolate_, v8::internal::ThreadManager::isolate_, isolate_addresses_, isolate_counter_, ISOLATE_INIT_ARRAY_EXECUTE, ISOLATE_INIT_ARRAY_LIST, ISOLATE_INIT_EXECUTE, ISOLATE_INIT_LIST, kIsolateAddressCount, v8::base::NoBarrier_AtomicIncrement(), v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Pointer(), stack_guard_, thread_data_table_, thread_data_table_mutex_, thread_manager_, ThreadManager, and TRACE_ISOLATE.
Referenced by NewForTesting().
void v8::internal::Isolate::AddCallCompletedCallback | ( | CallCompletedCallback | callback | ) |
Definition at line 2248 of file isolate.cc.
References v8::internal::List< T, AllocationPolicy >::Add(), v8::internal::List< T, AllocationPolicy >::at(), and call_completed_callbacks_.
Referenced by v8::Isolate::AddCallCompletedCallback().
|
inlinestatic |
Definition at line 683 of file isolate.h.
Referenced by v8::internal::ArchiveSpacePerThread().
char * v8::internal::Isolate::ArchiveThread | ( | char * | to | ) |
Definition at line 1369 of file isolate.cc.
References clear_pending_exception(), clear_pending_message(), clear_scheduled_exception(), InitializeThreadLocal(), v8::internal::MemCopy(), thread_local_top(), and to().
Referenced by v8::internal::ThreadManager::EagerlyArchiveThread().
|
inline |
|
inline |
Definition at line 856 of file isolate.h.
References bootstrapper_.
Referenced by v8::internal::Scope::Analyze(), v8::internal::Heap::ClearJSFunctionResultCaches(), v8::internal::Heap::ClearNormalizedMapCaches(), v8::internal::Debug::CompileDebuggerScript(), v8::CreateEnvironment(), v8::Context::DetachGlobal(), DoThrow(), v8::internal::ThreadManager::EagerlyArchiveThread(), v8::internal::ThreadManager::FreeThreadResources(), v8::internal::JSObject::GetElementAttributeWithReceiver(), v8::internal::Debug::HandleDebugBreak(), v8::internal::Heap::IterateStrongRoots(), v8::internal::Debug::Load(), main(), v8::internal::CodeGenerator::MakeCodePrologue(), v8::internal::MayAccessPreCheck(), v8::internal::RuntimeProfiler::Optimize(), v8::internal::CodeGenerator::PrintCode(), v8::internal::Deserializer::ReadChunk(), v8::internal::ThreadManager::RestoreThread(), and v8::internal::JSFunction::SetInstancePrototype().
|
inline |
Definition at line 543 of file isolate.h.
References break_access_.
Referenced by v8::internal::BASE_EMBEDDED< Visitor >::Lock(), v8::internal::BASE_EMBEDDED< Visitor >::TryLock(), and v8::internal::BASE_EMBEDDED< Visitor >::Unlock().
|
inline |
Definition at line 947 of file isolate.h.
References builtins_.
Referenced by v8::internal::BackEdgeTable::AddStackCheck(), v8::internal::Compiler::BuildFunctionInfo(), v8::internal::StubCache::Clear(), v8::internal::ConstantPoolArray::ClearPtrEntries(), v8::internal::Logger::CodeCreateEvent(), v8::internal::LoadIC::CompileHandler(), v8::internal::StoreIC::CompileHandler(), v8::internal::PropertyICCompiler::ComputeMonomorphic(), v8::internal::DebugBreakForIC(), v8::internal::Deoptimizer::DoComputeAccessorStubFrame(), v8::internal::Deoptimizer::DoComputeArgumentsAdaptorFrame(), v8::internal::Deoptimizer::DoComputeCompiledStubFrame(), v8::internal::Deoptimizer::DoComputeConstructStubFrame(), v8::internal::Deoptimizer::DoComputeJSFrame(), v8::internal::DropFrames(), v8::internal::RootsReferencesExtractor::FillReferences(), v8::internal::StoreIC::generic_stub(), v8::internal::KeyedLoadIC::generic_stub(), v8::internal::Code::GetCodeAgeAndParity(), v8::internal::Code::GetCodeAgeStub(), v8::internal::Compiler::GetOptimizedCode(), v8::internal::Debug::HandleStepIn(), v8::internal::InstallBuiltin(), v8::internal::InstallFunction(), v8::internal::SharedFunctionInfo::is_compiled(), v8::internal::JSFunction::is_compiled(), v8::internal::JSFunction::IsInOptimizationQueue(), v8::internal::JSFunction::IsMarkedForConcurrentOptimization(), v8::internal::JSFunction::IsMarkedForOptimization(), v8::internal::Heap::IterateStrongRoots(), v8::internal::TypeFeedbackOracle::LoadIsBuiltin(), v8::internal::CpuProfiler::LogBuiltins(), v8::internal::Logger::LogCompiledFunctions(), v8::internal::StoreIC::megamorphic_stub(), v8::internal::HOptimizedGraphBuilder::NewArgumentAdaptorCall(), v8::internal::BackEdgeTable::Patch(), v8::internal::KeyedLoadIC::pre_monomorphic_stub(), v8::internal::KeyedStoreIC::pre_monomorphic_stub(), v8::internal::Debug::PrepareForBreakPoints(), v8::internal::Debug::PrepareStep(), v8::internal::CodeFlusher::ProcessJSFunctionCandidates(), v8::internal::CodeFlusher::ProcessSharedFunctionInfoCandidates(), v8::internal::RecordFunctionCompilation(), v8::internal::BackEdgeTable::RemoveStackCheck(), v8::internal::LiveEdit::ReplaceFunctionCode(), v8::internal::BackEdgeTable::Revert(), v8::internal::CodeSerializer::SerializeObject(), v8::internal::StubCache::Set(), v8::internal::LiveEdit::SetAfterBreakTarget(), v8::internal::KeyedStoreIC::sloppy_arguments_stub(), v8::internal::LoadIC::slow_stub(), v8::internal::StoreIC::slow_stub(), v8::internal::KeyedLoadIC::string_stub(), v8::internal::TraceTopFrame(), and v8::internal::ArgumentsAdaptorFrame::unchecked_code().
|
inlinestatic |
Definition at line 647 of file isolate.h.
Referenced by v8::internal::IC::IC(), v8::internal::SafeStackFrameIterator::IsValidTop(), PrintStack(), v8::internal::StackFrameIterator::Reset(), and v8::internal::SafeStackFrameIterator::SafeStackFrameIterator().
|
inline |
CallInterfaceDescriptorData * v8::internal::Isolate::call_descriptor_data | ( | int | index | ) |
Definition at line 2208 of file isolate.cc.
References call_descriptor_data_, DCHECK, and v8::internal::CallDescriptors::NUMBER_OF_DESCRIPTORS.
Referenced by v8::internal::CallInterfaceDescriptor::DebugName().
void v8::internal::Isolate::CancelScheduledExceptionFromTryCatch | ( | v8::TryCatch * | handler | ) |
Definition at line 887 of file isolate.cc.
References clear_scheduled_exception(), DCHECK, handler(), has_scheduled_exception(), heap(), and scheduled_exception().
void v8::internal::Isolate::CancelTerminateExecution | ( | ) |
Definition at line 795 of file isolate.cc.
References clear_pending_exception(), clear_scheduled_exception(), has_pending_exception(), has_scheduled_exception(), v8::TryCatch::has_terminated_, heap_, pending_exception(), scheduled_exception(), thread_local_top(), and try_catch_handler().
Referenced by v8::V8::CancelTerminateExecution().
Definition at line 418 of file isolate.cc.
References capture_stack_trace_for_uncaught_exceptions_, CaptureCurrentStackTrace(), factory(), v8::internal::Object::SetProperty(), stack_trace_for_uncaught_exceptions_frame_limit_, stack_trace_for_uncaught_exceptions_options_, and v8::internal::STRICT.
void v8::internal::Isolate::CaptureAndSetSimpleStackTrace | ( | Handle< JSObject > | error_object, |
Handle< Object > | caller | ||
) |
Definition at line 430 of file isolate.cc.
References CaptureSimpleStackTrace(), factory(), v8::internal::Object::SetProperty(), and v8::internal::STRICT.
Referenced by StackOverflow().
Handle< JSArray > v8::internal::Isolate::CaptureCurrentStackTrace | ( | int | frame_limit, |
StackTrace::StackTraceOptions | options | ||
) |
Definition at line 439 of file isolate.cc.
References v8::internal::JSObject::AddProperty(), v8::internal::StackTraceFrameIterator::Advance(), v8::internal::Script::COMPILATION_TYPE_EVAL, context(), factory(), v8::internal::Smi::FromInt(), v8::internal::Script::GetLineNumber(), v8::internal::Script::GetNameOrSourceURL(), v8::internal::handle(), v8::StackTrace::kColumnOffset, v8::StackTrace::kExposeFramesAcrossSecurityOrigins, v8::StackTrace::kFunctionName, v8::StackTrace::kIsConstructor, v8::StackTrace::kIsEval, v8::StackTrace::kLineNumber, v8::StackTrace::kScriptId, v8::StackTrace::kScriptName, v8::StackTrace::kScriptNameOrSourceURL, v8::internal::Max(), NONE, v8::internal::pc, STATIC_CHAR_VECTOR, and v8::internal::JavaScriptFrame::Summarize().
Referenced by CaptureAndSetDetailedStackTrace(), v8::StackTrace::CurrentStackTrace(), and DoThrow().
Handle< Object > v8::internal::Isolate::CaptureSimpleStackTrace | ( | Handle< JSObject > | error_object, |
Handle< Object > | caller | ||
) |
Definition at line 335 of file isolate.cc.
References context(), DCHECK, factory(), v8::internal::FastD2IChecked(), v8::internal::Smi::FromInt(), v8::internal::JSObject::GetDataProperty(), v8::internal::Object::GetProperty(), v8::internal::Handle< T >::is_null(), v8::internal::IsVisibleInStackTrace(), js_builtins_object(), v8::internal::Max(), v8::internal::Min(), v8::internal::JSObject::NewElementsCapacity(), v8::internal::STRICT, and v8::internal::JavaScriptFrame::Summarize().
Referenced by CaptureAndSetSimpleStackTrace().
|
inline |
Definition at line 572 of file isolate.h.
References DCHECK, heap_, and thread_local_top_.
Referenced by ArchiveThread(), CancelTerminateExecution(), v8::internal::Debug::CompileDebuggerScript(), v8::internal::LiveEdit::GatherCompileInfo(), v8::internal::Compiler::GetDebugCode(), v8::internal::Compiler::GetOptimizedCode(), Init(), OptionalRescheduleException(), v8::internal::MessageHandler::ReportMessage(), and ScheduleThrow().
|
inline |
Definition at line 588 of file isolate.h.
References heap_, and thread_local_top_.
Referenced by ArchiveThread(), v8::internal::LiveEdit::GatherCompileInfo(), Init(), v8::internal::Invoke(), and ReportPendingMessages().
|
inline |
Definition at line 631 of file isolate.h.
References DCHECK, heap_, and thread_local_top_.
Referenced by ArchiveThread(), CancelScheduledExceptionFromTryCatch(), CancelTerminateExecution(), Init(), v8::internal::Debug::OnThrow(), PromoteScheduledException(), and v8::internal::MessageHandler::ReportMessage().
|
inline |
|
inline |
Definition at line 863 of file isolate.h.
References code_range_.
Referenced by v8::internal::MemoryAllocator::AllocateChunk(), v8::internal::Heap::AllocateCode(), v8::internal::MemoryChunk::CommitArea(), v8::internal::Heap::CopyCode(), v8::internal::MemoryAllocator::FreeMemory(), v8::Isolate::GetCodeRange(), v8::internal::Assembler::runtime_entry_at(), v8::internal::Heap::SetUp(), and v8::internal::PagedSpace::SizeOfFirstPage().
|
inline |
Definition at line 865 of file isolate.h.
References compilation_cache_.
Referenced by v8::internal::Heap::AdvanceIdleIncrementalMarking(), v8::internal::Heap::CollectAllAvailableGarbage(), v8::internal::RegExpImpl::Compile(), v8::internal::Compiler::CompileScript(), v8::internal::Heap::CreateInitialObjects(), v8::internal::Compiler::GetFunctionFromEval(), v8::internal::Heap::IterateStrongRoots(), v8::internal::Heap::MarkCompactPrologue(), v8::internal::MarkCompactCollector::PrepareForCodeFlushing(), v8::internal::LiveEdit::ReplaceFunctionCode(), v8::internal::IncrementalMarking::StartMarking(), and v8::internal::Debug::UpdateState().
void v8::internal::Isolate::ComputeLocation | ( | MessageLocation * | target | ) |
Definition at line 932 of file isolate.cc.
References v8::internal::JavaScriptFrame::function(), and heap_.
Referenced by v8::internal::Debug::CompileDebuggerScript(), and DoThrow().
|
inline |
Definition at line 1052 of file isolate.h.
References DCHECK, NULL, and optimizing_compiler_thread_.
Referenced by v8::internal::RuntimeProfiler::Optimize().
|
inline |
Definition at line 1045 of file isolate.h.
References DCHECK, NULL, and optimizing_compiler_thread_.
Referenced by Deinit(), v8::internal::RuntimeProfiler::Optimize(), and v8::internal::Debug::PrepareForBreakPoints().
|
inline |
Definition at line 548 of file isolate.h.
References thread_local_top_.
Referenced by v8::internal::Debug::AssertDebugContext(), CaptureCurrentStackTrace(), CaptureSimpleStackTrace(), v8::internal::CompileGlobalEval(), v8::internal::ComputeReceiverForNonGlobal(), v8::internal::Runtime::CreateArrayLiteralBoilerplate(), v8::Context::Enter(), v8::internal::FindCaller(), get_initial_js_array_map(), GetCallingNativeContext(), v8::Isolate::GetCurrentContext(), v8::internal::Object::GetRootMap(), v8::internal::GetTypedArrayFun(), global_context(), global_object(), global_proxy(), v8::Isolate::InContext(), v8::internal::IsJSArrayFastElementMovingAllowed(), v8::internal::MayAccessPreCheck(), MayIndexedAccess(), MayNamedAccess(), native_context(), v8::internal::NewSloppyArguments(), v8::internal::JSObject::ReferencesObject(), ReportFailedAccessCheck(), RestoreThread(), set_context(), v8::internal::JSFunction::SetPrototype(), v8::internal::Object::ToObject(), and v8::internal::Map::TransitionElementsTo().
|
inline |
|
inline |
Definition at line 891 of file isolate.h.
References context_slot_cache_.
Referenced by v8::internal::Heap::CreateInitialObjects(), and v8::internal::Heap::MarkCompactPrologue().
|
inline |
Definition at line 857 of file isolate.h.
References counters_, DCHECK, and NULL.
Referenced by v8::internal::HGraphBuilder::Add(), v8::internal::Zone::adjust_segment_bytes_allocated(), v8::internal::MemoryAllocator::AllocateChunk(), v8::internal::Heap::AllocateRaw(), v8::internal::CodeStubGraphBuilderBase::BuildCheckAndInstallOptimizedCode(), v8::internal::CodeStubGraphBuilderBase::BuildGraph(), v8::internal::CodeStubGraphBuilderBase::BuildInstallFromOptimizedCodeMap(), v8::internal::Heap::CheckpointObjectStats(), v8::internal::Heap::CollectGarbage(), v8::internal::MemoryAllocator::CommitBlock(), v8::internal::StoreBuffer::Compact(), v8::internal::Compiler::CompileScript(), v8::internal::Compiler::CompileStreamedScript(), v8::internal::CompileToplevel(), v8::internal::PropertyICCompiler::ComputeKeyedLoadPolymorphic(), v8::internal::GlobalHandles::Node::DecreaseBlockUses(), v8::internal::Deoptimizer::Deoptimizer(), v8::internal::JSObject::EnsureWritableFastElements(), v8::internal::MemoryAllocator::FreeMemory(), v8::internal::Heap::GarbageCollectionEpilogue(), v8::internal::InnerPointerToCodeCache::GetCacheEntry(), v8::internal::StatisticsExtension::GetCounters(), v8::internal::GetEnumPropertyKeys(), v8::internal::Compiler::GetFunctionFromEval(), v8::internal::Heap::IdleNotification(), v8::internal::GlobalHandles::Node::IncreaseBlockUses(), v8::internal::Parser::Internalize(), v8::internal::CompilationCacheEval::Lookup(), v8::internal::CompilationCacheScript::Lookup(), v8::internal::CompilationCacheRegExp::Lookup(), v8::Isolate::LowMemoryNotification(), v8::internal::FullCodeGenerator::MakeCode(), v8::internal::CodeGenerator::MakeCodeEpilogue(), v8::internal::Heap::MarkCompact(), v8::internal::JSObject::MigrateFastToSlow(), v8::internal::Map::Normalize(), v8::internal::JSObject::NormalizeElements(), v8::internal::Parser::Parse(), v8::internal::Parser::ParseLazy(), v8::internal::Parser::ParseProgram(), v8::internal::Heap::PerformGarbageCollection(), v8::internal::ExternalReferenceTable::PopulateTable(), v8::internal::Runtime_NewObjectHelper(), v8::internal::Heap::SelectGarbageCollector(), v8::internal::StubCache::Set(), v8::Isolate::SetCounterFunction(), v8::Isolate::SetCreateHistogramFunction(), v8::internal::IncrementalMarking::Step(), v8::internal::StoreBuffer::StoreBufferOverflow(), v8::internal::JSObjectWalkVisitor< ContextObject >::StructureWalk(), and v8::internal::MemoryAllocator::UncommitBlock().
void v8::internal::Isolate::CountUsage | ( | v8::Isolate::UseCounterFeature | feature | ) |
Definition at line 2358 of file isolate.cc.
References use_counter_callback_.
Referenced by v8::internal::Parser::Internalize().
|
inline |
Definition at line 971 of file isolate.h.
References cpu_profiler_.
Referenced by v8::CpuProfile::Delete(), v8::internal::CompilationInfo::Initialize(), v8::internal::Heap::OnMoveEvent(), v8::internal::RecordFunctionCompilation(), v8::internal::Sampler::SampleStack(), and v8::internal::Heap::SelectScavengingVisitorsTable().
|
inlinestatic |
Definition at line 474 of file isolate.h.
References v8::base::Thread::GetThreadLocal(), and per_isolate_thread_data_key_.
Referenced by Enter(), Exit(), and TearDown().
|
inline |
Definition at line 1020 of file isolate.h.
References date_cache_.
Referenced by v8::Date::DateTimeConfigurationChangeNotification(), v8::internal::JSDate::DoGetField(), and set_date_cache().
|
inline |
Definition at line 967 of file isolate.h.
References debug_.
Referenced by v8::internal::IC::address(), v8::Debug::Call(), v8::internal::LiveEdit::ChangeScriptSource(), v8::internal::CheckExecutionState(), v8::internal::Compiler::CompileScript(), v8::internal::CompileToplevel(), v8::internal::IC::constant_pool(), v8::Debug::DebugBreakForCommand(), v8::internal::DebugEvaluate(), Deinit(), DoThrow(), v8::internal::DropActivationsInActiveThreadImpl(), v8::internal::ThreadManager::EagerlyArchiveThread(), v8::internal::ThreadManager::FreeThreadResources(), v8::internal::GetDebugEventContext(), v8::Debug::GetMirror(), v8::internal::Object::GetPropertyWithDefinedGetter(), v8::internal::CompilationInfo::Initialize(), v8::internal::Invoke(), v8::internal::ThreadManager::RestoreThread(), v8::internal::Runtime_NewObjectHelper(), v8::internal::ScopeIterator::ScopeIterator(), v8::Debug::SendCommand(), v8::Debug::SetDebugEventListener(), v8::internal::V8HeapExplorer::SetGcSubrootReference(), v8::Debug::SetLiveEditEnabled(), v8::Debug::SetMessageHandler(), v8::internal::Object::SetPropertyWithDefinedSetter(), v8::internal::Parser::ThrowPendingError(), and v8::internal::RelocInfo::Visit().
|
inline |
Definition at line 28 of file isolate-inl.h.
Referenced by v8::internal::RuntimeProfiler::AttemptOnStackReplacement(), v8::internal::Compiler::DebuggerWantsEagerCompilation(), v8::internal::Compiler::GetConcurrentlyOptimizedCode(), v8::internal::Compiler::GetLazyCode(), and v8::internal::RuntimeProfiler::OptimizeNow().
|
private |
Definition at line 1591 of file isolate.cc.
References basic_block_profiler_, bootstrapper_, builtins_, concurrent_recompilation_enabled(), cpu_profiler_, debug(), deoptimizer_data_, v8::internal::MarkCompactCollector::EnsureSweepingCompleted(), FreeThreadResources(), GetHStatistics(), GetTStatistics(), heap_, heap_profiler_, INITIALIZED, v8::internal::Sampler::IsActive(), logger_, v8::internal::Heap::mark_compact_collector(), NULL, num_sweeper_threads_, optimizing_compiler_thread_, v8::internal::PrintF(), runtime_profiler_, v8::internal::Logger::sampler(), state_, v8::internal::SweeperThread::Stop(), v8::internal::OptimizingCompilerThread::Stop(), v8::internal::Sampler::Stop(), stress_deopt_count_, sweeper_thread_, v8::internal::MarkCompactCollector::sweeping_in_progress(), v8::internal::Builtins::TearDown(), v8::internal::Heap::TearDown(), v8::internal::Logger::TearDown(), TRACE_ISOLATE, UNINITIALIZED, and v8::internal::Debug::Unload().
Referenced by TearDown().
|
inline |
Definition at line 877 of file isolate.h.
References deoptimizer_data_.
Referenced by v8::internal::Deoptimizer::DebuggerInspectableFrame(), v8::internal::Deoptimizer::DeleteDebuggerInspectableFrame(), v8::internal::Deoptimizer::EnsureCodeForDeoptimizationEntry(), v8::internal::Deoptimizer::GetDeoptimizationEntry(), v8::internal::Deoptimizer::GetDeoptimizationId(), v8::internal::Deoptimizer::Grab(), v8::internal::Heap::IterateStrongRoots(), and v8::internal::Deoptimizer::New().
|
inline |
Definition at line 895 of file isolate.h.
References descriptor_lookup_cache_.
Referenced by v8::internal::Heap::CreateInitialObjects(), v8::internal::Heap::MarkCompactPrologue(), and v8::internal::Heap::Scavenge().
|
private |
void v8::internal::Isolate::DoThrow | ( | Object * | exception, |
MessageLocation * | location | ||
) |
Definition at line 1003 of file isolate.cc.
References v8::base::OS::Abort(), bootstrapper(), v8::TryCatch::capture_message_, capture_stack_trace_for_uncaught_exceptions_, CaptureCurrentStackTrace(), v8::internal::Handle< T >::cast(), ComputeLocation(), DCHECK, debug(), v8::internal::MessageLocation::end_pos(), factory(), v8::internal::fatal_exception_depth, v8::internal::MessageHandler::GetLocalizedMessage(), v8::internal::Object::GetProperty(), has_pending_exception(), is_catchable_by_javascript(), v8::internal::Handle< T >::is_null(), IsErrorObject(), v8::internal::MessageHandler::MakeMessageObject(), NULL, v8::internal::Debug::OnThrow(), PrintCurrentStackTrace(), v8::base::OS::PrintError(), v8::internal::PrintF(), v8::internal::MessageLocation::script(), set_pending_exception(), ShouldReportException(), stack_trace_for_uncaught_exceptions_frame_limit_, stack_trace_for_uncaught_exceptions_options_, v8::internal::MessageLocation::start_pos(), STATIC_CHAR_VECTOR, thread_local_top(), and try_catch_handler().
Referenced by StackOverflow(), TerminateExecution(), and Throw().
|
inline |
Definition at line 1001 of file isolate.h.
References DCHECK, INITIALIZED, serializer_enabled_, and state_.
Referenced by v8::Isolate::New().
Definition at line 2281 of file isolate.cc.
References v8::internal::FixedArray::CopySize(), DCHECK, factory(), and heap().
Referenced by v8::Isolate::EnqueueMicrotask().
|
private |
Definition at line 2047 of file isolate.cc.
References v8::internal::ThreadId::Current(), CurrentPerIsolateThreadData(), DCHECK, v8::internal::Isolate::EntryStackItem::entry_count, entry_stack_, FindOrAllocatePerThreadDataForThisThread(), v8::internal::Isolate::PerIsolateThreadData::isolate_, NULL, v8::internal::Isolate::EntryStackItem::previous_thread_data, SetIsolateThreadLocals(), and v8::internal::Isolate::PerIsolateThreadData::thread_id().
Referenced by v8::Isolate::Enter(), and v8::Locker::Initialize().
|
inline |
Definition at line 919 of file isolate.h.
References eternal_handles_.
Referenced by v8::Date::DateTimeConfigurationChangeNotification(), v8::V8::Eternalize(), v8::internal::anonymous_namespace{i18n.cc}::GetEternal(), v8::V8::GetEternal(), v8::internal::Heap::IterateStrongRoots(), v8::internal::Heap::PerformGarbageCollection(), and v8::internal::StartupSerializer::SerializeStrongReferences().
|
private |
Definition at line 2081 of file isolate.cc.
References v8::internal::ThreadId::Current(), CurrentPerIsolateThreadData(), DCHECK, v8::internal::Isolate::EntryStackItem::entry_count, entry_stack_, NULL, v8::internal::Isolate::EntryStackItem::previous_isolate, v8::internal::Isolate::EntryStackItem::previous_item, v8::internal::Isolate::EntryStackItem::previous_thread_data, SetIsolateThreadLocals(), and v8::internal::Isolate::PerIsolateThreadData::thread_id().
Referenced by v8::Isolate::Exit(), and v8::Locker::Initialize().
|
inline |
Definition at line 599 of file isolate.h.
References thread_local_top_.
|
inline |
Definition at line 982 of file isolate.h.
Referenced by v8::internal::BASE_EMBEDDED< Visitor >::Add(), v8::internal::ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::AddElementsToFixedArray(), v8::V8::AddMessageListener(), v8::internal::SharedFunctionInfo::AddToOptimizedCodeMap(), v8::internal::CompareICStub::AddToSpecialCache(), v8::internal::OrderedHashTable< Derived, Iterator, entrysize >::Allocate(), v8::internal::ModuleInfo::Allocate(), v8::internal::DescriptorArray::Allocate(), v8::internal::TransitionArray::Allocate(), v8::internal::Scope::AllocateNonParameterLocal(), v8::internal::TransitionArray::AllocateSimple(), v8::internal::AppendUniqueCallbacks(), v8::internal::ArgumentsForInlinedFunction(), v8::internal::ArrayConstructorCommon(), v8::internal::OneByteStringKey::AsHandle(), v8::internal::SeqOneByteSubStringKey::AsHandle(), v8::internal::TwoByteStringKey::AsHandle(), v8::internal::CodeCacheHashTableKey::AsHandle(), v8::internal::PolymorphicCodeCacheHashTableKey::AsHandle(), v8::internal::NumberDictionaryShape::AsHandle(), v8::internal::RegExpImpl::AtomExec(), v8::internal::BeginPerformSplice(), v8::internal::HOptimizedGraphBuilder::BuildArrayIndexOf(), v8::internal::Compiler::BuildFunctionInfo(), v8::internal::String::CalculateLineEnds(), v8::internal::Debug::Call(), v8::Debug::Call(), v8::internal::JSProxy::CallTrap(), CaptureAndSetDetailedStackTrace(), CaptureAndSetSimpleStackTrace(), CaptureCurrentStackTrace(), CaptureSimpleStackTrace(), v8::internal::LiveEdit::ChangeScriptSource(), v8::internal::LiveEdit::CheckAndDropActivations(), v8::internal::Debug::CheckBreakPoint(), v8::internal::Debug::CheckBreakPoints(), v8::internal::BreakPointInfo::ClearBreakPoint(), v8::internal::Debug::ClearMirrorCache(), v8::Object::Clone(), v8::internal::Accessors::CloneAccessor(), v8::internal::JSFunction::CloneClosure(), v8::Array::CloneElementAt(), v8::internal::CollectElementIndices(), v8::internal::LiteralFixer::CollectJSFunctions(), v8::internal::RegExpImpl::Compile(), v8::internal::CompiledReplacement::Compile(), v8::ScriptCompiler::Compile(), v8::internal::Debug::CompileDebuggerScript(), v8::internal::CompileGlobalEval(), v8::internal::RegExpImpl::CompileIrregexp(), v8::internal::Compiler::CompileScript(), v8::internal::CompileToplevel(), v8::internal::PropertyICCompiler::ComputeCompareNil(), v8::internal::PropertyICCompiler::ComputeKeyedLoadMonomorphic(), v8::internal::PropertyICCompiler::ComputeKeyedLoadPolymorphic(), v8::internal::PropertyICCompiler::ComputeKeyedStoreMonomorphic(), v8::internal::PropertyICCompiler::ComputeKeyedStorePolymorphic(), v8::internal::PropertyICCompiler::ComputeLoad(), v8::internal::NamedLoadHandlerCompiler::ComputeLoadNonexistent(), v8::internal::PropertyICCompiler::ComputeMonomorphic(), v8::internal::ComputeObjectLiteralMap(), v8::internal::PropertyICCompiler::ComputeStore(), v8::String::Concat(), v8::internal::ConvertCase(), v8::internal::TypeFeedbackVector::Copy(), v8::internal::CopyFastElementsToDictionary(), v8::internal::Map::CopyForFreeze(), v8::internal::Map::CopyForObserved(), v8::internal::FixedArray::CopySize(), v8::internal::JSArrayBasedStruct< S >::Create(), v8::internal::DeclaredAccessorDescriptor::Create(), v8::internal::ScopeInfo::Create(), v8::internal::Heap::CreateApiObjects(), v8::internal::Runtime::CreateArrayLiteralBoilerplate(), v8::internal::Heap::CreateInitialObjects(), v8::internal::CreateObjectLiteralBoilerplate(), v8::internal::CreateRegExpErrorObjectAndThrow(), v8::internal::CreateScriptCopy(), v8::internal::DebugEvaluate(), v8::internal::JSObject::DefineAccessor(), v8::internal::JSObject::DefineElementAccessor(), v8::internal::SloppyArgumentsElementsAccessor::Delete(), v8::internal::FastElementsAccessor< FastElementsAccessorSubclass, KindTraits >::DeleteCommon(), v8::internal::DictionaryElementsAccessor::DeleteCommon(), v8::internal::JSObject::DeleteElement(), v8::internal::JSProxy::DeleteElementWithHandler(), v8::internal::JSObject::DeleteElementWithInterceptor(), v8::internal::JSObject::DeleteHiddenProperty(), v8::Object::DeleteHiddenValue(), v8::internal::JSObject::DeleteNormalizedProperty(), v8::internal::Runtime::DeleteObjectProperty(), v8::internal::CallIC::DoCustomHandler(), DoThrow(), v8::internal::BoyerMooreLookahead::EmitSkipInstructions(), v8::internal::EmitUseLookupTable(), v8::internal::EndPerformSplice(), EnqueueMicrotask(), v8::Isolate::EnqueueMicrotask(), v8::internal::EnqueueSpliceRecord(), v8::internal::Debug::EnsureDebugInfo(), v8::internal::JSFunction::EnsureHasInitialMap(), v8::internal::JSGlobalObject::EnsurePropertyCell(), v8::internal::MaterializedObjectStore::EnsureStackEntries(), v8::internal::JSObject::EnsureWritableFastElements(), v8::internal::RegExpResultsCache::Enter(), v8::internal::AllocationSiteCreationContext::EnterNewScope(), v8::internal::Context::ErrorMessageForCodeGenerationFromStrings(), v8::internal::URIEscape::Escape(), v8::internal::MarkCompactCollector::EvacuateNewSpaceAndCandidates(), v8::internal::ExternalArrayIntSetter(), v8::internal::anonymous_namespace{i18n.cc}::ExtractBooleanSetting(), v8::internal::anonymous_namespace{i18n.cc}::ExtractIntegerSetting(), v8::internal::V8HeapExplorer::ExtractSharedFunctionInfoReferences(), v8::internal::anonymous_namespace{i18n.cc}::ExtractStringSetting(), v8::internal::compiler::JSGraph::factory(), v8::internal::TestWithIsolate::factory(), v8::internal::FillCache(), v8::internal::JSProxy::Fix(), v8::Symbol::For(), v8::Symbol::ForApi(), v8::Private::ForApi(), v8::internal::JSObject::Freeze(), v8::FromCData(), v8::internal::FunctionInfoListener::FunctionInfoListener(), v8::FunctionTemplateNew(), v8::internal::LiveEdit::GatherCompileInfo(), v8::internal::TypeFeedbackVector::GenericSentinel(), v8::internal::JSObject::GetAccessor(), v8::internal::MaterializedLiteral::GetBoilerplateValue(), v8::internal::GetDeclaredAccessorProperty(), v8::Function::GetDisplayName(), v8::internal::JSProxy::GetElementAttributeWithHandler(), v8::internal::JSObject::GetElementWithCallback(), v8::internal::JSObject::GetElementWithInterceptor(), v8::internal::Object::GetElementWithReceiver(), v8::internal::GetEnumPropertyKeys(), v8::internal::FunctionInfoWrapper::GetFeedbackVector(), v8::internal::GetFunctionArguments(), v8::internal::Compiler::GetFunctionFromEval(), v8::CpuProfileNode::GetFunctionName(), v8::internal::GetFunctionPrototype(), v8::internal::JSObject::GetHiddenPropertiesHashTable(), v8::Object::GetHiddenValue(), v8::internal::JSObject::GetIdentityHash(), v8::internal::DictionaryElementsAccessor::GetImpl(), v8::internal::JSReceiver::GetKeys(), v8::internal::MessageHandler::GetMessage(), v8::Debug::GetMirror(), v8::HeapGraphEdge::GetName(), v8::HeapGraphNode::GetName(), v8::internal::Script::GetNameOrSourceURL(), v8::internal::GetOldValue(), v8::internal::JSObject::GetOrCreateHiddenPropertiesHashtable(), v8::internal::JSObject::GetOrCreateIdentityHash(), v8::internal::GetOwnProperty(), v8::Object::GetOwnPropertyDescriptor(), v8::Object::GetOwnPropertyNames(), v8::internal::SloppyArgumentsElementsAccessor::GetParameterMapArg(), v8::internal::GetPrimitiveValue(), GetPromiseOnStackOnThrow(), v8::internal::Object::GetProperty(), v8::Object::GetPropertyNames(), v8::internal::Object::GetPropertyWithAccessor(), v8::internal::JSProxy::GetPropertyWithHandler(), v8::internal::JSObject::GetPropertyWithInterceptor(), v8::CpuProfileNode::GetScriptResourceName(), v8::internal::ScriptCache::GetScripts(), v8::internal::Debug::GetSourceBreakLocations(), v8::internal::SharedFunctionInfo::GetSourceCode(), GetSymbolRegistry(), v8::CpuProfile::GetTitle(), v8::HeapSnapshot::GetTitle(), v8::internal::CompileTimeValue::GetValue(), v8::GetWellKnownSymbol(), v8::internal::StoreGlobalStub::global_placeholder(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::handle(), v8::internal::HandleApiCallHelper(), v8::internal::HOptimizedGraphBuilder::HandleKeyedElementAccess(), v8::internal::CallIC::HandleMiss(), v8::internal::HOptimizedGraphBuilder::HandlePolymorphicCallNamed(), v8::internal::HOptimizedGraphBuilder::HandlePolymorphicNamedFieldAccess(), v8::internal::Scope::HasArgumentsParameter(), v8::internal::JSProxy::HasElementWithHandler(), v8::internal::Runtime::HasObjectProperty(), v8::internal::Oddball::Initialize(), v8::internal::Runtime::InitializeIntrinsicFunctionNames(), v8::internal::Script::InitLineEnds(), v8::internal::InstallBuiltin(), v8::internal::InstallFunction(), v8::internal::InstantiateAccessorComponent(), v8::internal::AstValue::Internalize(), v8::internal::LiteralBuffer::Internalize(), v8::internal::AstRawString::Internalize(), v8::internal::AstConsString::Internalize(), v8::internal::Invoke(), v8::internal::RegExpImpl::IrregexpExec(), v8::internal::Variable::is_possibly_eval(), IsErrorObject(), v8::internal::Accessors::IsJSObjectFieldAccessor(), v8::Value::IsPromise(), v8::internal::JSArray::IsReadOnlyLengthDescriptor(), v8::internal::IterateElements(), v8::internal::IterateExternalArrayElements(), v8::internal::Debug::Load(), v8::internal::LoadLookupSlotHelper(), v8::internal::CompilationCacheEval::Lookup(), v8::internal::CompilationCacheRegExp::Lookup(), v8::internal::CompilationCacheTable::Lookup(), v8::internal::PolymorphicCodeCache::Lookup(), v8::internal::CompilationCacheTable::LookupEval(), v8::internal::StringTable::LookupKey(), v8::internal::CompilationCacheTable::LookupRegExp(), v8::internal::StringTable::LookupStringIfExists(), v8::internal::StringTable::LookupTwoCharsStringIfExists(), v8::internal::Accessors::MakeAccessor(), v8::MakeAccessorInfo(), v8::internal::Debug::MakeBreakEvent(), v8::internal::CodeGenerator::MakeCodeEpilogue(), v8::internal::Debug::MakeCompileEvent(), v8::internal::Debug::MakeExceptionEvent(), v8::internal::Debug::MakeExecutionState(), v8::internal::MessageHandler::MakeMessageObject(), v8::internal::Accessors::MakeModuleExport(), v8::internal::MakeOrFindTwoCharacterString(), v8::internal::MaterializeArgumentsObject(), v8::internal::JSTypedArray::MaterializeArrayBuffer(), v8::internal::MaterializeBlockScope(), v8::internal::MaterializeCatchScope(), v8::internal::MaterializeClosure(), v8::internal::Deoptimizer::MaterializeHeapNumbersForDebuggerInspectableFrame(), v8::internal::Deoptimizer::MaterializeHeapObjects(), v8::internal::MaterializeLocalScope(), v8::internal::MaterializeModuleScope(), v8::internal::Deoptimizer::MaterializeNextHeapObject(), v8::internal::MaterializeScopeDetails(), MayNamedAccess(), v8::internal::TypeFeedbackVector::MegamorphicSentinel(), v8::internal::JSObject::MigrateFastToSlow(), v8::internal::JSObject::MigrateSlowToFast(), v8::internal::ModuleGetExport(), v8::internal::ModuleSetExport(), v8::NeanderObject::NeanderObject(), v8::DataView::New(), v8::TypeSwitch::New(), v8::ObjectTemplate::New(), v8::Object::New(), v8::Promise::Resolver::New(), v8::internal::NormalizedMapCache::New(), v8::Number::New(), v8::NumberObject::New(), v8::Signature::New(), v8::internal::HashTable< Derived, Shape, Key >::New(), v8::internal::DeoptimizationInputData::New(), v8::Array::New(), v8::internal::DeoptimizationOutputData::New(), v8::Integer::New(), v8::Symbol::New(), v8::Private::New(), v8::ArrayBuffer::New(), v8::External::New(), v8::NewExternalOneByteStringHandle(), v8::NewExternalStringHandle(), v8::Integer::NewFromUnsigned(), v8::internal::NewJSObjectWithNullProto(), v8::internal::NewSloppyArguments(), v8::internal::Object::NewStorageFor(), v8::internal::NewStrictArguments(), v8::anonymous_namespace{api.cc}::NewString(), v8::NewTypedArray(), v8::internal::Debug::NotifyMessageHandler(), v8::internal::Dictionary< UnseededNumberDictionary, UnseededNumberDictionaryShape, uint32_t >::NumberOfEnumElements(), v8::internal::CompilationInfo::object_wrapper(), v8::Object::ObjectProtoToString(), v8::internal::Debug::OnAfterCompile(), v8::internal::LiteralFixer::PatchLiterals(), v8::internal::CallIC::PatchMegamorphic(), v8::internal::PatchPositionsInCode(), v8::internal::PerformCompare(), v8::internal::TypeFeedbackVector::PremonomorphicSentinel(), v8::internal::JSObject::PrepareElementsForSort(), v8::anonymous_namespace{api.cc}::PrepareExternalArrayElements(), v8::internal::CompilationInfo::PrepareForCompilation(), v8::internal::JSObject::PrepareSlowElementsForSort(), v8::internal::JSObject::PreventExtensions(), PrintCurrentStackTrace(), v8::internal::Debug::ProcessDebugMessages(), v8::internal::Debug::PromiseHasRejectHandler(), v8::internal::Map::RawCopy(), v8::internal::JSArray::ReadOnlyLengthError(), v8::RegExpFlagsToString(), v8::Promise::Resolver::Reject(), v8::V8::RemoveMessageListeners(), v8::internal::LiveEdit::ReplaceFunctionCode(), ReportFailedAccessCheck(), v8::internal::MessageHandler::ReportMessage(), v8::Promise::Resolver::Resolve(), v8::internal::ResolveBuiltinIdHolder(), v8::internal::Scope::ResolveVariable(), RunMicrotasks(), v8::internal::Runtime_NewObjectHelper(), v8::internal::SearchRegExpMultiple(), v8::internal::FunctionInfoListener::SerializeFunctionScope(), v8::ObjectTemplate::SetAccessCheckCallbacks(), v8::internal::JSObject::SetAccessor(), v8::Object::SetAccessorProperty(), v8::internal::BreakPointInfo::SetBreakPoint(), v8::internal::DebugInfo::SetBreakPoint(), v8::ObjectTemplate::SetCallAsFunctionHandler(), v8::FunctionTemplate::SetCallHandler(), v8::Debug::SetDebugEventListener(), v8::internal::JSObject::SetDictionaryElement(), v8::internal::JSObject::SetElement(), v8::internal::JSArray::SetElementsLength(), v8::internal::JSObject::SetElementWithCallback(), v8::internal::JSObject::SetElementWithCallbackSetterInPrototypes(), v8::internal::JSProxy::SetElementWithHandler(), v8::internal::JSObject::SetElementWithoutInterceptor(), v8::internal::Debug::SetEventListener(), v8::internal::SetFunctionPrototype(), v8::internal::JSObject::SetHiddenPropertiesHashTable(), v8::internal::JSObject::SetHiddenProperty(), v8::Object::SetHiddenValue(), v8::internal::JSObject::SetIdentityHash(), v8::ObjectTemplate::SetIndexedPropertyHandler(), v8::internal::ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), v8::internal::DictionaryElementsAccessor::SetLengthWithoutNormalize(), v8::ObjectTemplate::SetNamedPropertyHandler(), v8::internal::JSProxy::SetPropertyViaPrototypesWithHandler(), v8::internal::anonymous_namespace{i18n.cc}::SetResolvedBreakIteratorSettings(), v8::internal::anonymous_namespace{i18n.cc}::SetResolvedCollatorSettings(), v8::internal::anonymous_namespace{i18n.cc}::SetResolvedDateSettings(), v8::internal::anonymous_namespace{i18n.cc}::SetResolvedNumberSettings(), v8::internal::Builtins::SetUp(), v8::internal::Runtime::SetupArrayBuffer(), v8::SetupArrayBufferView(), v8::internal::String::SlowFlatten(), StackOverflow(), StackTraceString(), v8::internal::StringReplaceGlobalAtomRegExpWithString(), v8::internal::StringReplaceGlobalRegExpWithEmptyString(), v8::internal::StringReplaceOneCharWithString(), v8::internal::HeapTypeConfig::struct_create(), v8::internal::JSObjectWalkVisitor< ContextObject >::StructureWalk(), v8::SymbolFor(), v8::TemplateSet(), v8::internal::Parser::ThrowPendingError(), v8::internal::ThrowRegExpException(), v8::internal::ArrayConcatVisitor::ToArray(), v8::Value::ToArrayIndex(), v8::Value::ToBoolean(), v8::internal::compiler::X64OperandConverter::ToImmediate64(), v8::internal::Object::ToObject(), v8::internal::ReplacementStringBuilder::ToString(), v8::internal::BinaryOpIC::Transition(), v8::internal::Map::TransitionToAccessorProperty(), v8::internal::SeqString::Truncate(), v8::internal::TryConvertKey(), v8::internal::HOptimizedGraphBuilder::TryInlineBuiltinMethodCall(), v8::internal::compiler::Typer::Typer(), v8::internal::IC::TypeToMap(), v8::internal::URIUnescape::UnescapeSlow(), v8::internal::TypeFeedbackVector::UninitializedSentinel(), v8::internal::BreakIterator::UnpackBreakIterator(), v8::internal::Collator::UnpackCollator(), v8::internal::DateFormat::UnpackDateFormat(), v8::internal::NumberFormat::UnpackNumberFormat(), v8::internal::Map::UpdateCodeCache(), v8::internal::compiler::AstGraphBuilder::VisitDeclarations(), v8::internal::HOptimizedGraphBuilder::VisitDeclarations(), v8::internal::Object::WrapForRead(), and v8::internal::WrapInJSValue().
|
private |
Definition at line 2214 of file isolate.cc.
References v8::internal::InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer(), and inner_pointer_to_code_cache().
Referenced by v8::internal::DeoptimizedFrameInfo::DeoptimizedFrameInfo(), v8::internal::Deoptimizer::FindOptimizedCode(), and v8::internal::StubFrame::unchecked_code().
|
private |
Definition at line 119 of file isolate.cc.
References v8::internal::ThreadId::Current(), DCHECK, v8::internal::Isolate::ThreadDataTable::Insert(), v8::internal::Isolate::ThreadDataTable::Lookup(), NULL, v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Pointer(), thread_data_table_, and thread_data_table_mutex_.
Referenced by v8::internal::ThreadManager::ArchiveThread(), and Enter().
Isolate::PerIsolateThreadData * v8::internal::Isolate::FindPerThreadDataForThisThread | ( | ) |
Definition at line 135 of file isolate.cc.
References v8::internal::ThreadId::Current(), and FindPerThreadDataForThread().
Referenced by v8::internal::ThreadManager::IsArchived(), and v8::internal::ThreadManager::RestoreThread().
Isolate::PerIsolateThreadData * v8::internal::Isolate::FindPerThreadDataForThread | ( | ThreadId | thread_id | ) |
Definition at line 141 of file isolate.cc.
References v8::internal::Isolate::ThreadDataTable::Lookup(), NULL, v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Pointer(), thread_data_table_, and thread_data_table_mutex_.
Referenced by FindPerThreadDataForThisThread().
void v8::internal::Isolate::FireCallCompletedCallback | ( | ) |
Definition at line 2265 of file isolate.cc.
References v8::internal::List< T, AllocationPolicy >::at(), call_completed_callbacks_, handle_scope_implementer(), and RunMicrotasks().
|
inline |
|
inline |
Definition at line 684 of file isolate.h.
References thread_local_top_.
Referenced by Deinit(), and v8::internal::ThreadManager::FreeThreadResources().
|
inline |
Definition at line 1078 of file isolate.h.
References function_entry_hook_.
Referenced by v8::internal::ProfileEntryHookStub::EntryHookTrampoline(), Init(), and set_function_entry_hook().
Address v8::internal::Isolate::get_address_from_id | ( | Isolate::AddressId | id | ) |
Definition at line 162 of file isolate.cc.
References id(), and isolate_addresses_.
Referenced by v8::internal::ExternalReferenceTable::PopulateTable().
Map * v8::internal::Isolate::get_initial_js_array_map | ( | ElementsKind | kind | ) |
Definition at line 2160 of file isolate.cc.
References context(), v8::internal::Context::native_context(), native_context(), and NULL.
Referenced by IsFastArrayConstructorPrototypeChainIntact().
Definition at line 1349 of file isolate.cc.
References v8::internal::Context::cast(), context(), v8::internal::StandardFrame::context(), debug_, v8::internal::Debug::debug_context(), v8::internal::Debug::in_debug_scope(), v8::internal::Context::native_context(), and v8::internal::Handle< T >::null().
Referenced by v8::Isolate::GetCallingContext().
CodeTracer * v8::internal::Isolate::GetCodeTracer | ( | ) |
Definition at line 2154 of file isolate.cc.
References NULL.
Referenced by v8::internal::RegExpCompiler::Assemble(), v8::internal::Deoptimizer::DeoptimizeAll(), v8::internal::Deoptimizer::DeoptimizeGlobalObject(), v8::internal::Deoptimizer::DeoptimizeMarkedCode(), v8::internal::Deoptimizer::DeoptimizeMarkedCodeForContext(), v8::internal::Deoptimizer::Deoptimizer(), v8::internal::CodeGenerator::PrintCode(), v8::internal::DependentCode::SetMarkedForDeoptimization(), and v8::internal::Builtins::SetUp().
|
inline |
Definition at line 994 of file isolate.h.
References DCHECK, embedder_data_, and v8::internal::Internals::kNumIsolateDataSlots.
HStatistics * v8::internal::Isolate::GetHStatistics | ( | ) |
Definition at line 2136 of file isolate.cc.
References NULL.
Referenced by v8::internal::OptimizedCompileJob::CreateGraph(), Deinit(), and v8::internal::OptimizedCompileJob::RecordOptimizationStats().
HTracer * v8::internal::Isolate::GetHTracer | ( | ) |
Definition at line 2148 of file isolate.cc.
References NULL.
Referenced by v8::internal::CodeStubGraphBuilderBase::BuildGraph(), and v8::internal::OptimizedCompileJob::CreateGraph().
MessageLocation v8::internal::Isolate::GetMessageLocation | ( | ) |
Definition at line 1226 of file isolate.cc.
References DCHECK, has_pending_exception(), heap(), and thread_local_top_.
Referenced by v8::internal::LiveEdit::GatherCompileInfo().
BasicBlockProfiler * v8::internal::Isolate::GetOrCreateBasicBlockProfiler | ( | ) |
Definition at line 2365 of file isolate.cc.
References basic_block_profiler_, and NULL.
Referenced by v8::internal::compiler::BasicBlockInstrumentor::Instrument().
Definition at line 1308 of file isolate.cc.
References factory(), handler(), NULL, and thread_local_top().
Referenced by v8::internal::Debug::OnThrow().
Definition at line 2228 of file isolate.cc.
References arraysize, v8::internal::Handle< T >::cast(), factory(), heap(), v8::internal::JS_OBJECT_TYPE, v8::internal::KEEP_INOBJECT_PROPERTIES, v8::internal::JSObject::kHeaderSize, map, name, v8::internal::JSObject::NormalizeProperties(), v8::internal::Object::SetProperty(), and v8::internal::STRICT.
Referenced by v8::Private::ForApi(), and v8::SymbolFor().
HStatistics * v8::internal::Isolate::GetTStatistics | ( | ) |
Definition at line 2142 of file isolate.cc.
References NULL.
Referenced by Deinit(), v8::internal::compiler::Pipeline::GenerateCode(), and v8::internal::compiler::PhaseStats::~PhaseStats().
Definition at line 1344 of file isolate.cc.
References context(), global_object(), and v8::internal::handle().
Referenced by v8::ScriptCompiler::Compile(), v8::ScriptCompiler::CompileUnbound(), and v8::ScriptCompiler::StartStreamingScript().
|
inline |
Definition at line 917 of file isolate.h.
References global_handles_.
Referenced by v8::internal::ScriptCache::Add(), v8::internal::MarkCompactCollector::AfterMarking(), v8::internal::NativeObjectsExplorer::FillImplicitReferences(), v8::internal::NativeObjectsExplorer::FillRetainedObjects(), v8::internal::Heap::GarbageCollectionEpilogue(), v8::V8::GlobalizeReference(), v8::internal::Heap::IterateStrongRoots(), v8::internal::Debug::Load(), v8::internal::MarkCompactCollector::MarkImplicitRefGroups(), v8::internal::MarkCompactCollector::MarkLiveObjects(), v8::internal::Heap::PerformGarbageCollection(), PopPromise(), v8::internal::MarkCompactCollector::ProcessEphemeralMarking(), PushPromise(), v8::internal::Heap::RecordStats(), v8::internal::Heap::Scavenge(), v8::internal::StartupSerializer::SerializeStrongReferences(), v8::internal::ArrayConcatVisitor::set_storage(), v8::internal::Debug::SetEventListener(), v8::Isolate::SetObjectGroupId(), v8::Isolate::SetReference(), v8::Isolate::SetReferenceFromGroup(), v8::internal::HeapProfiler::SetRetainedObjectInfo(), v8::internal::V8HeapExplorer::TagGlobalObjects(), v8::internal::Heap::TearDown(), v8::internal::AllocationTracker::UnresolvedLocation::UnresolvedLocation(), v8::V8::VisitHandlesForPartialDependence(), and v8::V8::VisitHandlesWithClassIds().
|
inline |
Definition at line 670 of file isolate.h.
References context().
Referenced by v8::internal::Debug::ClearMirrorCache(), global_context(), and v8::internal::Debug::MakeJSObject().
|
inline |
Definition at line 675 of file isolate.h.
References context(), and v8::internal::Context::global_proxy().
Referenced by v8::internal::Debug::CallEventCallback(), v8::Script::Run(), and v8::internal::Runtime_NewObjectHelper().
|
static |
Definition at line 1585 of file isolate.cc.
References NULL, and thread_data_table_.
Referenced by v8::internal::V8::TearDown().
|
inline |
Definition at line 899 of file isolate.h.
References handle_scope_data_.
Referenced by v8::internal::HandleScopeImplementer::BeginDeferredScope(), v8::internal::HandleScope::CloseAndEscape(), v8::internal::HandleScope::CloseScope(), v8::internal::HandleScope::CreateHandle(), v8::internal::HandleScope::current_level_address(), v8::internal::HandleScope::current_limit_address(), v8::internal::HandleScope::current_next_address(), v8::internal::DeferredHandleScope::DeferredHandleScope(), v8::internal::HandleScope::DeleteExtensions(), v8::internal::DeferredHandleScope::Detach(), v8::internal::HandleScope::Extend(), v8::internal::HandleScope::HandleScope(), v8::HandleScope::Initialize(), v8::internal::HandleScope::NumberOfHandles(), and v8::internal::DeferredHandleScope::~DeferredHandleScope().
|
inline |
Definition at line 901 of file isolate.h.
References DCHECK, and handle_scope_implementer_.
Referenced by v8::internal::HandleScope::DeleteExtensions(), v8::internal::Deserializer::Deserialize(), v8::internal::ThreadManager::EagerlyArchiveThread(), v8::Context::Enter(), v8::Context::Exit(), v8::internal::HandleScope::Extend(), FireCallCompletedCallback(), v8::internal::ThreadManager::FreeThreadResources(), v8::Isolate::GetEnteredContext(), v8::internal::Heap::IterateStrongRoots(), v8::internal::HandleScope::NumberOfHandles(), v8::internal::MarkCompactCollector::PrepareForCodeFlushing(), v8::internal::ThreadManager::RestoreThread(), v8::internal::StartupSerializer::SerializeStrongReferences(), and v8::Isolate::SuppressMicrotaskExecutionScope::SuppressMicrotaskExecutionScope().
|
inlinestatic |
Definition at line 650 of file isolate.h.
Referenced by CancelScheduledExceptionFromTryCatch(), GetPromiseOnStackOnThrow(), v8::internal::TickSample::Init(), IsFinallyOnTop(), v8::internal::SafeStackFrameIterator::IsValidTop(), PropagatePendingExceptionToExternalTryCatch(), PushPromise(), v8::internal::StackFrameIterator::Reset(), RestorePendingMessageFromTryCatch(), and ShouldReportException().
|
inline |
|
inline |
Definition at line 953 of file isolate.h.
References has_installed_extensions_.
Referenced by v8::internal::StartupSerializer::SerializeStrongReferences().
|
inline |
Definition at line 581 of file isolate.h.
References DCHECK, and thread_local_top_.
Referenced by CancelTerminateExecution(), v8::internal::Debug::CompileDebuggerScript(), v8::internal::CompileUnoptimizedCode(), DoThrow(), v8::internal::NativeRegExpMacroAssembler::Execute(), v8::internal::ThreadManager::FreeThreadResources(), v8::internal::LiveEdit::GatherCompileInfo(), v8::internal::Compiler::GetDebugCode(), GetMessageLocation(), v8::internal::Compiler::GetOptimizedCode(), v8::internal::GetOptimizedCodeNow(), v8::internal::GetOwnProperty(), HasExternalTryCatch(), v8::internal::Invoke(), v8::internal::RegExpImpl::IrregexpExec(), v8::internal::RegExpImpl::IrregexpExecRaw(), v8::internal::LoadLookupSlotHelper(), v8::internal::Context::Lookup(), v8::internal::FullCodeGenerator::MakeCode(), OptionalRescheduleException(), pending_exception(), PropagatePendingExceptionToExternalTryCatch(), v8::internal::MessageHandler::ReportMessage(), ReportPendingMessages(), v8::internal::ScopeIterator::RetrieveScopeChain(), ScheduleThrow(), v8::internal::HOptimizedGraphBuilder::TryInline(), and v8::internal::UnscopableLookup().
|
inline |
|
inline |
Definition at line 627 of file isolate.h.
References DCHECK, heap_, and thread_local_top_.
Referenced by v8::internal::Debug::CallEventCallback(), CancelScheduledExceptionFromTryCatch(), CancelTerminateExecution(), v8::IsExecutionTerminatingCheck(), v8::internal::Debug::OnThrow(), v8::internal::MessageHandler::ReportMessage(), and scheduled_exception().
bool v8::internal::Isolate::HasExternalTryCatch | ( | ) |
Definition at line 1157 of file isolate.cc.
References DCHECK, has_pending_exception(), NULL, thread_local_top(), and try_catch_handler().
Referenced by PropagatePendingExceptionToExternalTryCatch().
|
inline |
Definition at line 873 of file isolate.h.
References heap_.
Referenced by v8::Isolate::AddGCEpilogueCallback(), v8::V8::AddGCEpilogueCallback(), v8::Isolate::AddGCPrologueCallback(), v8::V8::AddGCPrologueCallback(), v8::V8::AddMessageListener(), v8::internal::SharedFunctionInfo::AddToOptimizedCodeMap(), v8::internal::AddToWeakNativeContextList(), v8::internal::AddWeakObjectToCodeDependency(), v8::internal::PrototypeIterator::Advance(), v8::internal::CompilationSubCache::Age(), v8::internal::Deserializer::Allocate(), v8::internal::OrderedHashTable< Derived, Iterator, entrysize >::Allocate(), v8::internal::MemoryAllocator::AllocateChunk(), v8::internal::MemoryAllocator::AllocateLargePage(), v8::internal::MemoryAllocator::AllocatePage(), v8::Context::AllowCodeGenerationFromStrings(), v8::internal::BackgroundParsingTask::BackgroundParsingTask(), v8::internal::Debug::Break(), v8::internal::CodeStubGraphBuilder< Stub >::BuildCodeInitializedStub(), v8::internal::HOptimizedGraphBuilder::BuildFastLiteral(), CancelScheduledExceptionFromTryCatch(), v8::internal::LiveEdit::ChangeScriptSource(), v8::Date::CheckCast(), v8::NumberObject::CheckCast(), v8::BooleanObject::CheckCast(), v8::StringObject::CheckCast(), v8::SymbolObject::CheckCast(), v8::internal::StubCache::Clear(), v8::internal::BreakPointInfo::ClearBreakPoint(), v8::internal::ConstantPoolArray::ClearPtrEntries(), v8::internal::CompileGlobalEval(), v8::internal::Compiler::CompileScript(), v8::internal::PropertyICCompiler::ComputeCompareNil(), v8::internal::ComputeReceiverForNonGlobal(), v8::internal::ConstantIsObject(), v8::Isolate::ContextDisposedNotification(), v8::internal::CopyObjectToObjectElements(), v8::internal::EternalHandles::Create(), v8::internal::GlobalHandles::Create(), v8::internal::Runtime::CreateArrayLiteralBoilerplate(), v8::CreateEnvironment(), v8::internal::CreateObjectLiteralBoilerplate(), v8::internal::DeclareGlobals(), v8::internal::JSObject::DefineAccessor(), v8::internal::JSObject::DeleteNormalizedProperty(), v8::internal::Deoptimizer::DeoptimizeAll(), v8::internal::Deoptimizer::DeoptimizeMarkedCode(), v8::internal::Deoptimizer::DeoptimizeMarkedCodeForContext(), v8::internal::Deserializer::Deserialize(), v8::internal::Deserializer::DeserializePartial(), v8::internal::Deoptimizer::DoComputeAccessorStubFrame(), v8::internal::Deoptimizer::DoComputeArgumentsAdaptorFrame(), v8::internal::Deoptimizer::DoComputeCompiledStubFrame(), v8::internal::Deoptimizer::DoComputeConstructStubFrame(), v8::internal::Deoptimizer::DoComputeJSFrame(), v8::internal::JSDate::DoGetField(), v8::internal::Deoptimizer::DoTranslateCommand(), v8::internal::Deoptimizer::DoTranslateObject(), v8::DumpHeapConstants(), v8::internal::ScopeInfo::Empty(), EnqueueMicrotask(), v8::internal::HashTable< Derived, Shape, Key >::EnsureCapacity(), v8::internal::EnsureJSArrayWithWritableFastElements(), v8::internal::MaterializedObjectStore::EnsureStackEntries(), v8::internal::JSObject::EnsureWritableFastElements(), v8::EscapableHandleScope::EscapableHandleScope(), v8::internal::CodeFlusher::EvictCandidate(), v8::internal::CodeFlusher::EvictOptimizedCodeMap(), v8::internal::ExternalizeStringExtension::Externalize(), v8::internal::FillCache(), v8::internal::NativeObjectsExplorer::FillRetainedObjects(), v8::internal::LiveEdit::FindActiveGenerators(), v8::internal::HashTable< Derived, Shape, Key >::FindEntry(), v8::internal::NativeObjectsExplorer::FindOrAddGroupInfo(), v8::internal::PropertyICCompiler::FindPreMonomorphic(), v8::internal::Debug::FindSharedFunctionInfoInScript(), v8::internal::Deserializer::FlushICacheForNewCodeObjects(), v8::internal::MemoryAllocator::Free(), v8::internal::Heap::FreeQueuedChunks(), v8::internal::JSObject::Freeze(), v8::internal::FunctionCallbackArguments::FunctionCallbackArguments(), v8::internal::InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer(), v8::internal::GetAccessCheckInfo(), v8::internal::StatisticsExtension::GetCounters(), v8::internal::Deoptimizer::GetDeoptimizedCodeCount(), v8::internal::Object::GetElementWithReceiver(), v8::internal::GetEnumPropertyKeys(), v8::internal::GetFunctionArguments(), v8::internal::Compiler::GetFunctionFromEval(), v8::Isolate::GetHeapStatistics(), v8::internal::JSObject::GetIdentityHash(), v8::internal::GetLiteralAllocationSite(), v8::internal::Debug::GetLoadedScripts(), GetMessageLocation(), v8::internal::GetOwnProperty(), v8::internal::Object::GetRootMap(), v8::internal::Debug::GetSourceBreakLocations(), GetSymbolRegistry(), v8::internal::JSDate::GetUTCField(), v8::internal::HandleApiCallAsFunctionOrConstructor(), v8::internal::HandleApiCallHelper(), v8::internal::Map::has_code_cache(), v8::internal::HasOwnPropertyImplementation(), v8::internal::GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), v8::Isolate::IdleNotification(), Init(), v8::internal::BASE_EMBEDDED< Visitor >::Initialize(), v8::internal::Script::InitLineEnds(), v8::internal::PromotionQueue::insert(), v8::internal::IC::InvalidateMaps(), is_catchable_by_javascript(), v8::IsExecutionTerminatingCheck(), IsFastArrayConstructorPrototypeChainIntact(), v8::internal::IsFastLiteral(), v8::internal::StringTracker::IsFreshUnusedString(), v8::internal::IsInlined(), v8::internal::Heap::isolate(), v8::internal::SerializerDeserializer::Iterate(), v8::internal::CompilationSubCache::IterateFunctions(), v8::internal::GlobalHandles::IterateObjectGroups(), v8::internal::CodeFlusher::IteratePointersToFromSpace(), v8::internal::LoadLookupSlotHelper(), v8::internal::Logger::LogAccessorCallbacks(), v8::internal::Logger::LogCodeObjects(), v8::internal::Logger::LogCompiledFunctions(), v8::internal::Logger::LogExistingFunction(), v8::internal::StringTable::LookupTwoCharsStringIfExists(), v8::Isolate::LowMemoryNotification(), main(), v8::internal::CodeGenerator::MakeCodeEpilogue(), v8::String::MakeExternal(), v8::internal::JSTypedArray::MaterializeArrayBuffer(), v8::internal::Deoptimizer::MaterializeNextValue(), v8::internal::MaterializeStackLocalsWithFrameInspector(), v8::internal::JSObject::MigrateFastToSlow(), v8::internal::JSObject::MigrateSlowToFast(), v8::BooleanObject::New(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::New(), v8::String::NewExternal(), v8::internal::NewSloppyArguments(), v8::internal::JSObject::NormalizeElements(), v8::internal::Parser::Parse(), v8::internal::GlobalHandles::PostGarbageCollectionProcessing(), v8::internal::JSObject::PrepareElementsForSort(), v8::internal::Debug::PrepareForBreakPoints(), v8::internal::CodeFlusher::ProcessJSFunctionCandidates(), v8::internal::CodeFlusher::ProcessOptimizedCodeMaps(), v8::internal::CodeFlusher::ProcessSharedFunctionInfoCandidates(), PropagatePendingExceptionToExternalTryCatch(), v8::internal::PropertyCallbackArguments::PropertyCallbackArguments(), v8::internal::Deserializer::ReadChunk(), v8::internal::Deserializer::ReadObject(), v8::internal::RecordFunctionCompilation(), v8::internal::StringTracker::RecordWrite(), v8::internal::IncrementalMarking::RecordWriteFromCode(), v8::internal::Deserializer::RelinkAllocationSite(), v8::internal::Debug::RemoveDebugInfo(), v8::Isolate::RemoveGCEpilogueCallback(), v8::V8::RemoveGCEpilogueCallback(), v8::Isolate::RemoveGCPrologueCallback(), v8::V8::RemoveGCPrologueCallback(), v8::V8::RemoveMessageListeners(), v8::internal::MessageHandler::ReportMessage(), ReportPendingMessages(), v8::internal::JSObject::ResetElements(), ReThrow(), v8::internal::Serializer::RootIndex(), RunMicrotasks(), v8::internal::Heap::ScavengeObject(), v8::internal::Heap::ScavengeObjectSlow(), v8::internal::ScopeIterator::ScopeIterator(), v8::internal::ScriptCache::ScriptCache(), v8::internal::SearchRegExpMultiple(), v8::internal::StartupSerializer::SerializeStrongReferences(), v8::internal::StartupSerializer::SerializeWeakReferences(), v8::internal::DebugInfo::SetBreakPoint(), v8::internal::JSObject::SetDictionaryElement(), v8::internal::JSObject::SetFastElement(), v8::internal::JSFunction::SetInstancePrototype(), v8::internal::FastElementsAccessor< FastElementsAccessorSubclass, KindTraits >::SetLengthWithoutNormalize(), v8::internal::JSObject::SetObserved(), v8::internal::JSObject::SetPrototype(), v8::SetResourceConstraints(), v8::internal::Runtime::SetupArrayBuffer(), v8::internal::JSDate::SetValue(), v8::internal::PartialSerializer::ShouldBeInThePartialSnapshotCache(), v8::internal::Serializer::ShouldBeSkipped(), v8::internal::HashTable< Derived, Shape, Key >::Shrink(), v8::internal::String::SlowFlatten(), StackOverflow(), v8::internal::CpuProfiler::StartProcessorIfNotStarted(), v8::internal::StoreBuffer::StoreBufferOverflow(), v8::internal::StoreToSuper(), v8::internal::StringReplaceGlobalRegExpWithEmptyString(), v8::internal::StringReplaceGlobalRegExpWithString(), v8::internal::JSObjectWalkVisitor< ContextObject >::StructureWalk(), v8::internal::OptimizedFrame::Summarize(), v8::internal::Logger::SuspectReadEvent(), TerminateExecution(), Throw(), v8::Isolate::ThrowException(), v8::internal::ThrowReferenceError(), v8::internal::JSObject::TransitionElementsKind(), v8::internal::TypeOfString(), v8::internal::EntryFrame::unchecked_code(), v8::internal::EntryConstructFrame::unchecked_code(), v8::internal::FastElementsAccessor< FastElementsAccessorSubclass, KindTraits >::ValidateContents(), v8::internal::Deoptimizer::VisitAllOptimizedFunctions(), v8::V8::VisitExternalResources(), v8::internal::VerifyPointersVisitor::VisitPointers(), and v8::internal::Serializer::VisitPointers().
|
inline |
Definition at line 972 of file isolate.h.
References heap_profiler_.
Referenced by v8::HeapSnapshot::Delete(), v8::internal::Heap::OnAllocationEvent(), v8::internal::Heap::OnMoveEvent(), v8::internal::Heap::RightTrimFixedArray(), v8::internal::Heap::SelectScavengingVisitorsTable(), and v8::internal::NativeObjectsExplorer::VisitSubtreeWrapper().
|
inline |
Definition at line 1071 of file isolate.h.
References id_.
Referenced by get_address_from_id(), and NextOptimizationId().
bool v8::internal::Isolate::Init | ( | Deserializer * | des | ) |
Definition at line 1828 of file isolate.cc.
References v8::internal::Heap::amount_of_external_allocated_memory_, v8::internal::Heap::amount_of_external_allocated_memory_at_last_global_gc_, ASSIGN_ELEMENT, bootstrapper_, builtins_, call_descriptor_data_, CHECK_EQ, clear_pending_exception(), clear_pending_message(), clear_scheduled_exception(), code_aging_helper_, code_range_, compilation_cache_, context_slot_cache_, cpu_profiler_, v8::internal::Heap::CreateHeapObjects(), date_cache_, DCHECK, v8::internal::Logger::DefaultTimerEventsLogger(), deoptimizer_data_, descriptor_lookup_cache_, v8::internal::Deserializer::Deserialize(), embedder_data_, v8::internal::Logger::EmptyTimerEventsLogger(), v8::internal::OptimizingCompilerThread::Enabled(), v8::internal::Deoptimizer::EnsureCodeForDeoptimizationEntry(), eternal_handles_, ExecutionAccess, v8::internal::V8::FatalProcessOutOfMemory(), FOR_EACH_ISOLATE_ADDRESS_NAME, function_entry_hook(), v8::internal::StubFailureTrampolineStub::GenerateAheadOfTime(), v8::internal::StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(), global_handles_, handle_scope_implementer_, HandleScopeImplementer, has_fatal_error_, v8::internal::Heap::HasBeenSetUp(), heap(), heap_, heap_profiler_, v8::internal::StubCache::Initialize(), INITIALIZED, initialized_from_snapshot_, InitializeThreadLocal(), inner_pointer_to_code_cache_, v8::internal::Logger::is_logging_code_events(), v8::internal::StringTracker::isolate_, v8::internal::RegExpStack::isolate_, v8::internal::Internals::kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset, v8::internal::Internals::kAmountOfExternalAllocatedMemoryOffset, v8::internal::kDeoptTableSerializeEntryCount, keyed_lookup_cache_, v8::internal::Internals::kIsolateEmbedderDataOffset, v8::internal::Internals::kIsolateRootsOffset, v8::internal::Deoptimizer::LAZY, LOG, logger_, materialized_object_store_, v8::internal::Max(), memory_allocator_, v8::internal::Min(), NULL, num_sweeper_threads_, v8::internal::CallDescriptors::NUMBER_OF_DESCRIPTORS, v8::internal::SweeperThread::NumberOfThreads(), OFFSET_OF, optimizing_compiler_thread_, OptimizingCompilerThread, v8::internal::PrintF(), PushToPartialSnapshotCache(), v8::internal::Assembler::QuietNaN(), regexp_stack_, v8::internal::Heap::roots_, runtime_profiler_, serializer_enabled(), v8::internal::Heap::SetStackLimits(), v8::internal::Heap::SetUp(), v8::internal::Logger::SetUp(), v8::internal::Builtins::SetUp(), stack_guard_, v8::base::Thread::Start(), state_, stress_deopt_count_, string_tracker_, stub_cache_, sweeper_thread_, SweeperThread, time_millis_at_init_, v8::base::OS::TimeCurrentMillis(), TRACE_ISOLATE, unicode_cache_, and write_iterator_.
Referenced by v8::internal::Snapshot::Initialize(), and v8::Isolate::New().
|
inline |
void v8::internal::Isolate::InitializeLoggingAndCounters | ( | ) |
Definition at line 1818 of file isolate.cc.
References counters_, logger_, and NULL.
Referenced by v8::internal::Serializer::InitializeCodeAddressMap(), Isolate(), v8::Isolate::New(), PrintStack(), v8::Isolate::SetCounterFunction(), v8::Isolate::SetCreateHistogramFunction(), and v8::Isolate::SetJitCodeEventHandler().
|
static |
Definition at line 152 of file isolate.cc.
References CHECK, v8::base::Thread::CreateThreadLocalKey(), isolate_key_, NULL, per_isolate_thread_data_key_, v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Pointer(), thread_data_table_, thread_data_table_mutex_, and thread_id_key_.
Referenced by v8::internal::V8::InitializeOncePerProcessImpl().
|
private |
Definition at line 1771 of file isolate.cc.
References thread_local_top_.
Referenced by ArchiveThread(), and Init().
|
inline |
Definition at line 480 of file isolate.h.
References DCHECK, v8::base::Thread::GetExistingThreadLocal(), isolate_key_, and NULL.
|
inline |
Definition at line 487 of file isolate.h.
References v8::base::Thread::GetThreadLocal(), and isolate_key_.
|
inline |
Definition at line 494 of file isolate.h.
References v8::base::Thread::GetThreadLocal(), and isolate_key_.
|
inline |
Definition at line 911 of file isolate.h.
References inner_pointer_to_code_cache_.
Referenced by v8::internal::MarkCompactCollector::EvacuateNewSpaceAndCandidates(), FindCodeObject(), v8::internal::OptimizedFrame::GetDeoptimizationData(), v8::internal::IC::OnTypeFeedbackChanged(), v8::internal::MarkCompactCollector::RecordCodeTargetPatch(), and v8::internal::IncrementalMarking::RecordCodeTargetPatch().
|
inline |
Definition at line 963 of file isolate.h.
References interp_canonicalize_mapping_.
Referenced by v8::internal::RawMatch().
void v8::internal::Isolate::InvokeApiInterruptCallback | ( | ) |
|
inline |
Definition at line 1009 of file isolate.h.
References has_fatal_error_.
Referenced by v8::V8::IsDead().
Definition at line 981 of file isolate.cc.
References factory(), v8::internal::Object::GetProperty(), v8::internal::PrototypeIterator::IsAtEnd(), js_builtins_object(), v8::internal::PrototypeIterator::START_AT_RECEIVER, and STATIC_CHAR_VECTOR.
Referenced by DoThrow().
bool v8::internal::Isolate::IsFastArrayConstructorPrototypeChainIntact | ( | ) |
Definition at line 2181 of file isolate.cc.
References v8::internal::PrototypeIterator::Advance(), DCHECK, get_initial_js_array_map(), v8::internal::PrototypeIterator::GetCurrent(), v8::internal::GetInitialFastElementsKind(), heap(), v8::internal::PrototypeIterator::IsAtEnd(), and NULL.
bool v8::internal::Isolate::IsFinallyOnTop | ( | ) |
Definition at line 1165 of file isolate.cc.
References DCHECK, handler(), NULL, and thread_local_top().
Referenced by PropagatePendingExceptionToExternalTryCatch().
|
inline |
Definition at line 508 of file isolate.h.
References INITIALIZED, and state_.
Referenced by v8::Debug::Call(), v8::Date::DateTimeConfigurationChangeNotification(), v8::Isolate::GetHeapStatistics(), v8::Debug::GetMirror(), v8::internal::TickSample::Init(), v8::Locker::Initialize(), v8::IsExecutionTerminatingCheck(), v8::Number::New(), v8::Integer::New(), v8::Integer::NewFromUnsigned(), PrintStack(), v8::internal::SamplerThread::Run(), v8::internal::IncrementalMarking::Start(), and v8::internal::IncrementalMarking::WorthActivating().
|
inline |
Definition at line 511 of file isolate.h.
References entry_stack_, and NULL.
Referenced by v8::Isolate::Dispose().
|
inlinestatic |
Definition at line 531 of file isolate.h.
References isolate_key_.
void v8::internal::Isolate::Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 206 of file isolate.cc.
References thread_local_top().
Referenced by v8::internal::ThreadManager::Iterate(), Iterate(), and v8::internal::Heap::IterateStrongRoots().
char * v8::internal::Isolate::Iterate | ( | ObjectVisitor * | v, |
char * | t | ||
) |
Definition at line 167 of file isolate.cc.
References Iterate().
void v8::internal::Isolate::Iterate | ( | ObjectVisitor * | v, |
ThreadLocalTop * | t | ||
) |
Definition at line 180 of file isolate.cc.
References v8::internal::StackFrameIterator::Advance(), and NULL.
void v8::internal::Isolate::IterateDeferredHandles | ( | ObjectVisitor * | visitor | ) |
Definition at line 212 of file isolate.cc.
References deferred_handles_head_, and NULL.
Referenced by v8::internal::Heap::IterateStrongRoots().
void v8::internal::Isolate::IterateThread | ( | ThreadVisitor * | v, |
char * | t | ||
) |
Definition at line 174 of file isolate.cc.
References v8::internal::ThreadVisitor::VisitThread().
Referenced by v8::internal::ThreadManager::IterateArchivedThreads().
|
inline |
Definition at line 679 of file isolate.h.
References thread_local_top_.
Referenced by v8::CallV8HeapFunction(), CaptureSimpleStackTrace(), v8::internal::Debug::CheckBreakPoint(), v8::CheckConstructor(), v8::internal::MessageHandler::GetMessage(), IsErrorObject(), v8::internal::Debug::OnAfterCompile(), v8::internal::Debug::PromiseHasRejectHandler(), StackOverflow(), and v8::internal::BinaryOpIC::Transition().
|
inline |
Definition at line 658 of file isolate.h.
References thread_local_top_.
Referenced by v8::internal::TickSample::Init(), and v8::CpuProfiler::SetIdle().
|
inline |
Definition at line 661 of file isolate.h.
References thread_local_top_.
|
inline |
Definition at line 929 of file isolate.h.
References jsregexp_canonrange_.
Referenced by v8::internal::CharacterRange::AddCaseEquivalents().
|
inline |
Definition at line 925 of file isolate.h.
References jsregexp_uncanonicalize_.
Referenced by v8::internal::CharacterRange::AddCaseEquivalents(), and v8::internal::GetCaseIndependentLetters().
|
inline |
Definition at line 887 of file isolate.h.
References keyed_lookup_cache_.
Referenced by v8::internal::Heap::CreateInitialObjects(), and v8::internal::Heap::MarkCompactPrologue().
void v8::internal::Isolate::LinkDeferredHandles | ( | DeferredHandles * | deferred_handles | ) |
Definition at line 2106 of file isolate.cc.
References deferred_handles_head_, v8::internal::DeferredHandles::next_, NULL, and v8::internal::DeferredHandles::previous_.
Referenced by v8::internal::DeferredHandles::DeferredHandles().
|
inline |
Definition at line 866 of file isolate.h.
References DCHECK, logger_, and NULL.
Referenced by v8::internal::CodeAddressMap::CodeAddressMap(), v8::internal::Profiler::Disengage(), v8::internal::Profiler::Engage(), v8::internal::Debug::EnqueueCommandMessage(), v8::Isolate::New(), v8::internal::Debug::NotifyMessageHandler(), v8::internal::Heap::OnMoveEvent(), v8::internal::RecordFunctionCompilation(), v8::internal::Heap::SelectScavengingVisitorsTable(), v8::Isolate::SetJitCodeEventHandler(), v8::internal::CpuProfiler::StartProcessorIfNotStarted(), v8::internal::CpuProfiler::StopProcessor(), and v8::internal::CodeAddressMap::~CodeAddressMap().
|
private |
|
private |
|
inline |
Definition at line 879 of file isolate.h.
References materialized_object_store_.
Referenced by v8::internal::Deoptimizer::MaterializeHeapObjects().
bool v8::internal::Isolate::MayIndexedAccess | ( | Handle< JSObject > | receiver, |
uint32_t | index, | ||
v8::AccessType | type | ||
) |
Definition at line 736 of file isolate.cc.
References context(), DCHECK, v8::internal::GetAccessCheckInfo(), v8::internal::handle(), LOG, v8::internal::MayAccessPreCheck(), v8::Utils::ToLocal(), v8::internal::UNKNOWN, and v8::internal::YES.
Referenced by v8::internal::JSObject::DeleteElement(), v8::internal::JSObject::GetElementAttributeWithReceiver(), v8::internal::Object::GetElementWithReceiver(), v8::internal::JSObject::HasRealElementProperty(), and v8::internal::JSObject::SetElement().
bool v8::internal::Isolate::MayNamedAccess | ( | Handle< JSObject > | receiver, |
Handle< Object > | key, | ||
v8::AccessType | type | ||
) |
Definition at line 697 of file isolate.cc.
References context(), DCHECK, factory(), v8::internal::GetAccessCheckInfo(), v8::internal::handle(), LOG, v8::internal::MayAccessPreCheck(), v8::Utils::ToLocal(), v8::internal::UNKNOWN, and v8::internal::YES.
Referenced by v8::internal::JSObject::DefineAccessor(), v8::internal::JSObject::Freeze(), v8::internal::JSObject::GetAccessor(), v8::internal::JSReceiver::GetKeys(), v8::internal::JSObject::PreventExtensions(), v8::internal::JSObject::SetAccessor(), and v8::internal::StoreToSuper().
|
inline |
Definition at line 883 of file isolate.h.
References memory_allocator_.
Referenced by v8::V8::AddMemoryAllocationCallback(), v8::internal::LargeObjectSpace::AllocateRaw(), v8::internal::CodeRange::AllocateRawMemory(), v8::internal::RegExpCompiler::Assemble(), v8::internal::MemoryChunk::CommitArea(), v8::internal::CodeRange::CommitRawMemory(), v8::internal::Heap::CommittedMemoryExecutable(), v8::internal::Heap::Contains(), v8::internal::PagedSpace::CreateEmergencyMemory(), v8::internal::PagedSpace::Expand(), v8::internal::PagedSpace::FreeEmergencyMemory(), v8::internal::Heap::FreeQueuedChunks(), v8::internal::LargeObjectSpace::FreeUnmarkedObjects(), v8::internal::StatisticsExtension::GetCounters(), v8::internal::Heap::InSpace(), v8::internal::PagedSpace::PagedSpace(), v8::internal::Heap::PrintShortHeapStatistics(), v8::internal::Heap::RecordStats(), v8::internal::PagedSpace::ReleasePage(), v8::V8::RemoveMemoryAllocationCallback(), v8::internal::Heap::SelectGarbageCollector(), v8::internal::Heap::SetUp(), v8::internal::NewSpace::SetUp(), v8::internal::SemiSpace::ShrinkTo(), v8::internal::Serializer::SpaceAreaSize(), v8::internal::GCTracer::Start(), v8::internal::GCTracer::Stop(), v8::internal::Heap::TearDown(), v8::internal::PagedSpace::TearDown(), v8::internal::NewSpace::TearDown(), and v8::internal::LargeObjectSpace::TearDown().
Definition at line 1339 of file isolate.cc.
References context(), and v8::internal::handle().
Referenced by v8::internal::CallJsBuiltin(), v8::internal::Debug::CompileDebuggerScript(), v8::internal::CompileToplevel(), get_initial_js_array_map(), v8::internal::IC::GetHandlerCacheHolder(), v8::internal::IC::GetICCacheHolder(), v8::internal::AstValue::Internalize(), v8::internal::Map::Normalize(), v8::internal::TypedArrayMap(), and v8::internal::UnscopableLookup().
|
inlinestatic |
|
inline |
Definition at line 1090 of file isolate.h.
References id(), v8::internal::Smi::IsValid(), and next_optimization_id_.
Referenced by v8::internal::CompilationInfo::SetOptimizing().
v8::internal::Isolate::NO_INLINE | ( | void | PushStackTraceAndDieunsigned int magic, Object *object, Map *map, unsigned int magic2 | ) |
|
inline |
Definition at line 949 of file isolate.h.
References has_installed_extensions_.
|
inline |
Definition at line 1063 of file isolate.h.
References num_sweeper_threads_.
Referenced by v8::internal::MarkCompactCollector::EnsureSweepingCompleted(), v8::internal::MarkCompactCollector::IsSweepingCompleted(), and v8::internal::MarkCompactCollector::StartSweeperThreads().
|
inline |
Definition at line 933 of file isolate.h.
References objects_string_compare_iterator_a_.
Referenced by v8::internal::String::SlowEquals().
|
inline |
Definition at line 937 of file isolate.h.
References objects_string_compare_iterator_b_.
Referenced by v8::internal::String::SlowEquals().
|
inline |
Definition at line 941 of file isolate.h.
References objects_string_iterator_.
Referenced by v8::internal::String::ToCString(), and v8::internal::String::ToWideCString().
|
inline |
Definition at line 1059 of file isolate.h.
References optimizing_compiler_thread_.
Referenced by v8::internal::Heap::CollectAllAvailableGarbage(), v8::internal::Heap::GarbageCollectionPrologue(), v8::internal::GetOptimizedCodeLater(), v8::internal::Heap::NotifyContextDisposed(), v8::internal::RuntimeProfiler::Optimize(), and v8::internal::Debug::PrepareForBreakPoints().
Definition at line 1244 of file isolate.cc.
References clear_pending_exception(), DCHECK, has_pending_exception(), heap_, NULL, pending_exception(), PropagatePendingExceptionToExternalTryCatch(), thread_local_top(), and try_catch_handler_address().
Referenced by v8::internal::ModuleGetExport(), and v8::internal::ModuleSetExport().
|
inline |
Definition at line 561 of file isolate.h.
References DCHECK, has_pending_exception(), and thread_local_top_.
Referenced by CancelTerminateExecution(), v8::internal::LiveEdit::GatherCompileInfo(), OptionalRescheduleException(), PropagatePendingExceptionToExternalTryCatch(), v8::internal::MessageHandler::ReportMessage(), and ScheduleThrow().
|
inline |
Definition at line 577 of file isolate.h.
References thread_local_top_.
|
inline |
Definition at line 609 of file isolate.h.
References thread_local_top_.
|
inline |
Definition at line 617 of file isolate.h.
References thread_local_top_.
|
static |
void v8::internal::Isolate::PopPromise | ( | ) |
Definition at line 1297 of file isolate.cc.
References v8::internal::GlobalHandles::Destroy(), global_handles(), NULL, v8::internal::PromiseOnStack::prev(), and thread_local_top().
void v8::internal::Isolate::PrintCurrentStackTrace | ( | FILE * | out | ) |
Definition at line 904 of file isolate.cc.
References v8::internal::StackTraceFrameIterator::Advance(), factory(), v8::internal::Smi::FromInt(), v8::internal::JavaScriptFrame::function(), v8::internal::PrintF(), and v8::internal::JavaScriptFrame::receiver().
Referenced by DoThrow(), and v8::Message::PrintCurrentStackTrace().
void v8::internal::Isolate::PrintStack | ( | FILE * | out | ) |
Definition at line 553 of file isolate.cc.
References incomplete_message_, InitializeLoggingAndCounters(), NULL, v8::base::OS::PrintError(), PrintStack(), and stack_trace_nesting_level_.
void v8::internal::Isolate::PrintStack | ( | StringStream * | accumulator | ) |
Definition at line 587 of file isolate.cc.
References c_entry_fp(), DCHECK, IsInitialized(), v8::internal::PrintFrames(), and thread_local_top().
Referenced by PrintStack(), StackTraceString(), and ThrowIllegalOperation().
Object * v8::internal::Isolate::PromoteScheduledException | ( | ) |
Definition at line 896 of file isolate.cc.
References clear_scheduled_exception(), ReThrow(), and scheduled_exception().
|
private |
Definition at line 1777 of file isolate.cc.
References v8::TryCatch::can_continue_, DCHECK, v8::TryCatch::exception_, handler(), has_pending_exception(), v8::TryCatch::has_terminated_, HasExternalTryCatch(), heap(), is_catchable_by_javascript(), IsFinallyOnTop(), pending_exception(), thread_local_top_, and try_catch_handler().
Referenced by OptionalRescheduleException(), ReportPendingMessages(), and ScheduleThrow().
Definition at line 1287 of file isolate.cc.
References v8::internal::Handle< T >::cast(), global_handles(), handler(), and thread_local_top().
void v8::internal::Isolate::PushToPartialSnapshotCache | ( | Object * | obj | ) |
Definition at line 1656 of file isolate.cc.
Referenced by Init(), v8::internal::SerializerDeserializer::Iterate(), and v8::internal::PartialSerializer::PartialSnapshotCacheIndex().
|
inline |
Definition at line 33 of file isolate-inl.h.
References NULL.
Referenced by v8::internal::Heap::AllocateSymbol(), v8::internal::AssemblerBase::AssemblerBase(), v8::internal::GenerateIdentityHash(), and v8::internal::Heap::SetUp().
|
inline |
Definition at line 956 of file isolate.h.
References regexp_macro_assembler_canonicalize_.
Referenced by v8::internal::NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16().
|
inline |
Definition at line 960 of file isolate.h.
References regexp_stack_.
Referenced by v8::internal::ThreadManager::EagerlyArchiveThread(), v8::internal::ThreadManager::FreeThreadResources(), v8::internal::NativeRegExpMacroAssembler::GrowStack(), and v8::internal::ThreadManager::RestoreThread().
void v8::internal::Isolate::RegisterTryCatchHandler | ( | v8::TryCatch * | that | ) |
Definition at line 244 of file isolate.cc.
References thread_local_top().
Referenced by v8::TryCatch::TryCatch().
void v8::internal::Isolate::RemoveCallCompletedCallback | ( | CallCompletedCallback | callback | ) |
Definition at line 2256 of file isolate.cc.
References v8::internal::List< T, AllocationPolicy >::at(), call_completed_callbacks_, and v8::internal::List< T, AllocationPolicy >::Remove().
Referenced by v8::Isolate::RemoveCallCompletedCallback().
void v8::internal::Isolate::ReportFailedAccessCheck | ( | Handle< JSObject > | receiver, |
v8::AccessType | type | ||
) |
Definition at line 634 of file isolate.cc.
References ASSIGN_RETURN_ON_EXCEPTION_VALUE, context(), DCHECK, factory(), v8::internal::GetAccessCheckInfo(), v8::internal::handle(), ScheduleThrow(), thread_local_top(), and v8::Utils::ToLocal().
Referenced by v8::internal::JSObject::DefineAccessor(), v8::internal::JSObject::DeleteElement(), v8::internal::JSObject::Freeze(), v8::internal::JSObject::GetAccessor(), v8::internal::JSObject::GetElementAttributeWithReceiver(), v8::internal::Object::GetElementWithReceiver(), v8::internal::JSReceiver::GetKeys(), v8::internal::JSObject::HasRealElementProperty(), v8::internal::JSObject::PreventExtensions(), v8::internal::JSObject::SetAccessor(), v8::internal::JSObject::SetElement(), and v8::internal::StoreToSuper().
void v8::internal::Isolate::ReportPendingMessages | ( | ) |
Definition at line 1194 of file isolate.cc.
References clear_pending_message(), DCHECK, has_pending_exception(), heap(), NULL, PropagatePendingExceptionToExternalTryCatch(), v8::internal::MessageHandler::ReportMessage(), and thread_local_top_.
Referenced by v8::ScriptCompiler::Compile(), v8::internal::Compiler::CompileScript(), and v8::internal::Invoke().
void v8::internal::Isolate::RestorePendingMessageFromTryCatch | ( | v8::TryCatch * | handler | ) |
Definition at line 871 of file isolate.cc.
References DCHECK, handler(), thread_local_top(), and try_catch_handler().
char * v8::internal::Isolate::RestoreThread | ( | char * | from | ) |
Definition at line 1380 of file isolate.cc.
References context(), DCHECK, v8::internal::MemCopy(), NULL, and thread_local_top().
Referenced by v8::internal::ThreadManager::RestoreThread().
Definition at line 838 of file isolate.cc.
References heap(), is_catchable_by_javascript(), NULL, set_pending_exception(), ShouldReportException(), thread_local_top(), and try_catch_handler().
Referenced by PromoteScheduledException().
void v8::internal::Isolate::RunMicrotasks | ( | ) |
Definition at line 2299 of file isolate.cc.
References v8::internal::Handle< T >::cast(), DCHECK, factory(), heap(), v8::internal::MaybeHandle< T >::is_null(), NULL, and set_context().
Referenced by FireCallCompletedCallback().
|
inline |
Definition at line 864 of file isolate.h.
References runtime_profiler_.
Referenced by v8::internal::IC::OnTypeFeedbackChanged().
|
inline |
Definition at line 945 of file isolate.h.
References runtime_state_.
Referenced by v8::internal::ConvertCaseHelper().
|
inline |
Definition at line 905 of file isolate.h.
References runtime_zone_.
Referenced by v8::internal::StringReplaceGlobalAtomRegExpWithString(), and v8::internal::StringReplaceGlobalRegExpWithString().
|
inline |
Definition at line 622 of file isolate.h.
References DCHECK, has_scheduled_exception(), and thread_local_top_.
Referenced by CancelScheduledExceptionFromTryCatch(), CancelTerminateExecution(), v8::IsExecutionTerminatingCheck(), v8::internal::Debug::OnThrow(), and PromoteScheduledException().
|
inline |
Definition at line 605 of file isolate.h.
References thread_local_top_.
void v8::internal::Isolate::ScheduleThrow | ( | Object * | exception | ) |
Definition at line 858 of file isolate.cc.
References clear_pending_exception(), has_pending_exception(), pending_exception(), PropagatePendingExceptionToExternalTryCatch(), thread_local_top(), and Throw().
Referenced by v8::internal::ModuleGetExport(), v8::internal::ModuleSetExport(), ReportFailedAccessCheck(), and v8::Isolate::ThrowException().
|
inline |
Definition at line 1007 of file isolate.h.
References serializer_enabled_.
Referenced by Init(), v8::internal::SerializerDeserializer::Iterate(), v8::internal::NoTrackDoubleFieldsForSerializerScope::NoTrackDoubleFieldsForSerializerScope(), v8::internal::IncrementalMarking::Start(), v8::internal::JSFunction::StartInobjectSlackTracking(), and v8::internal::IncrementalMarking::WorthActivating().
|
inline |
Definition at line 549 of file isolate.h.
References context(), DCHECK, NULL, and thread_local_top_.
Referenced by v8::Context::Enter(), v8::Context::Exit(), v8::internal::Debug::Load(), and RunMicrotasks().
|
inline |
Definition at line 1024 of file isolate.h.
References date_cache(), and date_cache_.
|
inline |
Definition at line 1079 of file isolate.h.
References function_entry_hook(), and function_entry_hook_.
Referenced by v8::Isolate::New().
|
inline |
Definition at line 567 of file isolate.h.
References DCHECK, and thread_local_top_.
Referenced by v8::internal::Debug::CompileDebuggerScript(), DoThrow(), ReThrow(), and v8::internal::Isolate::ExceptionScope::~ExceptionScope().
void v8::internal::Isolate::SetCaptureStackTraceForUncaughtExceptions | ( | bool | capture, |
int | frame_limit, | ||
StackTrace::StackTraceOptions | options | ||
) |
Definition at line 1329 of file isolate.cc.
References capture_stack_trace_for_uncaught_exceptions_, stack_trace_for_uncaught_exceptions_frame_limit_, and stack_trace_for_uncaught_exceptions_options_.
|
inline |
Definition at line 990 of file isolate.h.
References DCHECK, embedder_data_, and v8::internal::Internals::kNumIsolateDataSlots.
void v8::internal::Isolate::SetFailedAccessCheckCallback | ( | v8::FailedAccessCheckCallback | callback | ) |
Definition at line 615 of file isolate.cc.
References thread_local_top().
Referenced by v8::V8::SetFailedAccessCheckCallbackFunction().
|
staticprivate |
Definition at line 1676 of file isolate.cc.
References isolate_key_, per_isolate_thread_data_key_, and v8::base::Thread::SetThreadLocal().
Referenced by Enter(), Exit(), v8::internal::SweeperThread::Run(), v8::internal::OptimizingCompilerThread::Run(), and TearDown().
void v8::internal::Isolate::SetUseCounterCallback | ( | v8::Isolate::UseCounterCallback | callback | ) |
Definition at line 2352 of file isolate.cc.
References DCHECK, and use_counter_callback_.
bool v8::internal::Isolate::ShouldReportException | ( | bool * | can_be_caught_externally, |
bool | catchable_by_javascript | ||
) |
Definition at line 950 of file isolate.cc.
References handler(), v8::TryCatch::is_verbose_, NULL, thread_local_top(), and try_catch_handler().
Referenced by DoThrow(), and ReThrow().
|
inline |
Definition at line 1010 of file isolate.h.
References has_fatal_error_.
Referenced by v8::Utils::ReportApiFailure().
|
inline |
Definition at line 872 of file isolate.h.
References stack_guard_.
Referenced by v8::internal::IncrementalMarking::Abort(), v8::Debug::CancelDebugBreak(), v8::V8::CancelTerminateExecution(), v8::Debug::CheckDebugBreak(), v8::Isolate::ClearInterrupt(), v8::internal::OptimizingCompilerThread::CompileNext(), v8::internal::ThreadManager::EagerlyArchiveThread(), v8::internal::Debug::EnqueueCommandMessage(), v8::internal::Debug::EnqueueDebugCommand(), v8::internal::IncrementalMarking::Finalize(), v8::internal::ThreadManager::FreeThreadResources(), v8::internal::Debug::HandleDebugBreak(), v8::Locker::Initialize(), v8::internal::IncrementalMarking::MarkingComplete(), v8::internal::Debug::NotifyMessageHandler(), v8::internal::Parser::Parse(), v8::internal::Debug::ProcessDebugMessages(), v8::internal::Heap::ProcessPretenuringFeedback(), v8::Isolate::RequestInterrupt(), v8::internal::Heap::ResetAllAllocationSitesDependentCode(), v8::internal::ThreadManager::RestoreThread(), v8::SetResourceConstraints(), v8::Isolate::SetStackLimit(), v8::internal::Heap::SetStackLimits(), and v8::V8::TerminateExecution().
Object * v8::internal::Isolate::StackOverflow | ( | ) |
Definition at line 773 of file isolate.cc.
References CaptureAndSetSimpleStackTrace(), v8::internal::Handle< T >::cast(), DoThrow(), factory(), v8::internal::Object::GetProperty(), heap(), js_builtins_object(), and NULL.
Referenced by v8::internal::CompileUnoptimizedCode(), v8::internal::NativeRegExpMacroAssembler::Execute(), v8::internal::Parser::Internalize(), v8::internal::RegExpImpl::IrregexpExecRaw(), and v8::internal::JSObjectWalkVisitor< ContextObject >::StructureWalk().
Definition at line 256 of file isolate.cc.
References v8::base::OS::Abort(), factory(), incomplete_message_, NULL, v8::base::OS::PrintError(), PrintStack(), and stack_trace_nesting_level_.
StatsTable * v8::internal::Isolate::stats_table | ( | ) |
Definition at line 2039 of file isolate.cc.
References NULL, and stats_table_.
Referenced by v8::internal::Histogram::AddSample(), v8::internal::Histogram::CreateHistogram(), v8::internal::StatsCounter::FindLocationInStatsTable(), v8::internal::CompilationCacheScript::Lookup(), v8::Isolate::SetCounterFunction(), and v8::Isolate::SetCreateHistogramFunction().
|
inline |
|
inline |
Definition at line 923 of file isolate.h.
References string_tracker_.
Referenced by v8::String::CanMakeExternal(), v8::String::MakeExternal(), and v8::WriteHelper().
|
inline |
Definition at line 875 of file isolate.h.
References stub_cache_.
Referenced by v8::internal::TypeFeedbackOracle::CollectReceiverTypes(), v8::internal::IC::ComputeHandler(), v8::internal::MarkCompactCollector::Finish(), v8::internal::ExternalReferenceTable::PopulateTable(), and v8::internal::IC::UpdateMegamorphicCache().
|
inline |
Definition at line 1067 of file isolate.h.
References sweeper_thread_.
Referenced by v8::internal::MarkCompactCollector::AreSweeperThreadsActivated(), v8::internal::MarkCompactCollector::EnsureSweepingCompleted(), v8::internal::MarkCompactCollector::IsSweepingCompleted(), and v8::internal::MarkCompactCollector::StartSweeperThreads().
void v8::internal::Isolate::TearDown | ( | ) |
Definition at line 1555 of file isolate.cc.
References CurrentPerIsolateThreadData(), Deinit(), NULL, v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >::Pointer(), v8::internal::Isolate::ThreadDataTable::RemoveAllThreads(), SetIsolateThreadLocals(), thread_data_table_, thread_data_table_mutex_, and TRACE_ISOLATE.
Referenced by v8::Isolate::Dispose().
Object * v8::internal::Isolate::TerminateExecution | ( | ) |
|
inlinestatic |
Definition at line 536 of file isolate.h.
References thread_id_key_.
|
inline |
Definition at line 878 of file isolate.h.
References thread_local_top_.
Referenced by ArchiveThread(), CancelTerminateExecution(), v8::internal::Deoptimizer::DeoptimizeMarkedCodeForContext(), DoThrow(), GetPromiseOnStackOnThrow(), HasExternalTryCatch(), v8::internal::IC::IC(), v8::internal::TickSample::Init(), IsFinallyOnTop(), Iterate(), v8::internal::Debug::OnThrow(), OptionalRescheduleException(), PopPromise(), v8::internal::Debug::PrepareForBreakPoints(), PrintStack(), PushPromise(), RegisterTryCatchHandler(), ReportFailedAccessCheck(), RestorePendingMessageFromTryCatch(), RestoreThread(), ReThrow(), v8::internal::SafeStackFrameIterator::SafeStackFrameIterator(), ScheduleThrow(), SetFailedAccessCheckCallback(), ShouldReportException(), v8::internal::StackFrameIterator::StackFrameIterator(), and UnregisterTryCatchHandler().
|
inline |
Definition at line 921 of file isolate.h.
References thread_manager_.
Referenced by v8::internal::LiveEdit::CheckAndDropActivations(), v8::internal::Deserializer::Deserialize(), v8::HandleScope::Initialize(), v8::Unlocker::Initialize(), v8::Locker::Initialize(), v8::Locker::IsLocked(), v8::internal::Heap::IterateStrongRoots(), v8::internal::Debug::PrepareForBreakPoints(), v8::internal::MarkCompactCollector::PrepareForCodeFlushing(), v8::internal::StartupSerializer::SerializeStrongReferences(), v8::Locker::~Locker(), and v8::Unlocker::~Unlocker().
|
inline |
Object * v8::internal::Isolate::Throw | ( | Object * | exception, |
MessageLocation * | location = NULL |
||
) |
Definition at line 832 of file isolate.cc.
References DoThrow(), and heap().
Referenced by v8::internal::CompileGlobalEval(), v8::internal::CreateRegExpErrorObjectAndThrow(), v8::internal::LiveEdit::GatherCompileInfo(), v8::internal::LoadLookupSlotHelper(), v8::internal::Scope::ResolveVariable(), ScheduleThrow(), Throw(), ThrowIllegalOperation(), and v8::internal::Parser::ThrowPendingError().
Object * v8::internal::Isolate::ThrowIllegalOperation | ( | ) |
Definition at line 852 of file isolate.cc.
References heap_, PrintStack(), and Throw().
Referenced by v8::internal::Invoke(), v8::internal::LoadLookupSlotHelper(), and v8::internal::TransitionElements().
|
inline |
Definition at line 1016 of file isolate.h.
References time_millis_at_init_, and v8::base::OS::TimeCurrentMillis().
Referenced by v8::internal::GCTracer::Print(), and v8::internal::GCTracer::PrintNVP().
|
inline |
Definition at line 593 of file isolate.h.
References thread_local_top_.
Referenced by CancelTerminateExecution(), DoThrow(), v8::internal::ThreadManager::FreeThreadResources(), HasExternalTryCatch(), PropagatePendingExceptionToExternalTryCatch(), RestorePendingMessageFromTryCatch(), ReThrow(), ShouldReportException(), and UnregisterTryCatchHandler().
|
inline |
Definition at line 596 of file isolate.h.
References thread_local_top_.
Referenced by OptionalRescheduleException().
|
inline |
Definition at line 907 of file isolate.h.
References unicode_cache_.
Referenced by v8::internal::Parser::Parse().
void v8::internal::Isolate::UnlinkDeferredHandles | ( | DeferredHandles * | deferred_handles | ) |
Definition at line 2115 of file isolate.cc.
References DCHECK, deferred_handles_head_, v8::internal::DeferredHandles::next_, NULL, and v8::internal::DeferredHandles::previous_.
void v8::internal::Isolate::UnregisterTryCatchHandler | ( | v8::TryCatch * | that | ) |
Definition at line 249 of file isolate.cc.
References DCHECK, v8::TryCatch::next_, NULL, thread_local_top(), and try_catch_handler().
bool v8::internal::Isolate::use_crankshaft | ( | ) | const |
Definition at line 2174 of file isolate.cc.
References serializer_enabled_, and v8::internal::CpuFeatures::SupportsCrankshaft().
Referenced by v8::internal::Compiler::GetLazyCode(), and v8::internal::IsSuitableForOnStackReplacement().
|
inline |
|
friend |
Definition at line 1336 of file isolate.h.
Referenced by Init(), and InvokeApiInterruptCallback().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 1334 of file isolate.h.
Referenced by basic_block_profiler(), Deinit(), and GetOrCreateBasicBlockProfiler().
|
private |
Definition at line 1228 of file isolate.h.
Referenced by bootstrapper(), Deinit(), Init(), and ~Isolate().
|
private |
Definition at line 1233 of file isolate.h.
Referenced by break_access().
|
private |
Definition at line 1260 of file isolate.h.
Referenced by builtins(), Deinit(), and Init().
|
private |
Definition at line 1331 of file isolate.h.
Referenced by AddCallCompletedCallback(), FireCallCompletedCallback(), and RemoveCallCompletedCallback().
|
private |
Definition at line 1273 of file isolate.h.
Referenced by call_descriptor_data(), Init(), and ~Isolate().
|
private |
Definition at line 1243 of file isolate.h.
Referenced by CaptureAndSetDetailedStackTrace(), DoThrow(), and SetCaptureStackTraceForUncaughtExceptions().
|
private |
Definition at line 1239 of file isolate.h.
Referenced by code_aging_helper(), Init(), and ~Isolate().
|
private |
Definition at line 1232 of file isolate.h.
Referenced by code_range(), Init(), and ~Isolate().
|
private |
Definition at line 1230 of file isolate.h.
Referenced by compilation_cache(), Init(), and ~Isolate().
|
private |
Definition at line 1248 of file isolate.h.
Referenced by context_slot_cache(), Init(), and ~Isolate().
|
private |
Definition at line 1231 of file isolate.h.
Referenced by counters(), InitializeLoggingAndCounters(), and ~Isolate().
|
private |
Definition at line 1295 of file isolate.h.
Referenced by cpu_profiler(), Deinit(), and Init().
|
private |
Definition at line 1271 of file isolate.h.
Referenced by date_cache(), Init(), set_date_cache(), and ~Isolate().
|
private |
Definition at line 1294 of file isolate.h.
Referenced by debug(), GetCallingNativeContext(), Isolate(), and ~Isolate().
|
private |
|
private |
Definition at line 1320 of file isolate.h.
Referenced by IterateDeferredHandles(), LinkDeferredHandles(), and UnlinkDeferredHandles().
|
private |
Definition at line 1240 of file isolate.h.
Referenced by Deinit(), deoptimizer_data(), and Init().
|
private |
Definition at line 1249 of file isolate.h.
Referenced by descriptor_lookup_cache(), Init(), and ~Isolate().
|
private |
|
private |
|
private |
Definition at line 1257 of file isolate.h.
Referenced by eternal_handles(), Init(), and ~Isolate().
|
private |
Definition at line 1297 of file isolate.h.
Referenced by function_entry_hook(), and set_function_entry_hook().
|
private |
Definition at line 1256 of file isolate.h.
Referenced by global_handles(), Init(), and ~Isolate().
|
private |
Definition at line 1250 of file isolate.h.
Referenced by handle_scope_data(), and Isolate().
|
private |
Definition at line 1251 of file isolate.h.
Referenced by handle_scope_implementer(), Init(), and ~Isolate().
|
private |
Definition at line 1280 of file isolate.h.
Referenced by Init(), IsDead(), and SignalFatalError().
|
private |
Definition at line 1261 of file isolate.h.
Referenced by has_installed_extensions(), and NotifyExtensionInstalled().
|
private |
Definition at line 1131 of file isolate.h.
Referenced by CancelTerminateExecution(), clear_pending_exception(), clear_pending_message(), clear_scheduled_exception(), ComputeLocation(), Deinit(), has_scheduled_exception(), heap(), Init(), Isolate(), OptionalRescheduleException(), TerminateExecution(), and ThrowIllegalOperation().
|
private |
Definition at line 1296 of file isolate.h.
Referenced by Deinit(), heap_profiler(), and Init().
|
private |
|
private |
Definition at line 1226 of file isolate.h.
Referenced by PrintStack(), and StackTraceString().
|
private |
Definition at line 1283 of file isolate.h.
Referenced by Init(), and initialized_from_snapshot().
|
private |
Definition at line 1254 of file isolate.h.
Referenced by Init(), inner_pointer_to_code_cache(), and ~Isolate().
|
private |
Definition at line 1272 of file isolate.h.
Referenced by interp_canonicalize_mapping().
|
private |
Definition at line 1227 of file isolate.h.
Referenced by get_address_from_id(), and Isolate().
|
staticprivate |
|
staticprivate |
Definition at line 1178 of file isolate.h.
Referenced by InitializeOncePerProcess(), INLINE(), isolate_key(), and SetIsolateThreadLocals().
|
private |
Definition at line 1264 of file isolate.h.
Referenced by jsregexp_canonrange().
|
private |
Definition at line 1263 of file isolate.h.
Referenced by jsregexp_uncanonicalize().
|
private |
Definition at line 1247 of file isolate.h.
Referenced by Init(), keyed_lookup_cache(), and ~Isolate().
|
static |
Definition at line 984 of file isolate.h.
Referenced by v8::internal::RegExpImpl::AtomExec(), v8::internal::RegExpImpl::GlobalCache::GlobalCache(), and v8::internal::RegExpImpl::IrregexpExec().
|
static |
|
static |
|
private |
Definition at line 1235 of file isolate.h.
Referenced by Deinit(), Init(), InitializeLoggingAndCounters(), logger(), and ~Isolate().
|
private |
Definition at line 1241 of file isolate.h.
Referenced by Init(), materialized_object_store(), and ~Isolate().
|
private |
Definition at line 1246 of file isolate.h.
Referenced by Init(), memory_allocator(), and ~Isolate().
|
private |
Definition at line 1328 of file isolate.h.
Referenced by NextOptimizationId().
|
private |
Definition at line 1323 of file isolate.h.
Referenced by Deinit(), Init(), and num_sweeper_threads().
|
private |
Definition at line 1265 of file isolate.h.
Referenced by objects_string_compare_iterator_a().
|
private |
Definition at line 1266 of file isolate.h.
Referenced by objects_string_compare_iterator_b().
|
private |
Definition at line 1267 of file isolate.h.
Referenced by objects_string_iterator().
|
private |
Definition at line 1321 of file isolate.h.
Referenced by concurrent_osr_enabled(), concurrent_recompilation_enabled(), Deinit(), Init(), and optimizing_compiler_thread().
|
staticprivate |
Definition at line 1177 of file isolate.h.
Referenced by CurrentPerIsolateThreadData(), InitializeOncePerProcess(), and SetIsolateThreadLocals().
|
private |
Definition at line 1274 of file isolate.h.
Referenced by ~Isolate().
|
private |
Definition at line 1269 of file isolate.h.
Referenced by regexp_macro_assembler_canonicalize().
|
private |
Definition at line 1270 of file isolate.h.
Referenced by Init(), regexp_stack(), and ~Isolate().
|
private |
Definition at line 1229 of file isolate.h.
Referenced by Deinit(), Init(), and runtime_profiler().
|
private |
Definition at line 1259 of file isolate.h.
Referenced by runtime_state().
|
private |
Definition at line 1253 of file isolate.h.
Referenced by runtime_zone(), and ~Isolate().
|
private |
Definition at line 1277 of file isolate.h.
Referenced by enable_serializer(), serializer_enabled(), and use_crankshaft().
|
private |
Definition at line 1236 of file isolate.h.
Referenced by Init(), Isolate(), and stack_guard().
|
private |
Definition at line 1244 of file isolate.h.
Referenced by CaptureAndSetDetailedStackTrace(), DoThrow(), and SetCaptureStackTraceForUncaughtExceptions().
|
private |
Definition at line 1245 of file isolate.h.
Referenced by CaptureAndSetDetailedStackTrace(), DoThrow(), and SetCaptureStackTraceForUncaughtExceptions().
|
private |
Definition at line 1225 of file isolate.h.
Referenced by PrintStack(), and StackTraceString().
|
private |
Definition at line 1132 of file isolate.h.
Referenced by Deinit(), enable_serializer(), Init(), and IsInitialized().
|
private |
Definition at line 1237 of file isolate.h.
Referenced by stats_table(), and ~Isolate().
|
private |
Definition at line 1326 of file isolate.h.
Referenced by Deinit(), Init(), and stress_deopt_count_address().
|
private |
Definition at line 1262 of file isolate.h.
Referenced by Init(), string_tracker(), and ~Isolate().
|
private |
Definition at line 1238 of file isolate.h.
Referenced by Init(), stub_cache(), and ~Isolate().
|
private |
Definition at line 1322 of file isolate.h.
Referenced by Deinit(), Init(), and sweeper_threads().
|
staticprivate |
Definition at line 1180 of file isolate.h.
Referenced by FindOrAllocatePerThreadDataForThisThread(), FindPerThreadDataForThread(), GlobalTearDown(), InitializeOncePerProcess(), Isolate(), and TearDown().
|
staticprivate |
Definition at line 1175 of file isolate.h.
Referenced by FindOrAllocatePerThreadDataForThisThread(), FindPerThreadDataForThread(), InitializeOncePerProcess(), Isolate(), and TearDown().
|
staticprivate |
Definition at line 1179 of file isolate.h.
Referenced by v8::internal::ThreadId::GetCurrentThreadId(), InitializeOncePerProcess(), and thread_id_key().
|
private |
Definition at line 1242 of file isolate.h.
Referenced by c_entry_fp_address(), clear_pending_exception(), clear_pending_message(), clear_scheduled_exception(), context(), context_address(), external_caught_exception_address(), formal_count_address(), FreeThreadResources(), GetMessageLocation(), handler_address(), has_pending_exception(), has_pending_message_address(), has_scheduled_exception(), InitializeThreadLocal(), js_builtins_object(), js_entry_sp(), js_entry_sp_address(), pending_exception(), pending_exception_address(), pending_message_obj_address(), pending_message_script_address(), PropagatePendingExceptionToExternalTryCatch(), ReportPendingMessages(), scheduled_exception(), scheduled_exception_address(), set_context(), set_pending_exception(), thread_local_top(), try_catch_handler(), and try_catch_handler_address().
|
private |
Definition at line 1258 of file isolate.h.
Referenced by Isolate(), thread_manager(), and ~Isolate().
|
private |
Definition at line 1286 of file isolate.h.
Referenced by Init(), and time_millis_since_init().
|
private |
Definition at line 1252 of file isolate.h.
Referenced by Init(), unicode_cache(), and ~Isolate().
|
private |
Definition at line 1333 of file isolate.h.
Referenced by CountUsage(), and SetUseCounterCallback().
|
private |
Definition at line 1255 of file isolate.h.
Referenced by Init(), write_iterator(), and ~Isolate().