Home
last modified time | relevance | path

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

12

/external/v8/src/heap/
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()
141 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in RecordWrites()
142 if (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) { in RecordWrites()
159 MemoryChunk::IncrementLiveBytesFromGC(obj, -obj_size); in BlackToGreyAndUnshift()
194 MemoryChunk::IncrementLiveBytesFromGC(heap_obj, -heap_obj->Size()); in MarkObjectGreyDoNotEnqueue()
206 MemoryChunk::IncrementLiveBytesFromGC(heap_object, size); in MarkBlackOrKeepBlack()
223 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); in VisitFixedArrayIncremental()
[all …]
Dstore-buffer.cc146 MemoryChunk* chunk; in EnsureSpace()
155 Filter(MemoryChunk::SCAN_ON_SCAVENGE); in EnsureSpace()
186 MemoryChunk* chunk; in ExemptPopularPages()
191 MemoryChunk* previous_chunk = NULL; in ExemptPopularPages()
194 MemoryChunk* containing_chunk = NULL; in ExemptPopularPages()
198 containing_chunk = MemoryChunk::FromAnyPointerAddress(heap_, addr); in ExemptPopularPages()
209 Filter(MemoryChunk::SCAN_ON_SCAVENGE); in ExemptPopularPages()
219 MemoryChunk* previous_chunk = NULL; in Filter()
222 MemoryChunk* containing_chunk = NULL; in Filter()
226 containing_chunk = MemoryChunk::FromAnyPointerAddress(heap_, addr); in Filter()
[all …]
Dspaces.cc135 Address aligned_base = RoundUp(base, MemoryChunk::kAlignment); in SetUp()
210 DCHECK(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory()
232 DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory()
258 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in ReserveBlock()
264 DCHECK(IsAddressAligned(block->start, MemoryChunk::kAlignment)); in ReserveBlock()
428 MemoryChunk* chunk = in Initialize()
429 MemoryChunk::Initialize(heap, start, Page::kPageSize, area_start, in Initialize()
433 chunk->SetFlag(in_to_space ? MemoryChunk::IN_TO_SPACE in Initialize()
434 : MemoryChunk::IN_FROM_SPACE); in Initialize()
435 DCHECK(!chunk->IsFlagSet(in_to_space ? MemoryChunk::IN_FROM_SPACE in Initialize()
[all …]
Dspaces.h103 class MemoryChunk; variable
200 static inline void Clear(MemoryChunk* chunk);
294 class MemoryChunk {
441 static MemoryChunk* FromAddress(Address a) { in FromAddress()
442 return reinterpret_cast<MemoryChunk*>(OffsetFrom(a) & ~kAlignmentMask); in FromAddress()
445 static const MemoryChunk* FromAddress(const byte* a) { in FromAddress()
446 return reinterpret_cast<const MemoryChunk*>(OffsetFrom(a) & in FromAddress()
451 MemoryChunk::FromAddress(object->address())->IncrementLiveBytes(by); in IncrementLiveBytesFromGC()
455 static inline MemoryChunk* FromAnyPointerAddress(Heap* heap, Address addr);
467 MemoryChunk* chunk = MemoryChunk::FromAddress(mark - 1); in UpdateHighWaterMark()
[all …]
Dspaces-inl.h22 void Bitmap::Clear(MemoryChunk* chunk) { in Clear()
194 Page* Page::Initialize(Heap* heap, MemoryChunk* chunk, Executability executable, in Initialize()
219 void MemoryChunk::set_scan_on_scavenge(bool scan) { in set_scan_on_scavenge()
231 MemoryChunk* MemoryChunk::FromAnyPointerAddress(Heap* heap, Address addr) { in FromAnyPointerAddress()
232 MemoryChunk* maybe = reinterpret_cast<MemoryChunk*>( in FromAnyPointerAddress()
240 MemoryChunk* chunk = MemoryChunk::FromAddress(o->address()); in FromAnyPointerAddress()
258 MemoryChunk* PointerChunkIterator::next() { in next()
285 MemoryChunk* answer = MemoryChunk::FromAddress(heap_object->address()); in next()
512 LargePage* LargePage::Initialize(Heap* heap, MemoryChunk* chunk) { in Initialize()
Dmark-compact.h34 MemoryChunk* p = MemoryChunk::FromAddress(addr); in INLINE()
641 void DiscoverGreyObjectsOnPage(MemoryChunk* p);
728 bool VisitLiveObjects(MemoryChunk* page, HeapObjectVisitor* visitor,
733 void RecomputeLiveBytes(MemoryChunk* page);
782 List<MemoryChunk*> newspace_evacuation_candidates_;
819 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { in MarkBitCellIterator()
858 MemoryChunk* chunk_;
870 explicit LiveObjectIterator(MemoryChunk* chunk) in LiveObjectIterator()
879 MemoryChunk* chunk_;
Dincremental-marking.h183 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { in SetOldSpacePageFlags()
187 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { in SetNewSpacePageFlags()
256 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking,
259 static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking);
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()
Dmark-compact.cc356 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); in VerifyValidStoreAndSlotsBufferEntries()
606 DCHECK(MemoryChunk::FromAddress(old_start) == in TransferMark()
607 MemoryChunk::FromAddress(new_start)); in TransferMark()
741 if (p->IsFlagSet(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING)) { in CollectEvacuationCandidates()
744 p->ClearFlag(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in CollectEvacuationCandidates()
839 p->ClearFlag(MemoryChunk::RESCAN_ON_EVACUATION); in AbortCompaction()
1530 void MarkCompactCollector::DiscoverGreyObjectsOnPage(MemoryChunk* p) { in DiscoverGreyObjectsOnPage()
3207 case MemoryChunk::ParallelCompactingState::kCompactingAborted: in EvacuatePagesInParallel()
3228 case MemoryChunk::kCompactingFinalize: in EvacuatePagesInParallel()
3233 case MemoryChunk::kCompactingDone: in EvacuatePagesInParallel()
[all …]
Dstore-buffer.h164 void Callback(MemoryChunk* page, StoreBufferEvent event);
175 MemoryChunk* current_page_;
Dheap-inl.h312 MemoryChunk* memory_chunk = MemoryChunk::FromAddress(object_address); in UpdateAllocationsHash()
393 return page->IsFlagSet(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK) && in ShouldBePromoted()
427 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in AllowedToBeMigrated()
Dstore-buffer-inl.h46 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), in EnterDirectlyIntoStoreBuffer()
Dheap.cc1555 void Heap::ScavengeStoreBufferCallback(Heap* heap, MemoryChunk* page, in ScavengeStoreBufferCallback()
1564 DCHECK((Page::kPageSize - MemoryChunk::kBodyOffset) % (2 * kPointerSize) == in Initialize()
2145 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in AllocateFillerObject()
3114 MemoryChunk::IncrementLiveBytesFromGC(object, by); in AdjustLiveBytes()
3116 MemoryChunk::IncrementLiveBytesFromMutator(object, by); in AdjustLiveBytes()
3323 MemoryChunk::FromAddress(address)->owner()->identity() != LO_SPACE) { in AllocateCode()
6065 UnmapFreeMemoryTask(Heap* heap, MemoryChunk* head) in UnmapFreeMemoryTask()
6077 MemoryChunk* head_;
6091 void Heap::QueueMemoryChunkForFree(MemoryChunk* chunk) { in QueueMemoryChunkForFree()
6104 MemoryChunk* next; in FilterStoreBufferEntriesOnAboutToBeFreedPages()
[all …]
Dheap.h974 void QueueMemoryChunkForFree(MemoryChunk* chunk);
976 void FreeQueuedChunks(MemoryChunk* list_head);
1687 static void ScavengeStoreBufferCallback(Heap* heap, MemoryChunk* page,
2396 MemoryChunk* chunks_queued_for_free_;
Dscavenger.cc139 MemoryChunk::IncrementLiveBytesFromGC(target, size); in INLINE()
/external/v8/test/cctest/heap/
Dtest-compaction.cc49 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
96 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
172 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
260 MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in HEAP_TEST()
Dtest-spaces.cc163 : MemoryChunk::kObjectStartOffset; in VerifyMemoryChunk()
168 MemoryChunk* memory_chunk = memory_allocator->AllocateChunk(reserve_area_size, in VerifyMemoryChunk()
173 ? MemoryChunk::kAlignment in VerifyMemoryChunk()
218 MemoryChunk::kAlignment) + in TEST()
253 TEST(MemoryChunk) { in TEST() argument
/external/v8/src/x87/
Dmacro-assembler-x87.cc138 DCHECK(MemoryChunk::IN_FROM_SPACE < 8); in InNewSpace()
139 DCHECK(MemoryChunk::IN_TO_SPACE < 8); in InNewSpace()
140 int mask = (1 << MemoryChunk::IN_FROM_SPACE) in InNewSpace()
141 | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
143 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in InNewSpace()
406 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
465 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
472 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
2759 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in CheckPageFlag()
2762 test(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
[all …]
/external/v8/src/ia32/
Dmacro-assembler-ia32.cc138 DCHECK(MemoryChunk::IN_FROM_SPACE < 8); in InNewSpace()
139 DCHECK(MemoryChunk::IN_TO_SPACE < 8); in InNewSpace()
140 int mask = (1 << MemoryChunk::IN_FROM_SPACE) in InNewSpace()
141 | (1 << MemoryChunk::IN_TO_SPACE); in InNewSpace()
143 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in InNewSpace()
481 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
544 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
551 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
2887 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in CheckPageFlag()
2890 test(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
[all …]
/external/v8/test/cctest/
Dtest-slots-buffer.cc108 page->SetFlag(MemoryChunk::EVACUATION_CANDIDATE); in TEST()
Dtest-unboxed-doubles.cc1145 ec_page->SetFlag(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in TEST()
1415 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in TEST()
1523 ec_page->SetFlag(MemoryChunk::FORCE_EVACUATION_CANDIDATE_FOR_TESTING); in TestIncrementalWriteBarrier()
/external/v8/src/
Dglobals.h424 class MemoryChunk; variable
619 MemoryChunk* page,
/external/v8/src/arm/
Dmacro-assembler-arm.cc541 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
615 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
621 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
3263 ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
3289 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3300 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize + kPointerSize)); in HasColor()
3335 ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in JumpIfWhite()
/external/v8/src/ppc/
Dmacro-assembler-ppc.cc382 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWriteForMap()
452 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); in RecordWrite()
456 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done); in RecordWrite()
3189 LoadP(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
3217 lwz(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3231 lwz(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize + kIntSize)); in HasColor()
3268 lwz(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in JumpIfWhite()
/external/v8/src/arm64/
Dmacro-assembler-arm64.cc3947 Ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlagSet()
3957 Ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlagClear()
4055 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
4124 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
4129 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
4205 Ldr(bitmap_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
4294 Ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in JumpIfWhite()

12