Home
last modified time | relevance | path

Searched refs:MemoryChunk (Results 1 – 25 of 53) sorted by relevance

123

/external/v8/src/heap/
Dspaces-inl.h40 void Bitmap::Clear(MemoryChunk* chunk) { in Clear()
46 void Bitmap::SetAllBits(MemoryChunk* chunk) { in SetAllBits()
143 ? MemoryChunk::FromAddress(o->address())->InToSpace() in Contains()
144 : MemoryChunk::FromAddress(o->address())->InFromSpace(); in Contains()
153 if (p == MemoryChunk::FromAddress(a)) return true; in ContainsSlow()
162 return MemoryChunk::FromAddress(o->address())->InNewSpace(); in Contains()
192 Page* Page::Initialize(Heap* heap, MemoryChunk* chunk, Executability executable, in Initialize()
196 chunk->SetFlag(in_to_space ? MemoryChunk::IN_TO_SPACE in Initialize()
197 : MemoryChunk::IN_FROM_SPACE); in Initialize()
198 DCHECK(!chunk->IsFlagSet(in_to_space ? MemoryChunk::IN_FROM_SPACE in Initialize()
[all …]
Dremembered-set.h65 heap, [callback](MemoryChunk* chunk) { Iterate(chunk, callback); }); in Iterate()
73 MemoryChunk* chunk; in IterateMemoryChunks()
87 static void Iterate(MemoryChunk* chunk, Callback callback) { in Iterate()
138 IterateMemoryChunks(heap, [callback](MemoryChunk* chunk) { in IterateTyped()
147 static void IterateTyped(MemoryChunk* chunk, Callback callback) { in IterateTyped()
161 MemoryChunk* chunk; in ClearAll()
177 static SlotSet* GetSlotSet(MemoryChunk* chunk) { in GetSlotSet()
185 static TypedSlotSet* GetTypedSlotSet(MemoryChunk* chunk) { in GetTypedSlotSet()
193 static void ReleaseSlotSet(MemoryChunk* chunk) { in ReleaseSlotSet()
201 static void ReleaseTypedSlotSet(MemoryChunk* chunk) { in ReleaseTypedSlotSet()
[all …]
Dspaces.cc140 Address aligned_base = RoundUp(base, MemoryChunk::kAlignment); in SetUp()
214 DCHECK(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory()
237 DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory()
263 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in ReserveBlock()
269 DCHECK(IsAddressAligned(block->start, MemoryChunk::kAlignment)); in ReserveBlock()
316 MemoryChunk* chunk = nullptr; in TearDown()
318 FreeMemory(reinterpret_cast<Address>(chunk), MemoryChunk::kPageSize, in TearDown()
374 MemoryChunk* chunk = nullptr; in PerformFreeMemoryOnQueuedChunks()
377 bool pooled = chunk->IsFlagSet(MemoryChunk::POOLED); in PerformFreeMemoryOnQueuedChunks()
388 std::list<MemoryChunk*> delayed_chunks(std::move(delayed_regular_chunks_)); in ReconsiderDelayedChunks()
[all …]
Dspaces.h32 class MemoryChunk; variable
206 static inline void Clear(MemoryChunk* chunk);
208 static inline void SetAllBits(MemoryChunk* chunk);
406 class MemoryChunk {
565 static MemoryChunk* FromAddress(Address a) { in FromAddress()
566 return reinterpret_cast<MemoryChunk*>(OffsetFrom(a) & ~kAlignmentMask); in FromAddress()
569 static inline MemoryChunk* FromAnyPointerAddress(Heap* heap, Address addr);
576 MemoryChunk* chunk = MemoryChunk::FromAddress(mark - 1); in UpdateHighWaterMark()
585 static bool IsValid(MemoryChunk* chunk) { return chunk != nullptr; } in IsValid()
681 if (IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) { in ResetProgressBar()
[all …]
Dincremental-marking.cc81 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in RecordWriteFromCode()
83 if (counter < (MemoryChunk::kWriteBarrierCounterGranularity / 2)) { in RecordWriteFromCode()
85 MemoryChunk::kWriteBarrierCounterGranularity - in RecordWriteFromCode()
88 MemoryChunk::kWriteBarrierCounterGranularity); in RecordWriteFromCode()
155 MemoryChunk::IncrementLiveBytesFromGC(heap_obj, -heap_obj->Size()); in MarkObjectGreyDoNotEnqueue()
167 MemoryChunk::IncrementLiveBytesFromGC(heap_object, size); in MarkBlackOrKeepBlack()
187 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); in VisitFixedArrayIncremental()
192 chunk->SetFlag(MemoryChunk::HAS_PROGRESS_BAR); in VisitFixedArrayIncremental()
194 if (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) { in VisitFixedArrayIncremental()
275 MemoryChunk::IncrementLiveBytesFromGC(heap_object, heap_object->Size()); in INLINE()
[all …]
Dremembered-set.cc19 for (MemoryChunk* chunk : *heap->old_space()) { in ClearInvalidSlots()
37 MemoryChunk* chunk = MemoryChunk::FromAnyPointerAddress(heap, addr); in VerifyValidSlots()
54 bool RememberedSet<direction>::IsValidSlot(Heap* heap, MemoryChunk* chunk, in IsValidSlot()
Dmark-compact.h34 MemoryChunk* p = MemoryChunk::FromAddress(addr); in INLINE()
324 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { in MarkBitCellIterator()
363 MemoryChunk* chunk_;
381 explicit LiveObjectIterator(MemoryChunk* chunk) in LiveObjectIterator()
393 MemoryChunk* chunk_;
610 bool IsSlotInBlackObject(MemoryChunk* p, Address slot);
736 void DiscoverGreyObjectsOnPage(MemoryChunk* p);
810 bool VisitLiveObjects(MemoryChunk* page, Visitor* visitor,
815 void RecomputeLiveBytes(MemoryChunk* page);
Dpage-parallel-job.h60 void AddPage(MemoryChunk* chunk, typename JobTraits::PerPageData data) { in AddPage()
127 Item(MemoryChunk* chunk, typename JobTraits::PerPageData data, Item* next) in Item()
129 MemoryChunk* chunk;
Dmark-compact-inl.h18 MemoryChunk::IncrementLiveBytesFromGC(obj, obj->Size()); in PushBlack()
28 MemoryChunk::IncrementLiveBytesFromGC(obj, -obj->Size()); in UnshiftBlack()
48 MemoryChunk::IncrementLiveBytesFromGC(obj, obj->Size()); in SetMark()
Dincremental-marking.h184 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { in SetOldSpacePageFlags()
262 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking,
265 static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking);
Dmark-compact.cc435 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in ClearMarkbits()
589 DCHECK(MemoryChunk::FromAddress(old_start) == in TransferMark()
590 MemoryChunk::FromAddress(new_start)); in TransferMark()
721 if (p->IsFlagSet(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING)) { in CollectEvacuationCandidates()
724 p->ClearFlag(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in CollectEvacuationCandidates()
1530 void MarkCompactCollector::DiscoverGreyObjectsOnPage(MemoryChunk* p) { in DiscoverGreyObjectsOnPage()
2909 bool MarkCompactCollector::IsSlotInBlackObject(MemoryChunk* p, Address slot) { in IsSlotInBlackObject()
3057 static inline EvacuationMode ComputeEvacuationMode(MemoryChunk* chunk) { in ComputeEvacuationMode()
3059 if (chunk->IsFlagSet(MemoryChunk::PAGE_NEW_OLD_PROMOTION)) in ComputeEvacuationMode()
3061 if (chunk->IsFlagSet(MemoryChunk::PAGE_NEW_NEW_PROMOTION)) in ComputeEvacuationMode()
[all …]
Dheap-inl.h258 MemoryChunk::IncrementLiveBytesFromGC(object, size_in_bytes); in AllocateRaw()
322 MemoryChunk* memory_chunk = MemoryChunk::FromAddress(object_address); in UpdateAllocationsHash()
408 return page->IsFlagSet(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK) && in ShouldBePromoted()
456 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in AllowedToBeMigrated()
Dscavenger.cc142 MemoryChunk::IncrementLiveBytesFromGC(target, size); in INLINE()
/external/v8/test/cctest/heap/
Dtest-compaction.cc57 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
105 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
183 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
270 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
Dtest-spaces.cc162 : MemoryChunk::kObjectStartOffset; in VerifyMemoryChunk()
166 MemoryChunk* memory_chunk = memory_allocator->AllocateChunk( in VerifyMemoryChunk()
169 ? MemoryChunk::kAlignment in VerifyMemoryChunk()
246 TEST(MemoryChunk) { in TEST() argument
Dtest-array-buffer-tracker.cc128 page_before_gc->SetFlag(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in TEST()
/external/v8/test/cctest/
Dtest-slots-buffer.cc108 page->SetFlag(MemoryChunk::EVACUATION_CANDIDATE); in TEST()
/external/v8/src/x87/
Dmacro-assembler-x87.cc171 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
433 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
492 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
499 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
551 MemoryChunk::kPointersToHereAreInterestingMask, zero, &done, in RecordWriteCodeEntryField()
554 MemoryChunk::kPointersFromHereAreInterestingMask, zero, &done, in RecordWriteCodeEntryField()
3053 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
3055 test(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
3107 test(mask_scratch, Operand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3111 test(mask_scratch, Operand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
[all …]
/external/v8/src/ia32/
Dmacro-assembler-ia32.cc177 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
514 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
577 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
584 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
636 MemoryChunk::kPointersToHereAreInterestingMask, zero, &done, in RecordWriteCodeEntryField()
639 MemoryChunk::kPointersFromHereAreInterestingMask, zero, &done, in RecordWriteCodeEntryField()
3206 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
3208 test(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
3260 test(mask_scratch, Operand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3264 test(mask_scratch, Operand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
[all …]
/external/v8/src/
Dglobals.h400 class MemoryChunk; variable
644 MemoryChunk* page,
/external/v8/src/arm/
Dmacro-assembler-arm.cc446 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
534 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
608 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
614 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
671 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWriteCodeEntryField()
673 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done); in RecordWriteCodeEntryField()
3654 ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
3680 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3691 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize + kPointerSize)); in HasColor()
3726 ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in JumpIfWhite()
/external/v8/src/arm64/
Dmacro-assembler-arm64.cc1582 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
4033 MemoryChunk::kPointersToHereAreInterestingMask, &done); in RecordWriteCodeEntryField()
4035 MemoryChunk::kPointersFromHereAreInterestingMask, &done); in RecordWriteCodeEntryField()
4178 Ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
4191 Ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlagSet()
4201 Ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlagClear()
4299 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
4368 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
4373 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
4449 Ldr(bitmap_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
[all …]
/external/v8/src/ppc/
Dmacro-assembler-ppc.cc298 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
374 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWriteForMap()
444 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWrite()
448 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done); in RecordWrite()
505 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWriteCodeEntryField()
507 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done); in RecordWriteCodeEntryField()
3612 LoadP(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
3640 lwz(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3654 lwz(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize + kIntSize)); in HasColor()
3691 lwz(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in JumpIfWhite()
/external/v8/src/s390/
Dmacro-assembler-s390.cc268 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
341 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWriteForMap()
406 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWrite()
410 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done); in RecordWrite()
465 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWriteCodeEntryField()
467 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done); in RecordWriteCodeEntryField()
3368 tm(MemOperand(scratch, MemoryChunk::kFlagsOffset + byte_offset), in CheckPageFlag()
3371 LoadP(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
3398 LoadlW(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3413 LoadlW(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize + kIntSize)); in HasColor()
[all …]
/external/v8/src/x64/
Dmacro-assembler-x64.cc257 (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
390 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
452 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
460 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
515 MemoryChunk::kPointersToHereAreInterestingMask, zero, &done, in RecordWriteCodeEntryField()
518 MemoryChunk::kPointersFromHereAreInterestingMask, zero, &done, in RecordWriteCodeEntryField()
5516 testb(Operand(scratch, MemoryChunk::kFlagsOffset), in CheckPageFlag()
5519 testl(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
5538 andp(rcx, Operand(bitmap_scratch, MemoryChunk::kHeaderSize)); in JumpIfBlack()
5582 testp(Operand(bitmap_scratch, MemoryChunk::kHeaderSize), mask_scratch); in JumpIfWhite()

123