Lines Matching defs:isolate

31 #include "src/execution/isolate-utils-inl.h"
174 DCHECK(isolate()->serializer_enabled());
179 DCHECK(isolate()->serializer_enabled());
206 : isolate_(isolate()),
213 isolate()->OwnsStringTable() ? AllocationType::kOld
664 reinterpret_cast<v8::Isolate*>(isolate())->GetHeapStatistics(&stats);
674 reinterpret_cast<v8::Isolate*>(isolate())->GetHeapSpaceStatistics(
690 MEMBER("isolate") << QUOTE(reinterpret_cast<void*>(isolate())) << ","
692 MEMBER("time_ms") << isolate()->time_millis_since_init() << ","
723 isolate()->CountUsage(static_cast<v8::Isolate::UseCounterFeature>(i),
766 heap_->isolate()->PrintStack(stdout, Isolate::kPrintStackConcise);
852 Handle<WeakArrayList> array(retaining_path_targets(), isolate());
854 array = WeakArrayList::AddToEnd(isolate(), array,
1105 PtrComprCageBase cage_base(isolate());
1201 inline bool DigestPretenuringFeedback(Isolate* isolate, AllocationSite site,
1220 PrintIsolate(isolate,
1232 bool PretenureAllocationSiteManually(Isolate* isolate, AllocationSite site) {
1244 PrintIsolate(isolate,
1337 PrintIsolate(isolate(),
1633 RCS_SCOPE(isolate(), RuntimeCallCounterId::kGC_Custom_AllAvailableGarbage);
1636 isolate()->AbortConcurrentOptimization(BlockingBehavior::kDontBlock);
1637 isolate()->ClearSerializerData();
1765 // During isolate initialization heap always grows. GC is only requested
1787 isolate()->global_handles()->InvokeSecondPassPhantomCallbacks();
1802 AllowJavascriptExecution allow_js(isolate());
1819 VMState<GC> state(isolate());
1825 isolate()
1881 isolate()->CheckDetachedContextsAfterGC();
1933 AllowJavascriptExecution allow_js(isolate());
1945 AllowJavascriptExecution allow_js(isolate());
1956 isolate()->CountUsage(v8::Isolate::kForcedGC);
1987 isolate()->AbortConcurrentOptimization(BlockingBehavior::kDontBlock);
1988 if (!isolate()->context().is_null()) {
1989 RemoveDirtyFinalizationRegistriesOnContext(isolate()->raw_native_context());
1990 isolate()->raw_native_context().set_retained_maps(
2198 isolate(), current_rtts, length, AllocationType::kOld);
2243 DisallowJavascriptExecution no_js(isolate());
2394 DCHECK_NOT_NULL(isolate()->shared_isolate());
2396 isolate()->shared_isolate()->heap()->PerformSharedGarbageCollection(
2397 isolate(), gc_reason);
2404 // Stop all client isolates attached to this isolate
2407 // Migrate shared isolate to the main thread of the initiator isolate.
2408 v8::Locker locker(reinterpret_cast<v8::Isolate*>(isolate()));
2409 v8::Isolate::Scope isolate_scope(reinterpret_cast<v8::Isolate*>(isolate()));
2413 DCHECK_NOT_NULL(isolate()->global_safepoint());
2415 isolate()->global_safepoint()->IterateClientIsolates([](Isolate* client) {
2430 isolate()->global_safepoint()->IterateClientIsolates([](Isolate* client) {
2565 RCS_SCOPE(isolate(), RuntimeCallCounterId::kGCPrologueCallback);
2568 v8::Isolate* isolate = reinterpret_cast<v8::Isolate*>(this->isolate());
2569 info.callback(isolate, gc_type, flags, info.data);
2575 RCS_SCOPE(isolate(), RuntimeCallCounterId::kGCEpilogueCallback);
2578 v8::Isolate* isolate = reinterpret_cast<v8::Isolate*>(this->isolate());
2579 info.callback(isolate, gc_type, flags, info.data);
2595 isolate()->shared_isolate() ? isolate()->shared_isolate()->heap()
2630 isolate()->PrintWithTimestamp(
2642 isolate()->shared_isolate() ? isolate()->shared_isolate()->heap()
2751 isolate()->PrintWithTimestamp(
2782 isolate()->shared_isolate() ? isolate()->shared_isolate()->heap()
2822 PrintIsolate(isolate(), "Fast promotion mode: %s survival rate: %zu%%\n",
2888 PtrComprCageBase cage_base(heap->isolate());
2937 DCHECK(!obj.IsTheHole(heap_->isolate()));
2961 DCHECK(!obj.IsTheHole(heap_->isolate()));
3084 if (head.IsUndefined(isolate())) {
3161 Isolate* isolate, v8::ExternalResourceVisitor* visitor)
3162 : isolate_(isolate), visitor_(visitor) {}
3175 } external_string_table_visitor(isolate(), visitor);
3265 isolate()->counters()->gc_last_resort_from_handles()->Increment();
3340 filler.map(heap->isolate()).IsMap());
3402 if (isolate()->heap_profiler()->is_sampling_allocations()) return false;
3407 if (isolate()->concurrent_recompilation_enabled() &&
3408 isolate()->optimizing_compile_dispatcher()->HasJobs()) {
3719 if (!isolate()->shared_isolate()) return;
3727 if (!isolate()->shared_isolate()) return;
3756 isolate()->PrintWithTimestamp(
3844 return FLAG_optimize_for_size || isolate()->IsIsolateInBackground() ||
3845 isolate()->IsMemorySavingsModeActive() || HighMemoryPressure() ||
3856 isolate()->IsIsolateInBackground()) {
3934 isolate()->PrintWithTimestamp(
3943 isolate()->counters()->gc_incremental_marking_finalize());
4032 PtrComprCageBase cage_base(isolate());
4047 PtrComprCageBase cage_base(isolate());
4206 : CancelableTask(heap->isolate()), heap_(heap) {}
4223 isolate()->AbortConcurrentOptimization(BlockingBehavior::kDontBlock);
4291 ExecutionAccess access(isolate());
4292 isolate()->stack_guard()->RequestGC();
4294 reinterpret_cast<v8::Isolate*>(isolate()));
4350 VMState<EXTERNAL> callback_state(isolate());
4351 HandleScope scope(isolate());
4368 HandleScope handle_scope(isolate());
4393 CodeStatistics::ResetCodeAndMetadataStatistics(isolate());
4396 CodeStatistics::CollectCodeStatistics(code_space_, isolate());
4397 CodeStatistics::CollectCodeStatistics(old_space_, isolate());
4398 CodeStatistics::CollectCodeStatistics(code_lo_space_, isolate());
4405 isolate()->PrintStack(stdout);
4415 CodeStatistics::ReportCodeStatistics(isolate());
4517 if (isolate()->OwnsStringTable()) return false;
4558 bool Heap::IsShared() { return isolate()->is_shared(); }
4609 HandleScope scope(isolate());
4618 if (!isolate()->context().is_null() &&
4619 !isolate()->normalized_map_cache()->IsUndefined(isolate())) {
4620 NormalizedMapCache::cast(*isolate()->normalized_map_cache())
4621 .NormalizedMapCacheVerify(isolate());
4628 if (isolate()->has_active_deserializer()) return;
4633 if (new_space_) new_space_->Verify(isolate());
4635 old_space_->Verify(isolate(), &visitor);
4637 map_space_->Verify(isolate(), &visitor);
4641 code_space_->Verify(isolate(), &no_dirty_regions_visitor);
4643 lo_space_->Verify(isolate());
4644 code_lo_space_->Verify(isolate());
4645 if (new_lo_space_) new_lo_space_->Verify(isolate());
4646 isolate()->string_table()->VerifyIfOwnedBy(isolate());
4655 read_only_space_->Verify(isolate());
4660 SlotVerifyingVisitor(Isolate* isolate, std::set<Address>* untyped,
4662 : ObjectVisitorWithCageBases(isolate), untyped_(untyped), typed_(typed) {}
4734 OldToNewSlotVerifyingVisitor(Isolate* isolate, std::set<Address>* untyped,
4737 : SlotVerifyingVisitor(isolate, untyped, typed),
4797 PtrComprCageBase cage_base(isolate());
4804 OldToNewSlotVerifyingVisitor visitor(isolate(), &old_to_new,
4872 isolate()->OwnsStringTable()) {
4879 isolate()->string_table()->IterateElements(v);
4894 ExecutionAccess access(isolate());
4911 cage_base_(heap->isolate())
5010 // It is also possible to create a snapshot of a *running* isolate for testing
5118 if (isolate()->is_shared()) {
5119 isolate()->global_safepoint()->IterateClientIsolates(
5131 Builtins* builtins = isolate()->builtins();
5445 return isolate()->rail_mode() == PERFORMANCE_LOAD &&
5448 isolate()->LoadStartTimeMs() + kMaxLoadTimeMs;
5577 isolate()->PrintWithTimestamp(
5686 tp_heap_ = third_party_heap::Heap::New(isolate());
5805 StressConcurrentAllocatorTask::Schedule(heap_->isolate());
5843 memory_measurement_.reset(new MemoryMeasurement(isolate()));
5849 local_embedder_heap_tracer_.reset(new LocalEmbedderHeapTracer(isolate()));
5888 if (isolate()->shared_isolate()) {
5889 Heap* shared_heap = isolate()->shared_isolate()->heap();
5910 int64_t rnd = isolate()->random_number_generator()->NextInt64();
5938 return isolate()->fuzzer_rng()->NextInt(FLAG_stress_marking + 1);
5944 if (isolate()->snapshot_available()) s->ShrinkImmortalImmovablePages();
5980 isolate()->AddCodeMemoryChunk(chunk);
6014 CppHeap::From(cpp_heap)->AttachIsolate(isolate());
6189 isolate()->read_only_heap()->OnHeapTearDown(this);
6264 heap->isolate(),
6265 handle(ReadOnlyRoots(heap).empty_weak_array_list(), heap->isolate()),
6291 prototype_infos.emplace_back(handle(prototype_info, isolate()));
6298 WeakArrayList::cast(prototype_info->prototype_users()), isolate());
6308 Handle<WeakArrayList> scripts(script_list(), isolate());
6320 isolate());
6325 WeakArrayList::AddToEnd(isolate(), array, MaybeObjectHandle::Weak(map));
6327 isolate(), array,
6328 MaybeObjectHandle(Smi::FromInt(FLAG_retain_maps_for_n_gc), isolate()));
6363 v8::internal::V8::FatalProcessOutOfMemory(isolate(), location, true);
6704 Isolate* isolate = heap_->isolate();
6707 if (o.IsTheHole(isolate)) {
6726 Isolate* isolate = heap_->isolate();
6729 if (o.IsTheHole(isolate)) {
6847 reinterpret_cast<v8::Isolate*>(isolate()));
6860 DCHECK(finalization_registry.next_dirty().IsUndefined(isolate()));
6863 if (dirty_js_finalization_registries_list_tail().IsUndefined(isolate())) {
6864 DCHECK(dirty_js_finalization_registries_list().IsUndefined(isolate()));
6886 isolate());
6901 Isolate* isolate = this->isolate();
6902 Object prev = ReadOnlyRoots(isolate).undefined_value();
6904 while (!current.IsUndefined(isolate)) {
6908 if (prev.IsUndefined(isolate)) {
6918 ReadOnlyRoots(isolate).undefined_value());
6931 if (weak_refs_keep_during_job().IsUndefined(isolate())) {
6932 table = isolate()->factory()->NewOrderedHashSet();
6935 handle(OrderedHashSet::cast(weak_refs_keep_during_job()), isolate());
6937 table = OrderedHashSet::Add(isolate(), table, target).ToHandleChecked();
6942 set_weak_refs_keep_during_job(ReadOnlyRoots(isolate()).undefined_value());
6988 while (!context.IsUndefined(isolate())) {
6999 while (!context.IsUndefined(isolate())) {
7001 result.push_back(handle(native_context, isolate()));
7010 while (!context.IsUndefined(isolate())) {
7167 PtrComprCageBase cage_base(isolate());
7171 PtrComprCageBase code_cage_base(isolate()->code_cage_base());
7191 OffHeapInstructionStream::TryLookupCode(isolate(), addr);
7203 OffHeapInstructionStream::TryLookupCode(isolate(), inner_pointer);
7205 return FromCodeT(isolate()->builtins()->code(maybe_builtin));
7239 ReadOnlyHeapObjectIterator iterator(isolate()->read_only_heap());
7253 Address flags = (isolate()->is_short_builtin_calls_enabled() ? 1 : 0) |
7257 isolate()->PushParamsAndDie(
7259 const_cast<uint8_t*>(isolate()->embedded_blob_code()),
7302 Isolate* isolate) {
7309 isolate->heap()->RecordEphemeronKeyWrite(table, key_slot_address);