Lines Matching defs:Isolate
156 PrintF("Isolate %p (id %d)" #tag "\n", reinterpret_cast<void*>(this), \
259 CHECK_EQ(StickyEmbeddedBlobCode(), Isolate::CurrentEmbeddedBlobCode());
260 CHECK_EQ(StickyEmbeddedBlobData(), Isolate::CurrentEmbeddedBlobData());
263 const_cast<uint8_t*>(Isolate::CurrentEmbeddedBlobCode()),
264 Isolate::CurrentEmbeddedBlobCodeSize(),
265 const_cast<uint8_t*>(Isolate::CurrentEmbeddedBlobData()),
266 Isolate::CurrentEmbeddedBlobDataSize());
279 bool Isolate::CurrentEmbeddedBlobIsBinaryEmbedded() {
291 void Isolate::SetEmbeddedBlob(const uint8_t* code, uint32_t code_size,
327 void Isolate::ClearEmbeddedBlob() {
348 const uint8_t* Isolate::embedded_blob_code() const {
351 uint32_t Isolate::embedded_blob_code_size() const {
354 const uint8_t* Isolate::embedded_blob_data() const {
357 uint32_t Isolate::embedded_blob_data_size() const {
362 const uint8_t* Isolate::CurrentEmbeddedBlobCode() {
367 uint32_t Isolate::CurrentEmbeddedBlobCodeSize() {
372 const uint8_t* Isolate::CurrentEmbeddedBlobData() {
377 uint32_t Isolate::CurrentEmbeddedBlobDataSize() {
382 base::AddressRegion Isolate::GetShortBuiltinsCallRegion() {
414 size_t Isolate::HashIsolateForEmbeddedBlob() {
461 base::Thread::LocalStorageKey Isolate::isolate_key_;
462 base::Thread::LocalStorageKey Isolate::per_isolate_thread_data_key_;
463 std::atomic<bool> Isolate::isolate_key_created_{false};
470 Isolate::PerIsolateThreadData*
471 Isolate::FindOrAllocatePerThreadDataForThisThread() {
489 void Isolate::DiscardPerThreadDataForThisThread() {
503 Isolate::PerIsolateThreadData* Isolate::FindPerThreadDataForThisThread() {
508 Isolate::PerIsolateThreadData* Isolate::FindPerThreadDataForThread(
518 void Isolate::InitializeOncePerProcess() {
528 void Isolate::DisposeOncePerProcess() {
536 Address Isolate::get_address_from_id(IsolateAddressId id) {
540 char* Isolate::Iterate(RootVisitor* v, char* thread_storage) {
546 void Isolate::IterateThread(ThreadVisitor* v, char* t) {
551 void Isolate::Iterate(RootVisitor* v, ThreadLocalTop* thread) {
603 void Isolate::Iterate(RootVisitor* v) {
608 void Isolate::RegisterTryCatchHandler(v8::TryCatch* that) {
612 void Isolate::UnregisterTryCatchHandler(v8::TryCatch* that) {
617 Handle<String> Isolate::StackTraceString() {
642 void Isolate::PushStackTraceAndDie(void* ptr1, void* ptr2, void* ptr3,
651 void Isolate::PushParamsAndDie(void* ptr1, void* ptr2, void* ptr3, void* ptr4,
670 Isolate* isolate, StackTraceFailureMessage::StackTraceMode mode, void* ptr1,
686 isolate->PrintStack(&accumulator, Isolate::kPrintStackVerbose);
705 CallSiteBuilder(Isolate* isolate, FrameSkipMode mode, int limit,
893 Isolate* isolate_;
903 bool GetStackTraceLimit(Isolate* isolate, int* result) {
916 isolate->CountUsage(v8::Isolate::kErrorStackTraceLimit);
922 bool IsBuiltinFunction(Isolate* isolate, HeapObject object, Builtin builtin) {
928 void CaptureAsyncStackTrace(Isolate* isolate, Handle<JSPromise> promise,
1058 void CaptureAsyncStackTrace(Isolate* isolate, CallSiteBuilder* builder) {
1118 void VisitStack(Isolate* isolate, Visitor* visitor,
1158 Handle<FixedArray> CaptureSimpleStackTrace(Isolate* isolate, int limit,
1186 MaybeHandle<JSObject> Isolate::CaptureAndSetErrorStack(
1250 Handle<FixedArray> Isolate::GetDetailedStackTrace(
1267 Handle<FixedArray> Isolate::GetSimpleStackTrace(
1285 Address Isolate::GetAbstractPC(int* line, int* column) {
1326 StackFrameBuilder(Isolate* isolate, int limit)
1347 Isolate* isolate_;
1355 Handle<FixedArray> Isolate::CaptureDetailedStackTrace(
1371 explicit CurrentScriptNameStackVisitor(Isolate* isolate)
1395 Isolate* const isolate_;
1401 Handle<String> Isolate::CurrentScriptNameOrSourceURL() {
1408 void Isolate::PrintStack(FILE* out, PrintStackMode mode) {
1431 static void PrintFrames(Isolate* isolate, StringStream* accumulator,
1439 void Isolate::PrintStack(StringStream* accumulator, PrintStackMode mode) {
1458 void Isolate::SetFailedAccessCheckCallback(
1463 void Isolate::ReportFailedAccessCheck(Handle<JSObject> receiver) {
1491 bool Isolate::MayAccess(Handle<Context> accessing_context,
1508 // avoid using Isolate::native_context() because it uses Handle.
1539 Object Isolate::StackOverflow() {
1587 Object Isolate::ThrowAt(Handle<JSObject> exception, MessageLocation* location) {
1611 Object Isolate::TerminateExecution() {
1615 void Isolate::CancelTerminateExecution() {
1631 void Isolate::RequestInterrupt(InterruptCallback callback, void* data) {
1637 void Isolate::InvokeApiInterruptCallbacks() {
1650 entry.first(reinterpret_cast<v8::Isolate*>(this), entry.second);
1713 Handle<JSMessageObject> Isolate::CreateMessageOrAbort(
1726 reinterpret_cast<v8::Isolate*>(this)))) {
1743 Object Isolate::ThrowInternal(Object raw_exception, MessageLocation* location) {
1832 Object Isolate::ReThrow(Object exception) {
1840 Object Isolate::ReThrow(Object exception, Object message) {
1871 Object Isolate::UnwindAndFindHandler() {
2197 Isolate::CatchType ToCatchType(HandlerTable::CatchPrediction prediction) {
2200 return Isolate::NOT_CAUGHT;
2202 return Isolate::CAUGHT_BY_JAVASCRIPT;
2204 return Isolate::CAUGHT_BY_PROMISE;
2207 return Isolate::CAUGHT_BY_ASYNC_AWAIT;
2214 Isolate::CatchType Isolate::PredictExceptionCatcher() {
2246 Isolate::CatchType prediction = ToCatchType(PredictException(js_frame));
2278 Object Isolate::ThrowIllegalOperation() {
2283 void Isolate::ScheduleThrow(Object exception) {
2296 void Isolate::RestorePendingMessageFromTryCatch(v8::TryCatch* handler) {
2306 void Isolate::CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler) {
2328 Object Isolate::PromoteScheduledException() {
2335 void Isolate::PrintCurrentStackTrace(std::ostream& out) {
2349 bool Isolate::ComputeLocation(MessageLocation* target) {
2379 bool Isolate::ComputeLocationFromException(MessageLocation* target,
2405 bool Isolate::ComputeLocationFromSimpleStackTrace(MessageLocation* target,
2422 bool Isolate::ComputeLocationFromDetailedStackTrace(MessageLocation* target,
2439 Handle<JSMessageObject> Isolate::CreateMessage(Handle<Object> exception,
2471 Handle<JSMessageObject> Isolate::CreateMessageFromException(
2491 Isolate::ExceptionHandlerType Isolate::TopExceptionHandlerType(
2495 Address js_handler = Isolate::handler(thread_local_top());
2525 std::vector<MemoryRange>* Isolate::GetCodePages() const {
2529 void Isolate::SetCodePages(std::vector<MemoryRange>* new_code_pages) {
2533 void Isolate::ReportPendingMessages() {
2588 bool Isolate::OptionalRescheduleException(bool clear_exception) {
2628 void Isolate::PushPromise(Handle<JSObject> promise) {
2634 void Isolate::PopPromise() {
2641 bool Isolate::IsPromiseStackEmpty() const {
2648 bool PromiseIsRejectHandler(Isolate* isolate, Handle<JSReceiver> handler) {
2662 bool PromiseHasUserDefinedRejectHandlerInternal(Isolate* isolate,
2690 bool Isolate::PromiseHasUserDefinedRejectHandler(Handle<JSPromise> promise) {
2716 Handle<Object> Isolate::GetPromiseOnStackOnThrow() {
2796 void Isolate::SetCaptureStackTraceForUncaughtExceptions(
2803 bool Isolate::get_capture_stack_trace_for_uncaught_exceptions() const {
2807 void Isolate::SetAbortOnUncaughtExceptionCallback(
2808 v8::Isolate::AbortOnUncaughtExceptionCallback callback) {
2812 void Isolate::InstallConditionalFeatures(Handle<Context> context) {
2824 bool Isolate::IsSharedArrayBufferConstructorEnabled(Handle<Context> context) {
2836 bool Isolate::IsWasmSimdEnabled(Handle<Context> context) {
2848 bool Isolate::AreWasmExceptionsEnabled(Handle<Context> context) {
2860 bool Isolate::IsWasmDynamicTieringEnabled() {
2873 Handle<Context> Isolate::GetIncumbentContext() {
2901 reinterpret_cast<v8::Isolate*>(this)->GetEnteredOrMicrotaskContext();
2905 char* Isolate::ArchiveThread(char* to) {
2911 char* Isolate::RestoreThread(char* from) {
2918 void Isolate::ReleaseSharedPtrs() {
2932 bool Isolate::IsBuiltinTableHandleLocation(Address* handle_location) {
2941 void Isolate::RegisterManagedPtrDestructor(ManagedPtrDestructor* destructor) {
2952 void Isolate::UnregisterManagedPtrDestructor(ManagedPtrDestructor* destructor) {
2966 void Isolate::AddSharedWasmMemory(Handle<WasmMemoryObject> memory_object) {
2976 Isolate::PerIsolateThreadData::~PerIsolateThreadData() {
2982 Isolate::PerIsolateThreadData* Isolate::ThreadDataTable::Lookup(
2989 void Isolate::ThreadDataTable::Insert(Isolate::PerIsolateThreadData* data) {
2994 void Isolate::ThreadDataTable::Remove(PerIsolateThreadData* data) {
2999 void Isolate::ThreadDataTable::RemoveAllThreads() {
3008 explicit TracingAccountingAllocator(Isolate* isolate) : isolate_(isolate) {}
3128 Isolate* const isolate_;
3142 std::atomic<size_t> Isolate::non_disposed_isolates_;
3146 Isolate* Isolate::New() { return Isolate::Allocate(false); }
3149 Isolate* Isolate::NewShared(const v8::Isolate::CreateParams& params) {
3151 Isolate* isolate = Isolate::Allocate(true);
3152 v8::Isolate::Initialize(reinterpret_cast<v8::Isolate*>(isolate), params);
3157 Isolate* Isolate::Allocate(bool is_shared) {
3160 // IsolateAllocator allocates the memory for the Isolate object according to
3164 // Construct Isolate object in the allocated memory.
3166 Isolate* isolate =
3167 new (isolate_ptr) Isolate(std::move(isolate_allocator), is_shared);
3181 void Isolate::Delete(Isolate* isolate) {
3191 Isolate* saved_isolate = reinterpret_cast<Isolate*>(
3202 // Take ownership of the IsolateAllocator to ensure the Isolate memory will
3203 // be available during Isolate descructor call.
3206 isolate->~Isolate();
3214 void Isolate::SetUpFromReadOnlyArtifacts(
3228 v8::PageAllocator* Isolate::page_allocator() const {
3232 Isolate::Isolate(std::unique_ptr<i::IsolateAllocator> isolate_allocator,
3263 // A shared Isolate is used to support JavaScript shared memory features
3299 void Isolate::CheckIsolateLayout() {
3300 CHECK_EQ(OFFSET_OF(Isolate, isolate_data_), 0);
3301 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, isolate_data_.embedder_data_)),
3304 OFFSET_OF(Isolate, isolate_data_.fast_c_call_caller_fp_)),
3307 OFFSET_OF(Isolate, isolate_data_.fast_c_call_caller_pc_)),
3309 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, isolate_data_.cage_base_)),
3312 OFFSET_OF(Isolate, isolate_data_.long_task_stats_counter_)),
3314 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, isolate_data_.stack_guard_)),
3316 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, isolate_data_.roots_table_)),
3335 void Isolate::ClearSerializerData() {
3340 bool Isolate::LogObjectRelocation() {
3348 void Isolate::Deinit() {
3503 void Isolate::SetIsolateThreadLocals(Isolate* isolate,
3509 Isolate::~Isolate() {
3593 void Isolate::InitializeThreadLocal() {
3600 void Isolate::SetTerminationOnExternalTryCatch() {
3608 bool Isolate::PropagatePendingExceptionToExternalTryCatch(
3640 bool Isolate::InitializeCounters() {
3646 void Isolate::InitializeLoggingAndCounters() {
3655 void CreateOffHeapTrampolines(Isolate* isolate) {
3681 bool IsolateIsCompatibleWithEmbeddedBlob(Isolate* isolate) {
3689 void Isolate::InitializeDefaultEmbeddedBlob() {
3714 void Isolate::CreateAndSetEmbeddedBlob() {
3750 void Isolate::MaybeRemapEmbeddedBuiltinsIntoCodeRange() {
3772 void Isolate::TearDownEmbeddedBlob() {
3796 bool Isolate::InitWithoutSnapshot() {
3800 bool Isolate::InitWithSnapshot(SnapshotData* startup_snapshot_data,
3817 void Isolate::AddCrashKeysForIsolateAndHeapPointers() {
3842 void Isolate::InitializeCodeRanges() {
3862 explicit BigIntPlatform(Isolate* isolate) : isolate_(isolate) {}
3872 Isolate* isolate_;
3876 VirtualMemoryCage* Isolate::GetPtrComprCodeCageForTesting() {
3880 bool Isolate::Init(SnapshotData* startup_snapshot_data,
4144 "The Isolate is incompatible with the embedded blob. This is usually "
4229 void Isolate::Enter() {
4230 Isolate* current_isolate = nullptr;
4261 void Isolate::Exit() {
4277 Isolate* previous_isolate = item->previous_isolate;
4285 std::unique_ptr<PersistentHandles> Isolate::NewPersistentHandles() {
4289 void Isolate::DumpAndResetStats() {
4331 // just dump and reset the engines statistics together with the Isolate.
4352 void Isolate::AbortConcurrentOptimization(BlockingBehavior behavior) {
4359 CompilationStatistics* Isolate::GetTurboStatistics() {
4365 CodeTracer* Isolate::GetCodeTracer() {
4370 bool Isolate::use_optimizer() {
4376 void Isolate::IncreaseTotalRegexpCodeGenerated(Handle<HeapObject> code) {
4382 bool Isolate::NeedsDetailedOptimizedCodeLineInfo() const {
4387 bool Isolate::NeedsSourcePositionsForProfiling() const {
4398 void Isolate::SetFeedbackVectorsForProfilingTools(Object value) {
4403 void Isolate::MaybeInitializeVectorListFromHeap() {
4436 void Isolate::set_date_cache(DateCache* date_cache) {
4443 Isolate::KnownPrototype Isolate::IsArrayOrObjectOrStringPrototype(
4460 bool Isolate::IsInAnyContext(Object object, uint32_t index) {
4473 void Isolate::UpdateNoElementsProtectorOnSetElement(Handle<JSObject> object) {
4480 this->CountUsage(v8::Isolate::kObjectPrototypeHasElements);
4482 this->CountUsage(v8::Isolate::kArrayPrototypeHasElements);
4499 base::RandomNumberGenerator* Isolate::random_number_generator() {
4505 base::RandomNumberGenerator* Isolate::fuzzer_rng() {
4518 int Isolate::GenerateIdentityHash(uint32_t mask) {
4527 Code Isolate::FindCodeObject(Address a) {
4533 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
4539 Handle<Symbol> Isolate::SymbolFor(RootIndex dictionary_index,
4572 void Isolate::AddBeforeCallEnteredCallback(BeforeCallEnteredCallback callback) {
4579 void Isolate::RemoveBeforeCallEnteredCallback(
4587 void Isolate::AddCallCompletedCallback(CallCompletedCallback callback) {
4594 void Isolate::RemoveCallCompletedCallback(CallCompletedCallback callback) {
4601 void Isolate::FireCallCompletedCallbackInternal(
4609 v8::Isolate* isolate = reinterpret_cast<v8::Isolate*>(this);
4614 v8::Isolate::SuppressMicrotaskExecutionScope suppress(isolate);
4617 callback(reinterpret_cast<v8::Isolate*>(this));
4621 void Isolate::UpdatePromiseHookProtector() {
4628 void Isolate::PromiseHookStateUpdated() {
4642 MaybeHandle<JSPromise> NewRejectedPromise(Isolate* isolate,
4660 MaybeHandle<JSPromise> Isolate::RunHostImportModuleDynamicallyCallback(
4718 MaybeHandle<FixedArray> Isolate::GetImportAssertionsFromArgument(
4826 void Isolate::ClearKeptObjects() { heap()->ClearKeptObjects(); }
4828 void Isolate::SetHostImportModuleDynamicallyCallback(
4834 void Isolate::SetHostImportModuleDynamicallyCallback(
4840 MaybeHandle<JSObject> Isolate::RunHostInitializeImportMetaObjectCallback(
4858 void Isolate::SetHostInitializeImportMetaObjectCallback(
4863 void Isolate::SetHostCreateShadowRealmContextCallback(
4868 MaybeHandle<NativeContext> Isolate::RunHostCreateShadowRealmContextCallback() {
4889 MaybeHandle<Object> Isolate::RunPrepareStackTraceCallback(
4902 int Isolate::LookupOrAddExternallyCompiledFilename(const char* filename) {
4910 const char* Isolate::GetExternallyCompiledFilename(int index) const {
4917 int Isolate::GetExternallyCompiledFilenameCount() const {
4924 void Isolate::PrepareBuiltinSourcePositionMap() {
4931 void Isolate::PrepareBuiltinLabelInfoMap() {
4940 void Isolate::SetBuiltinUnwindData(
4949 void Isolate::SetPrepareStackTraceCallback(PrepareStackTraceCallback callback) {
4953 bool Isolate::HasPrepareStackTraceCallback() const {
4957 void Isolate::SetAddCrashKeyCallback(AddCrashKeyCallback callback) {
4964 void Isolate::SetAtomicsWaitCallback(v8::Isolate::AtomicsWaitCallback callback,
4970 void Isolate::RunAtomicsWaitCallback(v8::Isolate::AtomicsWaitEvent event,
4981 reinterpret_cast<v8::Isolate::AtomicsWaitWakeHandle*>(stop_handle),
4985 void Isolate::SetPromiseHook(PromiseHook hook) {
4990 void Isolate::RunAllPromiseHooks(PromiseHookType type,
5003 void Isolate::RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise,
5011 void Isolate::OnAsyncFunctionSuspended(Handle<JSPromise> promise,
5028 void Isolate::OnPromiseThen(Handle<JSPromise> promise) {
5066 void Isolate::OnPromiseBefore(Handle<JSPromise> promise) {
5078 void Isolate::OnPromiseAfter(Handle<JSPromise> promise) {
5090 void Isolate::OnTerminationDuringRunMicrotasks() {
5096 // (1) Resetting the |current_microtask| slot on the Isolate to avoid leaking
5137 void Isolate::SetPromiseRejectCallback(PromiseRejectCallback callback) {
5141 void Isolate::ReportPromiseReject(Handle<JSPromise> promise,
5149 void Isolate::SetUseCounterCallback(v8::Isolate::UseCounterCallback callback) {
5154 void Isolate::CountUsage(v8::Isolate::UseCounterFeature feature) {
5166 use_counter_callback_(reinterpret_cast<v8::Isolate*>(this), feature);
5173 void Isolate::CountUsage(v8::Isolate::UseCounterFeature feature, int count) {
5179 int Isolate::GetNextScriptId() { return heap()->NextScriptId(); }
5182 std::string Isolate::GetTurboCfgFileName(Isolate* isolate) {
5200 void Isolate::AddDetachedContext(Handle<Context> context) {
5209 void Isolate::CheckDetachedContextsAfterGC() {
5247 void Isolate::DetachGlobal(Handle<Context> env) {
5265 double Isolate::LoadStartTimeMs() {
5270 void Isolate::UpdateLoadStartTime() {
5275 void Isolate::SetRAILMode(RAILMode rail_mode) {
5291 void Isolate::IsolateInBackgroundNotification() {
5296 void Isolate::IsolateInForegroundNotification() {
5300 void Isolate::PrintWithTimestamp(const char* format, ...) {
5309 void Isolate::SetIdle(bool is_idle) {
5320 void Isolate::CollectSourcePositionsForAllBytecodeArrays() {
5344 std::string GetStringFromLocales(Isolate* isolate, Handle<Object> locales) {
5349 bool StringEqualsLocales(Isolate* isolate, const std::string& str,
5358 const std::string& Isolate::DefaultLocale() {
5376 void Isolate::ResetDefaultLocale() {
5384 icu::UMemory* Isolate::get_cached_icu_object(ICUObjectCacheType cache_type,
5392 void Isolate::set_icu_object_in_cache(ICUObjectCacheType cache_type,
5399 void Isolate::clear_cached_icu_object(ICUObjectCacheType cache_type) {
5403 void Isolate::clear_cached_icu_objects() {
5422 SaveContext::SaveContext(Isolate* isolate) : isolate_(isolate) {
5438 SaveAndSwitchContext::SaveAndSwitchContext(Isolate* isolate,
5445 AssertNoContextChange::AssertNoContextChange(Isolate* isolate)
5463 void Isolate::AddCodeMemoryRange(MemoryRange range) {
5498 void Isolate::AddCodeMemoryChunk(MemoryChunk* chunk) {
5513 void Isolate::AddCodeRange(Address begin, size_t length_in_bytes) {
5518 bool Isolate::RequiresCodeRange() const {
5522 v8::metrics::Recorder::ContextId Isolate::GetOrRegisterRecorderContextId(
5530 v8::HandleScope handle_scope(reinterpret_cast<v8::Isolate*>(this));
5534 std::forward_as_tuple(reinterpret_cast<v8::Isolate*>(this),
5547 MaybeLocal<v8::Context> Isolate::GetContextFromRecorderContextId(
5552 return result->second.Get(reinterpret_cast<v8::Isolate*>(this));
5555 void Isolate::UpdateLongTaskStats() {
5562 v8::metrics::LongTaskStats* Isolate::GetCurrentLongTaskStats() {
5567 void Isolate::RemoveContextIdCallback(const v8::WeakCallbackInfo<void>& data) {
5568 Isolate* isolate = reinterpret_cast<Isolate*>(data.GetIsolate());
5573 LocalHeap* Isolate::main_thread_local_heap() {
5577 LocalHeap* Isolate::CurrentLocalHeap() {
5583 void Isolate::RemoveCodeMemoryChunk(MemoryChunk* chunk) {
5618 Address Isolate::load_from_stack_count_address(const char* function_name) {
5631 Address Isolate::store_to_stack_count_address(const char* function_name) {
5643 void Isolate::AttachToSharedIsolate() {
5656 void Isolate::DetachFromSharedIsolate() {