Home
last modified time | relevance | path

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

12

/external/v8/src/heap/
Dincremental-marking.cc55 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in RecordWriteFromCode()
57 if (counter < (MemoryChunk::kWriteBarrierCounterGranularity / 2)) { in RecordWriteFromCode()
59 MemoryChunk::kWriteBarrierCounterGranularity - in RecordWriteFromCode()
62 MemoryChunk::kWriteBarrierCounterGranularity); in RecordWriteFromCode()
130 MemoryChunk::IncrementLiveBytesFromGC(heap_obj->address(), in MarkObjectGreyDoNotEnqueue()
143 MemoryChunk::IncrementLiveBytesFromGC(heap_object->address(), size); in MarkBlackOrKeepGrey()
153 MemoryChunk::IncrementLiveBytesFromGC(heap_object->address(), size); in MarkBlackOrKeepBlack()
171 MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); in VisitFixedArrayIncremental()
176 chunk->SetFlag(MemoryChunk::HAS_PROGRESS_BAR); in VisitFixedArrayIncremental()
178 if (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) { in VisitFixedArrayIncremental()
[all …]
Dspaces-inl.h21 void Bitmap::Clear(MemoryChunk* chunk) { in Clear()
136 Page* Page::Initialize(Heap* heap, MemoryChunk* chunk, Executability executable, in Initialize()
157 void MemoryChunk::set_scan_on_scavenge(bool scan) { in set_scan_on_scavenge()
169 MemoryChunk* MemoryChunk::FromAnyPointerAddress(Heap* heap, Address addr) { in FromAnyPointerAddress()
170 MemoryChunk* maybe = reinterpret_cast<MemoryChunk*>( in FromAnyPointerAddress()
178 MemoryChunk* chunk = MemoryChunk::FromAddress(o->address()); in FromAnyPointerAddress()
189 void MemoryChunk::UpdateHighWaterMark(Address mark) { in UpdateHighWaterMark()
194 MemoryChunk* chunk = MemoryChunk::FromAddress(mark - 1); in UpdateHighWaterMark()
292 LargePage* LargePage::Initialize(Heap* heap, MemoryChunk* chunk) { in Initialize()
Dincremental-marking-inl.h21 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in BaseRecordWrite()
22 if (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) { in BaseRecordWrite()
70 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in RecordWrites()
71 if (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) { in RecordWrites()
88 MemoryChunk::IncrementLiveBytesFromGC(obj->address(), -obj_size); in BlackToGreyAndUnshift()
Dspaces.cc128 MemoryChunk::kAlignment); in SetUp()
198 size_t aligned_requested = RoundUp(requested_size, MemoryChunk::kAlignment); in AllocateRawMemory()
207 DCHECK(IsAddressAligned(current.start, MemoryChunk::kAlignment)); in AllocateRawMemory()
234 DCHECK(IsAddressAligned(address, MemoryChunk::kAlignment)); in FreeRawMemory()
403 MemoryChunk* chunk = in Initialize()
404 MemoryChunk::Initialize(heap, start, Page::kPageSize, area_start, in Initialize()
410 chunk->SetFlag(in_to_space ? MemoryChunk::IN_TO_SPACE in Initialize()
411 : MemoryChunk::IN_FROM_SPACE); in Initialize()
412 DCHECK(!chunk->IsFlagSet(in_to_space ? MemoryChunk::IN_FROM_SPACE in Initialize()
413 : MemoryChunk::IN_TO_SPACE)); in Initialize()
[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()
217 MemoryChunk* previous_chunk = NULL; in Filter()
220 MemoryChunk* containing_chunk = NULL; in Filter()
224 containing_chunk = MemoryChunk::FromAnyPointerAddress(heap_, addr); in Filter()
[all …]
Dmark-compact-inl.h17 MemoryChunk* p = MemoryChunk::FromAddress(addr); in MarkBitFrom()
34 MemoryChunk::IncrementLiveBytesFromGC(obj->address(), obj->Size()); in MarkObject()
46 MemoryChunk::IncrementLiveBytesFromGC(obj->address(), obj->Size()); in SetMark()
Dspaces.h99 class MemoryChunk; variable
196 static inline void Clear(MemoryChunk* chunk);
273 class MemoryChunk {
276 static MemoryChunk* FromAddress(Address a) { in FromAddress()
277 return reinterpret_cast<MemoryChunk*>(OffsetFrom(a) & ~kAlignmentMask); in FromAddress()
279 static const MemoryChunk* FromAddress(const byte* a) { in FromAddress()
280 return reinterpret_cast<const MemoryChunk*>(OffsetFrom(a) & in FromAddress()
285 static inline MemoryChunk* FromAnyPointerAddress(Heap* heap, Address addr);
291 MemoryChunk* next_chunk() const { in next_chunk()
292 return reinterpret_cast<MemoryChunk*>(base::Acquire_Load(&next_chunk_)); in next_chunk()
[all …]
Dincremental-marking.h130 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { in SetOldSpacePageFlags()
185 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking,
Dheap-inl.h279 MemoryChunk* memory_chunk = MemoryChunk::FromAddress(object_address); in UpdateAllocationsHash()
373 return page->IsFlagSet(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK) && in ShouldBePromoted()
444 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in AllowedToBeMigrated()
Dstore-buffer-inl.h47 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), in EnterDirectlyIntoStoreBuffer()
Dmark-compact.h173 MemoryChunk::IncrementLiveBytesFromGC(object->address(), -object->Size()); in INLINE()
899 explicit MarkBitCellIterator(MemoryChunk* chunk) : chunk_(chunk) { in MarkBitCellIterator()
930 MemoryChunk* chunk_;
Dheap.cc1302 void Heap::ScavengeStoreBufferCallback(Heap* heap, MemoryChunk* page, in ScavengeStoreBufferCallback()
1308 void StoreBufferRebuilder::Callback(MemoryChunk* page, StoreBufferEvent event) { in Callback()
1362 DCHECK((Page::kPageSize - MemoryChunk::kBodyOffset) % (2 * kPointerSize) == in Initialize()
1943 MemoryChunk::IncrementLiveBytesFromGC(target->address(), size); in INLINE()
2332 MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); in AllocateFillerObject()
3253 MemoryChunk::IncrementLiveBytesFromGC(address, by); in AdjustLiveBytes()
3255 MemoryChunk::IncrementLiveBytesFromMutator(address, by); in AdjustLiveBytes()
3440 MemoryChunk::FromAddress(address)->owner()->identity() != LO_SPACE) { in AllocateCode()
6019 void Heap::QueueMemoryChunkForFree(MemoryChunk* chunk) { in QueueMemoryChunkForFree()
6027 MemoryChunk* next; in FreeQueuedChunks()
[all …]
Dmark-compact.cc653 DCHECK(MemoryChunk::FromAddress(old_start) == in TransferMark()
654 MemoryChunk::FromAddress(new_start)); in TransferMark()
925 p->ClearFlag(MemoryChunk::RESCAN_ON_EVACUATION); in AbortCompaction()
1890 MemoryChunk::IncrementLiveBytesFromGC(object->address(), object->Size()); in DiscoverGreyObjectsWithIterator()
1902 MemoryChunk* p) { in DiscoverGreyObjectsOnPage()
1935 MemoryChunk::IncrementLiveBytesFromGC(object->address(), object->Size()); in DiscoverGreyObjectsOnPage()
3176 MemoryChunk::SWEEPING_DONE); in EvacuatePages()
3379 p->set_parallel_sweeping(MemoryChunk::SWEEPING_FINALIZE); in Sweep()
3397 uint32_t start_index = MemoryChunk::FastAddressToMarkbitIndex(code_start); in SetMarkBitsUnderInvalidatedCode()
3399 MemoryChunk::FastAddressToMarkbitIndex(code_end - kPointerSize); in SetMarkBitsUnderInvalidatedCode()
[all …]
Dheap.h354 void Callback(MemoryChunk* page, StoreBufferEvent event);
365 MemoryChunk* current_page_;
1225 void QueueMemoryChunkForFree(MemoryChunk* chunk);
1849 static void ScavengeStoreBufferCallback(Heap* heap, MemoryChunk* page,
2019 MemoryChunk* chunks_queued_for_free_;
/external/v8/test/cctest/
Dtest-spaces.cc165 : MemoryChunk::kObjectStartOffset; in VerifyMemoryChunk()
170 MemoryChunk* memory_chunk = memory_allocator->AllocateChunk(reserve_area_size, in VerifyMemoryChunk()
175 MemoryChunk::kAlignment : v8::base::OS::CommitPageSize(); in VerifyMemoryChunk()
240 TEST(MemoryChunk) { in TEST() argument
Dtest-constantpool.cc256 MemoryChunk::FromAddress(array->address())->set_scan_on_scavenge(true); in TEST()
/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()
3034 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in CheckPageFlag()
3037 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()
483 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
546 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
553 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
3074 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in CheckPageFlag()
3077 test(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
[all …]
/external/v8/src/
Dglobals.h310 class MemoryChunk; variable
501 MemoryChunk* page,
Ddeoptimizer.h644 MemoryChunk* deopt_entry_code_[Deoptimizer::kBailoutTypesWithCodeEntry];
/external/v8/src/arm/
Dmacro-assembler-arm.cc540 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
614 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
620 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
3650 ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
3688 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
3699 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize + kPointerSize)); in HasColor()
3760 ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
3821 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
3823 str(ip, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
3826 ldr(ip, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset)); in EnsureNotWhite()
[all …]
/external/v8/src/arm64/
Dmacro-assembler-arm64.cc4337 Ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlagSet()
4347 Ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlagClear()
4445 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
4514 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
4519 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
4595 Ldr(bitmap_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
4708 Ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
4771 Ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
4773 Str(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
4776 Ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset)); in EnsureNotWhite()
[all …]
/external/v8/src/mips/
Dmacro-assembler-mips.cc254 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
331 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
337 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
5616 lw(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
5655 lw(t9, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
5666 lw(t9, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize + kPointerSize)); in HasColor()
5729 lw(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
5806 lw(t8, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
5808 sw(t8, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
5811 lw(t8, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset)); in EnsureNotWhite()
[all …]
/external/v8/src/x64/
Dmacro-assembler-x64.cc419 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
481 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
489 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
5048 testb(Operand(scratch, MemoryChunk::kFlagsOffset), in CheckPageFlag()
5051 testl(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
5085 andp(rcx, Operand(bitmap_scratch, MemoryChunk::kHeaderSize)); in JumpIfBlack()
5157 testp(Operand(bitmap_scratch, MemoryChunk::kHeaderSize), mask_scratch); in EnsureNotWhite()
5166 testp(Operand(bitmap_scratch, MemoryChunk::kHeaderSize), mask_scratch); in EnsureNotWhite()
5225 orp(Operand(bitmap_scratch, MemoryChunk::kHeaderSize), mask_scratch); in EnsureNotWhite()
5228 addl(Operand(bitmap_scratch, MemoryChunk::kLiveBytesOffset), length); in EnsureNotWhite()
/external/v8/src/mips64/
Dmacro-assembler-mips64.cc257 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWriteForMap()
334 MemoryChunk::kPointersToHereAreInterestingMask, in RecordWrite()
340 MemoryChunk::kPointersFromHereAreInterestingMask, in RecordWrite()
5599 ld(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); in CheckPageFlag()
5639 Uld(t9, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in HasColor()
5712 Uld(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
5791 Uld(t8, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
5793 Usd(t8, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); in EnsureNotWhite()
5796 Uld(t8, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset)); in EnsureNotWhite()
5798 Usd(t8, MemOperand(bitmap_scratch, MemoryChunk::kLiveBytesOffset)); in EnsureNotWhite()

12