Home
last modified time | relevance | path

Searched refs:HeapObject (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/external/v8/src/
Dobjects-body-descriptors-inl.h14 int FlexibleBodyDescriptor<start_offset>::SizeOf(Map* map, HeapObject* object) { in SizeOf()
19 bool BodyDescriptorBase::IsValidSlotImpl(HeapObject* obj, int offset) { in IsValidSlotImpl()
33 void BodyDescriptorBase::IterateBodyImpl(HeapObject* obj, int start_offset, in IterateBodyImpl()
56 void BodyDescriptorBase::IterateBodyImpl(Heap* heap, HeapObject* obj, in IterateBodyImpl()
79 void BodyDescriptorBase::IteratePointers(HeapObject* obj, int start_offset, in IteratePointers()
81 v->VisitPointers(HeapObject::RawField(obj, start_offset), in IteratePointers()
82 HeapObject::RawField(obj, end_offset)); in IteratePointers()
87 void BodyDescriptorBase::IteratePointers(Heap* heap, HeapObject* obj, in IteratePointers()
90 HeapObject::RawField(obj, start_offset), in IteratePointers()
91 HeapObject::RawField(obj, end_offset)); in IteratePointers()
[all …]
Dobjects-body-descriptors.h39 static inline void IteratePointers(HeapObject* obj, int start_offset,
43 static inline void IteratePointers(Heap* heap, HeapObject* obj,
47 static inline void IteratePointer(HeapObject* obj, int offset,
51 static inline void IteratePointer(Heap* heap, HeapObject* obj, int offset);
55 static inline bool IsValidSlotImpl(HeapObject* obj, int offset);
59 static inline void IterateBodyImpl(HeapObject* obj, int start_offset,
64 static inline void IterateBodyImpl(Heap* heap, HeapObject* obj,
79 static bool IsValidSlot(HeapObject* obj, int offset) { in IsValidSlot()
84 static inline void IterateBody(HeapObject* obj, ObjectVisitor* v) { in IterateBody()
89 static inline void IterateBody(HeapObject* obj, int object_size, in IterateBody()
[all …]
Dcontext-measure.h25 void MeasureObject(HeapObject* object);
27 void MeasureAndRecurse(HeapObject* object);
28 bool IsShared(HeapObject* object);
37 List<HeapObject*> deferred_objects_;
Dobjects-printer.cc30 HeapObject::cast(this)->HeapObjectPrint(os); in Print()
35 void HeapObject::PrintHeader(std::ostream& os, const char* id) { // NOLINT in PrintHeader()
40 void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT in HeapObjectPrint()
435 HeapObject::PrintHeader(os, "Symbol"); in SymbolPrint()
447 HeapObject::PrintHeader(os, "Map"); in MapPrint()
496 HeapObject::PrintHeader(os, "CodeCache"); in CodeCachePrint()
504 HeapObject::PrintHeader(os, "PolymorphicCodeCache"); in PolymorphicCodeCachePrint()
510 HeapObject::PrintHeader(os, "TypeFeedbackInfo"); in TypeFeedbackInfoPrint()
519 HeapObject::PrintHeader(os, "AliasedArgumentsEntry"); in AliasedArgumentsEntryPrint()
525 HeapObject::PrintHeader(os, "FixedArray"); in FixedArrayPrint()
[all …]
Daddress-map.h25 inline static HashMap::Entry* LookupEntry(HashMap* map, HeapObject* obj, in LookupEntry()
34 static uint32_t Hash(HeapObject* obj) { in Hash()
38 static void* Key(HeapObject* obj) { in Key()
50 int Lookup(HeapObject* obj) { in Lookup()
155 BackReference Lookup(HeapObject* obj) { in Lookup()
160 void Add(HeapObject* obj, BackReference b) { in Add()
171 void AddGlobalProxy(HeapObject* global_proxy) { in AddGlobalProxy()
Dcontext-measure.cc28 bool ContextMeasure::IsShared(HeapObject* object) { in IsShared()
39 void ContextMeasure::MeasureObject(HeapObject* object) { in MeasureObject()
61 void ContextMeasure::MeasureAndRecurse(HeapObject* object) { in MeasureAndRecurse()
74 MeasureObject(HeapObject::cast(*current)); in VisitPointers()
/external/v8/src/heap/
Dscavenger.cc92 static void RecordCopiedObject(Heap* heap, HeapObject* obj) { in RecordCopiedObject()
110 INLINE(static void MigrateObject(Heap* heap, HeapObject* source, in INLINE()
111 HeapObject* target, int size)) { in INLINE()
145 static inline bool SemiSpaceCopyObject(Map* map, HeapObject** slot, in SemiSpaceCopyObject()
146 HeapObject* object, int object_size) { in SemiSpaceCopyObject()
153 HeapObject* target = NULL; // Initialization to please compiler. in SemiSpaceCopyObject()
174 static inline bool PromoteObject(Map* map, HeapObject** slot, in PromoteObject()
175 HeapObject* object, int object_size) { in PromoteObject()
181 HeapObject* target = NULL; // Initialization to please compiler. in PromoteObject()
199 static inline void EvacuateObject(Map* map, HeapObject** slot, in EvacuateObject()
[all …]
Dobjects-visiting.h194 INLINE(static ReturnType Visit(Map* map, HeapObject* object)) { in INLINE()
202 static inline ReturnType VisitSpecialized(Map* map, HeapObject* object) { in VisitSpecialized()
207 HeapObject::RawField(object, BodyDescriptor::kStartOffset), in VisitSpecialized()
208 HeapObject::RawField(object, object_size)); in VisitSpecialized()
217 INLINE(static ReturnType Visit(Map* map, HeapObject* object)) { in INLINE()
245 INLINE(static int IterateBody(Map* map, HeapObject* obj)) { in INLINE()
249 INLINE(static void VisitPointers(Heap* heap, HeapObject* object, in INLINE()
259 INLINE(static void VisitCodeEntry(Heap* heap, HeapObject* object, in INLINE()
265 INLINE(static int VisitByteArray(Map* map, HeapObject* object)) { in INLINE()
269 INLINE(static int VisitFixedDoubleArray(Map* map, HeapObject* object)) { in INLINE()
[all …]
Dobjects-visiting-inl.h100 Map* map, HeapObject* object) { in VisitJSArrayBuffer()
114 Map* map, HeapObject* object) { in VisitBytecodeArray()
117 HeapObject::RawField(object, BytecodeArray::kConstantPoolOffset), in VisitBytecodeArray()
118 HeapObject::RawField(object, BytecodeArray::kHeaderSize)); in VisitBytecodeArray()
210 Heap* heap, HeapObject* object, Address entry_address) { in VisitCodeEntry()
222 HeapObject* object = HeapObject::cast(rinfo->target_object()); in VisitEmbeddedPointer()
289 Map* map, HeapObject* object) { in VisitNativeContext()
297 HeapObject* object) { in VisitMap()
313 HeapObject::RawField(object, Map::kPointerFieldsBeginOffset), in VisitMap()
314 HeapObject::RawField(object, Map::kPointerFieldsEndOffset)); in VisitMap()
[all …]
Dspaces-inl.h52 HeapObject* SemiSpaceIterator::Next() { in Next()
61 HeapObject* object = HeapObject::FromAddress(current_); in Next()
71 HeapObject* SemiSpaceIterator::next_object() { return Next(); } in next_object()
109 HeapObject* HeapObjectIterator::Next() { in Next()
111 HeapObject* next_obj = FromCurrentPage(); in Next()
118 HeapObject* HeapObjectIterator::next_object() { return Next(); } in next_object()
121 HeapObject* HeapObjectIterator::FromCurrentPage() { in FromCurrentPage()
127 HeapObject* obj = HeapObject::FromAddress(cur_addr_); in FromCurrentPage()
216 bool PagedSpace::Contains(HeapObject* o) { return Contains(o->address()); } in Contains()
236 for (HeapObject* o = iterator.Next(); o != NULL; o = iterator.Next()) { in FromAnyPointerAddress()
[all …]
Dmark-compact-inl.h15 void MarkCompactCollector::PushBlack(HeapObject* obj) { in PushBlack()
25 void MarkCompactCollector::UnshiftBlack(HeapObject* obj) { in UnshiftBlack()
34 void MarkCompactCollector::MarkObject(HeapObject* obj, MarkBit mark_bit) { in MarkObject()
44 void MarkCompactCollector::SetMark(HeapObject* obj, MarkBit mark_bit) { in SetMark()
54 HeapObject* heap_object = HeapObject::cast(obj); in IsMarked()
59 void MarkCompactCollector::RecordSlot(HeapObject* object, Object** slot, in RecordSlot()
73 void MarkCompactCollector::ForceRecordSlot(HeapObject* object, Object** slot, in ForceRecordSlot()
104 HeapObject::RawField(candidate, JSFunction::kNextFunctionLinkOffset)); in GetNextCandidateSlot()
145 HeapObject* LiveObjectIterator<T>::Next() { in Next()
147 HeapObject* object = nullptr; in Next()
[all …]
Dscavenger.h13 typedef void (*ScavengingCallback)(Map* map, HeapObject** slot,
14 HeapObject* object);
27 static inline void ScavengeObject(HeapObject** p, HeapObject* object);
30 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object);
66 static inline void VisitPointer(Heap* heap, HeapObject* object, Object** p);
Dmark-compact.h17 typedef bool (*IsAliveFunction)(HeapObject* obj, int* size, int* offset);
20 typedef void (*MarkObjectFunction)(Heap* heap, HeapObject* object);
38 INLINE(static MarkBit MarkBitFrom(HeapObject* obj)) { in INLINE()
114 INLINE(static void BlackToGrey(HeapObject* obj)) { in INLINE()
147 static ObjectColor Color(HeapObject* obj) { in Color()
161 INLINE(static bool TransferColor(HeapObject* from, HeapObject* to)) { in INLINE()
208 INLINE(bool Push(HeapObject* object)) { in INLINE()
220 INLINE(HeapObject* Pop()) { in INLINE()
223 HeapObject* object = array_[top_]; in INLINE()
230 INLINE(bool Unshift(HeapObject* object)) { in INLINE()
[all …]
Dincremental-marking.h153 static void RecordWriteFromCode(HeapObject* obj, Object** slot,
162 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value));
163 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value));
164 INLINE(void RecordWriteIntoCode(HeapObject* obj, RelocInfo* rinfo,
170 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value);
171 void RecordWriteIntoCodeSlow(HeapObject* obj, RelocInfo* rinfo,
174 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value);
175 void RecordCodeTargetPatch(Address pc, HeapObject* value);
177 void RecordWrites(HeapObject* obj);
179 void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit);
[all …]
Dscavenger-inl.h13 void Scavenger::ScavengeObject(HeapObject** p, HeapObject* object) { in ScavengeObject()
25 HeapObject* dest = first_word.ToForwardingAddress(); in ScavengeObject()
42 void StaticScavengeVisitor::VisitPointer(Heap* heap, HeapObject* obj, in VisitPointer()
46 Scavenger::ScavengeObject(reinterpret_cast<HeapObject**>(p), in VisitPointer()
47 reinterpret_cast<HeapObject*>(object)); in VisitPointer()
Dincremental-marking.cc50 bool IncrementalMarking::BaseRecordWrite(HeapObject* obj, Object* value) { in BaseRecordWrite()
51 HeapObject* value_heap_obj = HeapObject::cast(value); in BaseRecordWrite()
67 void IncrementalMarking::RecordWriteSlow(HeapObject* obj, Object** slot, in RecordWriteSlow()
76 void IncrementalMarking::RecordWriteFromCode(HeapObject* obj, Object** slot, in RecordWriteFromCode()
96 HeapObject* value) { in RecordCodeTargetPatch()
104 void IncrementalMarking::RecordCodeTargetPatch(Address pc, HeapObject* value) { in RecordCodeTargetPatch()
126 void IncrementalMarking::RecordWriteIntoCodeSlow(HeapObject* obj, in RecordWriteIntoCodeSlow()
137 void IncrementalMarking::RecordWrites(HeapObject* obj) { in RecordWrites()
152 void IncrementalMarking::BlackToGreyAndUnshift(HeapObject* obj, in BlackToGreyAndUnshift()
183 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { in WhiteToGreyAndPush()
[all …]
Dmark-compact.cc79 HeapObject* object = HeapObject::cast(*current); in VisitPointers()
108 HeapObject* object; in VerifyMarking()
112 object = HeapObject::FromAddress(current); in VerifyMarking()
160 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { in VerifyMarking()
175 HeapObject* object = HeapObject::cast(*current); in VisitPointers()
186 for (HeapObject* heap_object = iterator.Next(); heap_object != NULL; in VerifyEvacuation()
206 HeapObject* object = HeapObject::FromAddress(current); in VerifyEvacuation()
355 for (HeapObject* object = it.Next(); object != NULL; object = it.Next()) { in VerifyValidStoreAndSlotsBufferEntries()
418 for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { in VerifyMarkbitsAreClean()
428 for (HeapObject* obj = code_iterator.Next(); obj != NULL; in VerifyWeakEmbeddedObjectsInCode()
[all …]
Dstore-buffer.cc285 for (HeapObject* object = it.Next(); object != NULL; object = it.Next()) { in VerifyPointers()
291 HeapObject** slot = reinterpret_cast<HeapObject**>(slot_address); in VerifyPointers()
330 HeapObject* heap_object = reinterpret_cast<HeapObject*>(object); in ProcessOldToNewSlot()
332 slot_callback(reinterpret_cast<HeapObject**>(slot), heap_object); in ProcessOldToNewSlot()
381 HeapObject* heap_object = HeapObject::cast(object); in ClearInvalidStoreBufferEntries()
393 for (HeapObject* object = it.Next(); object != NULL; object = it.Next()) { in ClearInvalidStoreBufferEntries()
410 reinterpret_cast<Address>(slot), HeapObject::cast(object)); in VerifyValidStoreBufferEntries()
470 HeapObject* array = large_page->GetObject(); in IteratePointersToNewSpace()
481 for (HeapObject* heap_object = iterator.Next(); heap_object != NULL; in IteratePointersToNewSpace()
505 for (HeapObject* heap_object = iterator.Next(); in IteratePointersToNewSpace()
Dheap-inl.h28 void PromotionQueue::insert(HeapObject* target, int size) { in insert()
130 HeapObject* result = nullptr; in AllocateOneByteInternalizedString()
161 HeapObject* result = nullptr; in AllocateTwoByteInternalizedString()
209 HeapObject* object = nullptr; in AllocateRaw()
254 void Heap::OnAllocationEvent(HeapObject* object, int size_in_bytes) { in OnAllocationEvent()
282 void Heap::OnMoveEvent(HeapObject* target, HeapObject* source, in OnMoveEvent()
310 void Heap::UpdateAllocationsHash(HeapObject* object) { in UpdateAllocationsHash()
412 bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) { in AllowedToBeMigrated()
471 AllocationMemento* Heap::FindAllocationMemento(HeapObject* object) { in FindAllocationMemento()
482 HeapObject* candidate = HeapObject::FromAddress(memento_address); in FindAllocationMemento()
[all …]
/external/v8/src/snapshot/
Dserialize.h81 int LookupOrInsert(HeapObject* obj, int new_index) { in LookupOrInsert()
101 void Add(HeapObject* object) { in Add()
106 HeapObject* Get(int index) { in Get()
113 int Find(HeapObject* object) { in Find()
125 HeapObject* circular_queue_[kSize];
144 static bool CanBeDeferred(HeapObject* o);
426 HeapObject* PostProcessNewObject(HeapObject* obj, int space);
430 HeapObject* GetBackReferencedObject(int space);
454 List<HeapObject*> deserialized_large_objects_;
506 virtual void SerializeObject(HeapObject* o, HowToCode how_to_code,
[all …]
/external/v8/test/cctest/heap/
Dtest-lab.cc20 Address adr = HeapObject::cast(obj)->address(); in AllocateLabBackingStore()
29 HeapObject* object = nullptr; in VerifyIterable()
32 object = HeapObject::FromAddress(base); in VerifyIterable()
45 HeapObject* obj; in AllocateFromLab()
73 AllocationResult lab_backing_store(HeapObject::FromAddress(base)); in TEST()
94 AllocationResult lab_backing_store(HeapObject::FromAddress(base)); in TEST()
123 AllocationResult lab_backing_store(HeapObject::FromAddress(base)); in TEST()
150 AllocationResult lab_backing_store(HeapObject::FromAddress(base)); in TEST()
191 AllocationResult lab_backing_store1(HeapObject::FromAddress(base1)); in TEST()
204 AllocationResult lab_backing_store2(HeapObject::FromAddress(base2)); in TEST()
[all …]
/external/v8/test/cctest/
Dtest-slots-buffer.cc27 buffer->Add(HeapObject::RawField(*array, FixedArray::kHeaderSize)); in TEST()
29 HeapObject::RawField(*array, FixedArray::kHeaderSize)); in TEST()
34 HeapObject::RawField(heap->empty_fixed_array(), in TEST()
44 HeapObject::RawField(*array, FixedArray::kHeaderSize)); in TEST()
49 HeapObject::RawField(heap->empty_fixed_array(), in TEST()
52 HeapObject::RawField(heap->empty_fixed_array(), in TEST()
114 Object** kRemovedEntry = HeapObject::RawField(heap->empty_fixed_array(), in TEST()
Dtest-representation.cc56 TestPairPositive(Representation::HeapObject(), Representation::None()); in TEST()
67 TestPairNegative(Representation::HeapObject(), Representation::Integer8()); in TEST()
78 TestPairNegative(Representation::HeapObject(), Representation::UInteger8()); in TEST()
89 TestPairNegative(Representation::HeapObject(), Representation::Integer16()); in TEST()
100 TestPairNegative(Representation::HeapObject(), Representation::UInteger16()); in TEST()
111 TestPairNegative(Representation::HeapObject(), Representation::Smi()); in TEST()
122 TestPairNegative(Representation::HeapObject(), Representation::Integer32()); in TEST()
/external/v8/src/profiler/
Dheap-snapshot-generator.h355 HeapObject* object);
357 void MarkVisitedField(HeapObject* obj, int offset);
359 HeapEntry* AddEntry(HeapObject* object);
360 HeapEntry* AddEntry(HeapObject* object,
364 const char* GetSystemEntryName(HeapObject* object);
369 bool ExtractReferencesPass1(int entry, HeapObject* obj);
370 bool ExtractReferencesPass2(int entry, HeapObject* obj);
400 void SetContextReference(HeapObject* parent_obj,
405 void SetNativeBindReference(HeapObject* parent_obj,
409 void SetElementReference(HeapObject* parent_obj,
[all …]
Dheap-profiler.cc140 return ids_->FindEntry(HeapObject::cast(*obj)->address()); in GetSnapshotObjectId()
173 Handle<HeapObject> HeapProfiler::FindHeapObjectById(SnapshotObjectId id) { in FindHeapObjectById()
174 HeapObject* object = NULL; in FindHeapObjectById()
177 for (HeapObject* obj = iterator.next(); in FindHeapObjectById()
186 return object != NULL ? Handle<HeapObject>(object) : Handle<HeapObject>(); in FindHeapObjectById()

12345678910>>...12