Home
last modified time | relevance | path

Searched refs:heap_object (Results 1 – 25 of 44) sorted by relevance

12

/external/v8/src/
Dfeedback-vector.cc44 HeapObject* heap_object; in IsPropertyNameFeedback() local
45 if (!feedback->ToStrongHeapObject(&heap_object)) return false; in IsPropertyNameFeedback()
46 if (heap_object->IsString()) return true; in IsPropertyNameFeedback()
47 if (!heap_object->IsSymbol()) return false; in IsPropertyNameFeedback()
48 Symbol* symbol = Symbol::cast(heap_object); in IsPropertyNameFeedback()
375 HeapObject* heap_object; in AssertNoLegacyTypes() local
376 if (object->ToStrongOrWeakHeapObject(&heap_object)) { in AssertNoLegacyTypes()
379 DCHECK_IMPLIES(heap_object->IsFixedArray(), heap_object->IsHashTable()); in AssertNoLegacyTypes()
386 HeapObject* heap_object; in EnsureArrayOfSize() local
387 if (GetFeedback()->ToStrongHeapObject(&heap_object) && in EnsureArrayOfSize()
[all …]
Daddress-map.cc26 HeapObject* heap_object = HeapObject::cast(root); in RootIndexMap() local
27 Maybe<uint32_t> maybe_index = map_->Get(heap_object); in RootIndexMap()
32 map_->Set(heap_object, i); in RootIndexMap()
Dhandles.cc29 HeapObject* heap_object = HeapObject::cast(object); in IsDereferenceAllowed() local
31 if (!Isolate::FromWritableHeapObject(heap_object, &isolate)) return true; in IsDereferenceAllowed()
44 if (heap_object->IsCell()) return true; in IsDereferenceAllowed()
45 if (heap_object->IsMap()) return true; in IsDereferenceAllowed()
46 if (heap_object->IsInternalizedString()) return true; in IsDereferenceAllowed()
Dmaybe-handles-inl.h24 HeapObject* heap_object; in MaybeObjectHandle() local
26 if (object->ToWeakHeapObject(&heap_object)) { in MaybeObjectHandle()
27 handle_ = handle(heap_object, isolate); in MaybeObjectHandle()
Dfeedback-vector-inl.h121 HeapObject* heap_object; in optimized_code() local
122 return slot->ToStrongOrWeakHeapObject(&heap_object) ? Code::cast(heap_object) in optimized_code()
281 HeapObject* heap_object; in ComputeCounts() local
283 (obj->ToStrongHeapObject(&heap_object) && in ComputeCounts()
284 (heap_object->IsWeakFixedArray() || heap_object->IsString()))) { in ComputeCounts()
Dtransitions-inl.h139 HeapObject* heap_object; in GetTargetIfExists() local
140 if (raw->ToStrongHeapObject(&heap_object) && in GetTargetIfExists()
141 heap_object->IsUndefined(isolate)) { in GetTargetIfExists()
Dobjects-debug.cc92 HeapObject* heap_object; in VerifyMaybeObjectPointer() local
93 if (p->ToStrongOrWeakHeapObject(&heap_object)) { in VerifyMaybeObjectPointer()
94 HeapObject::VerifyHeapPointer(isolate, heap_object); in VerifyMaybeObjectPointer()
715 HeapObject* heap_object; in DescriptorArrayVerify() local
720 (value->ToWeakHeapObject(&heap_object) && heap_object->IsMap())); in DescriptorArrayVerify()
1586 HeapObject* heap_object; in Verify() local
1588 if ((object->ToWeakHeapObject(&heap_object) && heap_object->IsMap()) || in Verify()
1802 HeapObject* heap_object; in ScriptVerify() local
1805 (maybe_object->ToStrongHeapObject(&heap_object) && in ScriptVerify()
1806 heap_object->IsUndefined(isolate))); in ScriptVerify()
[all …]
Dcounters-inl.h61 HeapObject* heap_object, in RuntimeCallTimerScope() argument
Dtransitions.cc16 HeapObject* heap_object; in Initialize() local
22 } else if (raw_transitions_->ToStrongHeapObject(&heap_object)) { in Initialize()
23 if (heap_object->IsTransitionArray()) { in Initialize()
26 DCHECK(heap_object->IsPrototypeInfo()); in Initialize()
Dobjects-printer.cc831 HeapObject* heap_object; in MapPrint() local
835 } else if (raw_transitions()->ToStrongOrWeakHeapObject(&heap_object)) { in MapPrint()
836 os << Brief(heap_object); in MapPrint()
2191 HeapObject* heap_object; in Print() local
2196 } else if (ToWeakHeapObject(&heap_object)) { in Print()
2198 heap_object->HeapObjectPrint(os); in Print()
2199 } else if (ToStrongHeapObject(&heap_object)) { in Print()
2200 heap_object->HeapObjectPrint(os); in Print()
Dcode-stub-assembler.h311 TNode<JSArray> HeapObjectToJSArray(TNode<HeapObject> heap_object, in HeapObjectToJSArray() argument
313 GotoIfNot(IsJSArray(heap_object), fail); in HeapObjectToJSArray()
314 return UncheckedCast<JSArray>(heap_object); in HeapObjectToJSArray()
320 TNode<HeapObject> heap_object = CAST(value); in TaggedToFastJSArray() local
321 GotoIfNot(IsFastJSArray(heap_object, context), fail); in TaggedToFastJSArray()
322 return UncheckedCast<JSArray>(heap_object); in TaggedToFastJSArray()
325 TNode<JSDataView> HeapObjectToJSDataView(TNode<HeapObject> heap_object, in HeapObjectToJSDataView() argument
327 GotoIfNot(IsJSDataView(heap_object), fail); in HeapObjectToJSDataView()
328 return CAST(heap_object); in HeapObjectToJSDataView()
331 TNode<JSReceiver> HeapObjectToCallable(TNode<HeapObject> heap_object, in HeapObjectToCallable() argument
[all …]
/external/v8/src/ic/
Dic-inl.h51 HeapObject* heap_object; in IsHandler() local
53 (object->ToWeakHeapObject(&heap_object) && in IsHandler()
54 (heap_object->IsMap() || heap_object->IsPropertyCell())) || in IsHandler()
55 (object->ToStrongHeapObject(&heap_object) && in IsHandler()
56 (heap_object->IsDataHandler() || in IsHandler()
57 heap_object->IsCode())); in IsHandler()
/external/v8/src/heap/
Dheap-inl.h338 HeapObject* heap_object; in InNewSpace() local
339 return object->ToStrongOrWeakHeapObject(&heap_object) && in InNewSpace()
340 InNewSpace(heap_object); in InNewSpace()
344 bool Heap::InNewSpace(HeapObject* heap_object) { in InNewSpace() argument
346 bool result = MemoryChunk::FromHeapObject(heap_object)->InNewSpace(); in InNewSpace()
352 Heap* heap = Heap::FromWritableHeapObject(heap_object); in InNewSpace()
353 DCHECK(heap->gc_state_ != NOT_IN_GC || InToSpace(heap_object)); in InNewSpace()
367 HeapObject* heap_object; in InFromSpace() local
368 return object->ToStrongOrWeakHeapObject(&heap_object) && in InFromSpace()
369 InFromSpace(heap_object); in InFromSpace()
[all …]
Dscavenger-inl.h40 HeapObject* heap_object; in PageMemoryFence() local
41 if (object->ToStrongOrWeakHeapObject(&heap_object)) { in PageMemoryFence()
42 MemoryChunk* chunk = MemoryChunk::FromAddress(heap_object->address()); in PageMemoryFence()
264 HeapObject* heap_object; in CheckAndScavengeObject() local
265 bool success = object->ToStrongOrWeakHeapObject(&heap_object); in CheckAndScavengeObject()
268 DCHECK(heap_object->IsHeapObject()); in CheckAndScavengeObject()
270 ScavengeObject(reinterpret_cast<HeapObjectReference**>(slot), heap_object); in CheckAndScavengeObject()
307 HeapObject* heap_object; in VisitPointers() local
308 if (object->ToStrongOrWeakHeapObject(&heap_object)) { in VisitPointers()
310 heap_object); in VisitPointers()
Dconcurrent-marking.cc99 HeapObject* heap_object) { in ProcessStrongHeapObject() argument
100 MarkObject(heap_object); in ProcessStrongHeapObject()
101 MarkCompactCollector::RecordSlot(host, slot, heap_object); in ProcessStrongHeapObject()
105 HeapObject* heap_object) { in ProcessWeakHeapObject() argument
110 MemoryChunk* chunk = MemoryChunk::FromAddress(heap_object->address()); in ProcessWeakHeapObject()
113 if (marking_state_.IsBlackOrGrey(heap_object)) { in ProcessWeakHeapObject()
117 MarkCompactCollector::RecordSlot(host, slot, heap_object); in ProcessWeakHeapObject()
140 HeapObject* heap_object; in VisitPointers() local
141 if (object->ToStrongHeapObject(&heap_object)) { in VisitPointers()
146 heap_object); in VisitPointers()
[all …]
Dincremental-marking-inl.h32 HeapObject* heap_object; in RecordMaybeWeakWrite() local
33 if (IsMarking() && value->ToStrongOrWeakHeapObject(&heap_object)) { in RecordMaybeWeakWrite()
35 heap_object); in RecordMaybeWeakWrite()
Dscavenger.cc42 HeapObject* heap_object; in VisitPointers() local
43 if (target->ToStrongOrWeakHeapObject(&heap_object)) { in VisitPointers()
44 HandleSlot(host, reinterpret_cast<Address>(slot), heap_object); in VisitPointers()
Dmark-compact.cc958 HeapObject* heap_object = HeapObject::cast(o); in VisitPointers() local
959 if (marking_state->IsWhite(heap_object)) { in VisitPointers()
966 MarkCompactCollector::RecordSlot(table_, p, heap_object); in VisitPointers()
1000 HeapObject* heap_object = HeapObject::cast(o); in VisitRootPointers() local
1001 if (marking_state->IsWhite(heap_object)) { in VisitRootPointers()
1028 HeapObject* heap_object = HeapObject::cast(object); in RetainAs() local
1029 DCHECK(!marking_state_->IsGrey(heap_object)); in RetainAs()
1030 if (marking_state_->IsBlack(heap_object)) { in RetainAs()
1445 HeapObject* heap_object = HeapObject::cast(o); in IsUnmarkedHeapObject() local
1447 heap_object); in IsUnmarkedHeapObject()
[all …]
Dheap.cc4581 HeapObject* Heap::EnsureImmovableCode(HeapObject* heap_object, in EnsureImmovableCode() argument
4586 DCHECK(heap_object); in EnsureImmovableCode()
4587 DCHECK(code_space_->Contains(heap_object)); in EnsureImmovableCode()
4589 if (!Heap::IsImmovable(heap_object)) { in EnsureImmovableCode()
4591 code_space_->first_page()->Contains(heap_object->address())) { in EnsureImmovableCode()
4592 MemoryChunk::FromAddress(heap_object->address())->MarkNeverEvacuate(); in EnsureImmovableCode()
4596 CreateFillerObjectAt(heap_object->address(), object_size, in EnsureImmovableCode()
4598 heap_object = AllocateRawCodeInLargeObjectSpace(object_size); in EnsureImmovableCode()
4599 UnprotectAndRegisterMemoryChunk(heap_object); in EnsureImmovableCode()
4600 ZapCodeObject(heap_object->address(), object_size); in EnsureImmovableCode()
[all …]
/external/v8/src/snapshot/
Dstartup-serializer.cc98 int StartupSerializer::PartialSnapshotCacheIndex(HeapObject* heap_object) { in PartialSnapshotCacheIndex() argument
100 if (!partial_cache_index_map_.LookupOrInsert(heap_object, &index)) { in PartialSnapshotCacheIndex()
105 reinterpret_cast<Object**>(&heap_object)); in PartialSnapshotCacheIndex()
Dcode-serializer.h69 void SerializeGeneric(HeapObject* heap_object, HowToCode how_to_code,
Ddeserializer.cc373 HeapObject* heap_object; in ReadDataSingle() local
374 bool success = o->ToStrongHeapObject(&heap_object); in ReadDataSingle()
377 return heap_object; in ReadDataSingle()
/external/v8/tools/
Dgrokdump.py168 heap_object = heap.FindObject(maybe_address)
171 if heap_object:
172 heap_object.Print(Printer())
2296 heap_object = self.SenseObject(maybe_address, slot)
2297 if heap_object:
2299 if isinstance(heap_object, KnownMap) and \
2300 heap_object.known_name == "FreeSpaceMap":
2306 address_info.append(str(heap_object))
2349 heap_object = self.heap.FindObject(maybe_address)
2350 if heap_object:
[all …]
/external/v8/src/profiler/
Dsampling-heap-profiler.cc87 HeapObject* heap_object = HeapObject::FromAddress(soon_object); in SampleObject() local
88 Handle<Object> obj(heap_object, isolate_); in SampleObject()
Dheap-snapshot-generator.cc857 HeapObject* heap_object; in VisitPointers() local
858 if ((*p)->ToWeakHeapObject(&heap_object) || in VisitPointers()
859 (*p)->ToStrongHeapObject(&heap_object)) { in VisitPointers()
861 heap_object, index * kPointerSize); in VisitPointers()
1420 HeapObject* heap_object; in ExtractWeakArrayReferences() local
1421 if (object->ToWeakHeapObject(&heap_object)) { in ExtractWeakArrayReferences()
1422 SetWeakReference(array, entry, i, heap_object, in ExtractWeakArrayReferences()
1424 } else if (object->ToStrongHeapObject(&heap_object)) { in ExtractWeakArrayReferences()
1425 SetInternalReference(array, entry, i, heap_object, in ExtractWeakArrayReferences()
2232 HeapObject* heap_object = HeapObject::cast(*object); in FillRetainedObjects() local
[all …]

12