Home
last modified time | relevance | path

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

12345678910>>...22

/third_party/node/deps/v8/src/objects/
Dtagged-field.h36 std::is_base_of<HeapObject, T>::value || std::is_same<MapWord, T>::value;
38 static inline Address address(HeapObject host, int offset = 0);
40 static inline T load(HeapObject host, int offset = 0);
41 static inline T load(PtrComprCageBase cage_base, HeapObject host,
44 static inline void store(HeapObject host, T value);
45 static inline void store(HeapObject host, int offset, T value);
47 static inline T Relaxed_Load(HeapObject host, int offset = 0);
48 static inline T Relaxed_Load(PtrComprCageBase cage_base, HeapObject host,
51 static inline void Relaxed_Store(HeapObject host, T value);
52 static void Relaxed_Store(HeapObject host, int offset, T value);
[all …]
Dobjects-body-descriptors-inl.h46 int FlexibleBodyDescriptor<start_offset>::SizeOf(Map map, HeapObject object) { in SizeOf()
52 HeapObject object) { in SizeOf()
56 bool BodyDescriptorBase::IsValidJSObjectSlotImpl(Map map, HeapObject obj, in IsValidJSObjectSlotImpl()
81 void BodyDescriptorBase::IterateJSObjectBodyImpl(Map map, HeapObject obj, in IterateJSObjectBodyImpl()
115 DISABLE_CFI_PERF void BodyDescriptorBase::IteratePointers(HeapObject obj, in IteratePointers()
119 if (start_offset == HeapObject::kMapOffset) { in IteratePointers()
127 void BodyDescriptorBase::IteratePointer(HeapObject obj, int offset, in IteratePointer()
129 DCHECK_NE(offset, HeapObject::kMapOffset); in IteratePointer()
135 HeapObject obj, int start_offset, int end_offset, ObjectVisitor* v) { in IterateMaybeWeakPointers()
141 void BodyDescriptorBase::IterateMaybeWeakPointer(HeapObject obj, int offset, in IterateMaybeWeakPointer()
[all …]
Dobjects-body-descriptors.h33 static inline void IteratePointers(HeapObject obj, int start_offset,
37 static inline void IteratePointer(HeapObject obj, int offset,
41 static inline void IterateCustomWeakPointers(HeapObject obj, int start_offset,
46 static inline void IterateCustomWeakPointer(HeapObject obj, int offset,
50 static inline void IterateEphemeron(HeapObject obj, int index, int key_offset,
54 static inline void IterateMaybeWeakPointers(HeapObject obj, int start_offset,
58 static inline void IterateMaybeWeakPointer(HeapObject obj, int offset,
63 static inline bool IsValidJSObjectSlotImpl(Map map, HeapObject obj,
67 static inline bool IsValidEmbedderJSObjectSlotImpl(Map map, HeapObject obj,
72 static inline void IterateJSObjectBodyImpl(Map map, HeapObject obj,
[all …]
Dobjects-inl.h68 DEF_GETTER(HeapObject, IsClassBoilerplate, bool) { in DEF_GETTER() argument
77 return IsHeapObject() && HeapObject::cast(*this).InSharedHeap(); in InSharedHeap()
81 return IsHeapObject() && HeapObject::cast(*this).InSharedWritableHeap(); in InSharedWritableHeap()
86 return IsHeapObject() && HeapObject::cast(*this).Is##type_(); \
89 return IsHeapObject() && HeapObject::cast(*this).Is##type_(cage_base); \
108 return IsHeapObject() && HeapObject::cast(*this).Is##Type(); \
110 bool HeapObject::Is##Type(Isolate* isolate) const { \
113 bool HeapObject::Is##Type(LocalIsolate* isolate) const { \
116 bool HeapObject::Is##Type(ReadOnlyRoots roots) const { \
119 bool HeapObject::Is##Type() const { return Is##Type(GetReadOnlyRoots()); }
[all …]
Dtagged-field-inl.h17 Address TaggedField<T, kFieldOffset>::address(HeapObject host, int offset) { in address()
23 Tagged_t* TaggedField<T, kFieldOffset>::location(HeapObject host, int offset) { in location()
57 T TaggedField<T, kFieldOffset>::load(HeapObject host, int offset) { in load()
59 DCHECK_NE(kFieldOffset + offset, HeapObject::kMapOffset); in load()
66 HeapObject host, int offset) { in load()
68 DCHECK_NE(kFieldOffset + offset, HeapObject::kMapOffset); in load()
74 void TaggedField<T, kFieldOffset>::store(HeapObject host, T value) { in store()
79 DCHECK_NE(kFieldOffset, HeapObject::kMapOffset); in store()
86 void TaggedField<T, kFieldOffset>::store(HeapObject host, int offset, T value) { in store()
91 DCHECK_NE(kFieldOffset + offset, HeapObject::kMapOffset); in store()
[all …]
Dtagged-impl-inl.h46 HeapObject* result) const { in GetHeapObject()
55 Isolate* isolate, HeapObject* result) const { in GetHeapObject()
71 HeapObject* result, HeapObjectReferenceType* reference_type) const { in GetHeapObject()
82 Isolate* isolate, HeapObject* result, in GetHeapObject()
99 HeapObject* result) const { in GetHeapObjectIfStrong()
102 *result = HeapObject::cast(Object(ptr_)); in GetHeapObjectIfStrong()
110 Isolate* isolate, HeapObject* result) const { in GetHeapObjectIfStrong()
114 *result = HeapObject::cast( in GetHeapObjectIfStrong()
126 HeapObject TaggedImpl<kRefType, StorageType>::GetHeapObjectAssumeStrong() in GetHeapObjectAssumeStrong()
130 return HeapObject::cast(Object(ptr_)); in GetHeapObjectAssumeStrong()
[all …]
Dtagged-impl.h115 inline bool GetHeapObjectIfStrong(HeapObject* result) const;
116 inline bool GetHeapObjectIfStrong(Isolate* isolate, HeapObject* result) const;
120 inline HeapObject GetHeapObjectAssumeStrong() const;
121 inline HeapObject GetHeapObjectAssumeStrong(Isolate* isolate) const;
125 inline bool GetHeapObjectIfWeak(HeapObject* result) const;
126 inline bool GetHeapObjectIfWeak(Isolate* isolate, HeapObject* result) const;
130 inline HeapObject GetHeapObjectAssumeWeak() const;
131 inline HeapObject GetHeapObjectAssumeWeak(Isolate* isolate) const;
135 inline bool GetHeapObject(HeapObject* result) const;
136 inline bool GetHeapObject(Isolate* isolate, HeapObject* result) const;
[all …]
Dcode.h46 class CodeDataContainer : public HeapObject {
153 DECL_GETTER(bytecode_or_interpreter_data, HeapObject)
187 DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize, CODE_DATA_FIELDS)
217 OBJECT_CONSTRUCTORS(CodeDataContainer, HeapObject);
221 class Code : public HeapObject {
385 DECL_ACCESSORS(bytecode_or_interpreter_data, HeapObject)
595 inline bool IsWeakObject(HeapObject object);
597 static inline bool IsWeakObjectInOptimizedCode(HeapObject object);
639 DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize, CODE_FIELDS)
728 OBJECT_CONSTRUCTORS(Code, HeapObject);
[all …]
/third_party/node/deps/v8/src/heap/
Dheap-write-barrier-inl.h25 V8_EXPORT_PRIVATE bool Heap_PageFlagsAreConsistent(HeapObject object);
27 HeapObject value);
28 V8_EXPORT_PRIVATE void Heap_GenerationalBarrierSlow(HeapObject object,
30 HeapObject value);
35 HeapObject object);
54 HeapObject object) { in FromHeapObject()
86 inline void GenerationalBarrierInternal(HeapObject object, Address slot, in GenerationalBarrierInternal()
87 HeapObject value) { in GenerationalBarrierInternal()
103 HeapObject value) { in GenerationalEphemeronKeyBarrierInternal()
122 WriteBarrierForCode(host, rinfo, HeapObject::cast(value)); in WriteBarrierForCode()
[all …]
Dmarking-visitor.h20 std::vector<HeapObject> newly_discovered;
50 V8_INLINE MarkBit MarkBitFrom(HeapObject obj) { in MarkBitFrom()
60 Marking::ObjectColor Color(HeapObject obj) { in Color()
64 V8_INLINE bool IsImpossible(HeapObject obj) { in IsImpossible()
68 V8_INLINE bool IsBlack(HeapObject obj) { in IsBlack()
72 V8_INLINE bool IsWhite(HeapObject obj) { in IsWhite()
76 V8_INLINE bool IsGrey(HeapObject obj) { in IsGrey()
80 V8_INLINE bool IsBlackOrGrey(HeapObject obj) { in IsBlackOrGrey()
84 V8_INLINE bool WhiteToGrey(HeapObject obj) { in WhiteToGrey()
88 V8_INLINE bool WhiteToBlack(HeapObject obj) { in WhiteToBlack()
[all …]
Dheap-write-barrier.h33 void WriteBarrierForCode(Code host, RelocInfo* rinfo, HeapObject value);
37 void GenerationalBarrier(HeapObject object, ObjectSlot slot, Object value);
38 void GenerationalBarrier(HeapObject object, ObjectSlot slot, Code value);
39 void GenerationalBarrier(HeapObject object, ObjectSlot slot, HeapObject value);
40 void GenerationalBarrier(HeapObject object, MaybeObjectSlot slot,
44 void GenerationalBarrierForCode(Code host, RelocInfo* rinfo, HeapObject object);
46 inline bool IsReadOnlyHeapObject(HeapObject object);
50 static inline void Marking(HeapObject host, ObjectSlot, Object value);
51 static inline void Marking(HeapObject host, HeapObjectSlot, HeapObject value);
52 static inline void Marking(HeapObject host, MaybeObjectSlot,
[all …]
Dreference-summarizer.cc27 explicit ReferenceSummarizerMarkingState(HeapObject object) in ReferenceSummarizerMarkingState()
51 bool IsWhite(HeapObject obj) const { return true; } in IsWhite()
53 bool IsBlackOrGrey(HeapObject obj) const { return false; } in IsBlackOrGrey()
55 bool WhiteToGrey(HeapObject obj) { return true; } in WhiteToGrey()
57 bool GreyToBlack(HeapObject obj) { return true; } in GreyToBlack()
60 void AddStrongReferenceForReferenceSummarizer(HeapObject host, in AddStrongReferenceForReferenceSummarizer()
61 HeapObject obj) { in AddStrongReferenceForReferenceSummarizer()
68 void AddWeakReferenceForReferenceSummarizer(HeapObject host, HeapObject obj) { in AddWeakReferenceForReferenceSummarizer()
81 HeapObject host, HeapObject obj, in AddReference()
82 std::unordered_set<HeapObject, Object::Hasher>& references) { in AddReference() argument
[all …]
Dmark-compact-inl.h25 void MarkCompactCollector::MarkObject(HeapObject host, HeapObject obj) { in MarkObject()
34 void MarkCompactCollector::MarkRootObject(Root root, HeapObject obj) { in MarkRootObject()
43 void MinorMarkCompactCollector::MarkRootObject(HeapObject obj) { in MarkRootObject()
50 void MarkCompactCollector::MarkExternallyReferencedObject(HeapObject obj) { in MarkExternallyReferencedObject()
59 void MarkCompactCollector::RecordSlot(HeapObject object, ObjectSlot slot, in RecordSlot()
60 HeapObject target) { in RecordSlot()
64 void MarkCompactCollector::RecordSlot(HeapObject object, HeapObjectSlot slot, in RecordSlot()
65 HeapObject target) { in RecordSlot()
73 HeapObjectSlot slot, HeapObject target) { in RecordSlot()
114 void MainMarkingVisitor<MarkingState>::RecordSlot(HeapObject object, TSlot slot, in RecordSlot()
[all …]
Dobject-stats.cc50 void RecordStats(HeapObject host) { in RecordStats()
89 void VisitPointers(HeapObject host, ObjectSlot start, in VisitPointers()
93 void VisitPointers(HeapObject host, MaybeObjectSlot start, in VisitPointers()
98 V8_INLINE void VisitCodePointer(HeapObject host, in VisitCodePointer()
113 void VisitMapPointer(HeapObject host) override { in VisitMapPointer()
383 void CollectStatistics(HeapObject obj, Phase phase,
394 bool RecordVirtualObjectStats(HeapObject parent, HeapObject obj,
402 bool RecordSimpleVirtualObjectStats(HeapObject parent, HeapObject obj,
406 void RecordHashTableVirtualObjectStats(HeapObject parent,
410 bool SameLiveness(HeapObject obj1, HeapObject obj2);
[all …]
Dscavenger.h28 using ObjectAndSize = std::pair<HeapObject, int>;
30 std::unordered_map<HeapObject, Map, Object::Hasher>;
31 using SurvivingNewLargeObjectMapEntry = std::pair<HeapObject, Map>;
42 HeapObject heap_object;
63 inline void PushRegularObject(HeapObject object, int size);
64 inline void PushLargeObject(HeapObject object, Map map, int size);
135 HeapObject object);
138 V8_INLINE bool MigrateObject(Map map, HeapObject source, HeapObject target,
147 SemiSpaceCopyObject(Map map, THeapObjectSlot slot, HeapObject object,
153 HeapObject object,
[all …]
Dmarking-barrier.h35 void Write(HeapObject host, HeapObjectSlot, HeapObject value);
36 void Write(Code host, RelocInfo*, HeapObject value);
41 void WriteWithoutHost(HeapObject value);
44 inline bool MarkValue(HeapObject host, HeapObject value);
49 inline bool WhiteToGreyAndPush(HeapObject value);
51 void RecordRelocSlot(Code host, RelocInfo* rinfo, HeapObject target);
62 inline void MarkRange(HeapObject value, TSlot start, TSlot end);
Dallocation-result.h31 static AllocationResult FromObject(HeapObject heap_object) { in FromObject()
48 HeapObject ToObjectChecked() const { in ToObjectChecked()
50 return HeapObject::cast(object_); in ToObjectChecked()
53 HeapObject ToObject() const { in ToObject()
55 return HeapObject::cast(object_); in ToObject()
60 return HeapObject::cast(object_).address(); in ToAddress()
64 explicit AllocationResult(HeapObject heap_object) : object_(heap_object) {} in AllocationResult()
66 HeapObject object_;
Dnew-spaces-inl.h22 bool SemiSpace::Contains(HeapObject o) const { in Contains()
30 return o.IsHeapObject() && Contains(HeapObject::cast(o)); in Contains()
44 return o.IsHeapObject() && Contains(HeapObject::cast(o)); in Contains()
47 bool NewSpace::Contains(HeapObject o) const { in Contains()
67 HeapObject SemiSpaceObjectIterator::Next() { in Next()
74 if (current_ == limit_) return HeapObject(); in Next()
76 HeapObject object = HeapObject::FromAddress(current_); in Next()
82 return HeapObject(); in Next()
Dmark-compact.cc107 virtual bool IsMarked(HeapObject object) = 0;
109 virtual bool IsBlackOrGrey(HeapObject object) = 0;
111 void VisitPointers(HeapObject host, ObjectSlot start, in VisitPointers()
116 void VisitPointers(HeapObject host, MaybeObjectSlot start, in VisitPointers()
121 void VisitCodePointer(HeapObject host, CodeObjectSlot slot) override { in VisitCodePointer()
131 void VisitMapPointer(HeapObject object) override { in VisitMapPointer()
155 HeapObject object = object_and_size.first; in VerifyMarkingOnPage()
202 for (HeapObject obj = it.Next(); !obj.is_null(); obj = it.Next()) { in VerifyMarking()
233 bool IsMarked(HeapObject object) override { in IsMarked()
237 bool IsBlackOrGrey(HeapObject object) override { in IsBlackOrGrey()
[all …]
/third_party/node/deps/v8/src/builtins/
Dcast.tq5 extern macro IsBigInt(HeapObject): bool;
6 extern macro IsConstructor(HeapObject): bool;
13 macro IsAccessorInfo(o: HeapObject): bool {
18 macro IsAccessorPair(o: HeapObject): bool {
23 macro IsAllocationSite(o: HeapObject): bool {
28 macro IsCell(o: HeapObject): bool {
33 macro IsCode(o: HeapObject): bool {
38 macro IsCodeDataContainer(o: HeapObject): bool {
43 macro IsContext(o: HeapObject): bool {
48 macro IsCoverageInfo(o: HeapObject): bool {
[all …]
/third_party/node/deps/v8/src/snapshot/
Ddeserializer.cc55 static SlotAccessorForHeapObject ForSlotIndex(Handle<HeapObject> object, in ForSlotIndex()
59 static SlotAccessorForHeapObject ForSlotOffset(Handle<HeapObject> object, in ForSlotOffset()
65 Handle<HeapObject> object() const { return object_; } in object()
78 int Write(HeapObject value, HeapObjectReferenceType ref_type, in Write()
82 int Write(Handle<HeapObject> value, HeapObjectReferenceType ref_type, in Write()
97 int WriteWithGenerationalBarrier(HeapObject value, in WriteWithGenerationalBarrier()
102 int WriteWithGenerationalBarrier(Handle<HeapObject> value, in WriteWithGenerationalBarrier()
108 SlotAccessorForHeapObject(Handle<HeapObject> object, int offset) in SlotAccessorForHeapObject()
111 const Handle<HeapObject> object_;
121 Handle<HeapObject> object() const { UNREACHABLE(); } in object()
[all …]
Dserializer.h144 bool LookupOrInsert(HeapObject obj, int* index_out) { in LookupOrInsert()
152 bool LookupOrInsert(Handle<HeapObject> obj, int* index_out) { in LookupOrInsert()
156 bool Lookup(HeapObject obj, int* index_out) const { in Lookup()
183 bool ReferenceMapContains(Handle<HeapObject> o) { in ReferenceMapContains()
222 V8_INLINE bool IsNotMappedSymbol(HeapObject obj) const;
225 void SerializeObject(Handle<HeapObject> o);
226 virtual void SerializeObjectImpl(Handle<HeapObject> o) = 0;
228 virtual bool MustBeDeferred(HeapObject object);
236 void PutBackReference(HeapObject object, SerializerReference reference);
249 bool SerializeRoot(HeapObject obj);
[all …]
Ddeserializer.h30 class HeapObject; variable
72 Handle<HeapObject> GetBackReferencedObject();
76 void AddAttachedObject(Handle<HeapObject> attached_object) { in AddAttachedObject()
124 Handle<HeapObject> ReadObject();
139 void Add(Handle<HeapObject> object) { in Add()
144 Handle<HeapObject> Get(int index) { in Get()
153 Handle<HeapObject> circular_queue_[kSize];
171 void ReadData(Handle<HeapObject> object, int start_slot_index,
190 Handle<HeapObject> ReadObject(SnapshotSpace space_number);
191 Handle<HeapObject> ReadMetaMap();
[all …]
Dshared-heap-serializer.cc16 bool SharedHeapSerializer::CanBeInSharedOldSpace(HeapObject obj) { in CanBeInSharedOldSpace()
26 bool SharedHeapSerializer::ShouldBeInSharedHeapObjectCache(HeapObject obj) { in ShouldBeInSharedHeapObjectCache()
76 HeapObject obj = HeapObject::cast(it.key()); in FinalizeSerialization()
84 SnapshotByteSink* sink, Handle<HeapObject> obj) { in SerializeUsingReadOnlyObjectCache()
89 SnapshotByteSink* sink, Handle<HeapObject> obj) { in SerializeUsingSharedHeapObjectCache()
155 serializer_->SerializeObject(handle(HeapObject::cast(obj), isolate)); in SerializeStringTable()
168 void SharedHeapSerializer::SerializeObjectImpl(Handle<HeapObject> obj) { in SerializeObjectImpl()
174 HeapObject raw = *obj; in SerializeObjectImpl()
181 HeapObject raw = *obj; in SerializeObjectImpl()
215 Handle<HeapObject> obj(HeapObject::cast(cache->at(i)), isolate()); in ReconstructSharedHeapObjectCacheForTesting()
/third_party/node/deps/v8/src/ic/
Dbinary-op-assembler.h26 TNode<UintPtrT> slot, const LazyNode<HeapObject>& maybe_feedback_vector,
31 TNode<UintPtrT> slot, const LazyNode<HeapObject>& maybe_feedback_vector,
36 TNode<UintPtrT> slot, const LazyNode<HeapObject>& maybe_feedback_vector,
42 const LazyNode<HeapObject>& maybe_feedback_vector,
48 const LazyNode<HeapObject>& maybe_feedback_vector,
54 const LazyNode<HeapObject>& maybe_feedback_vector,
59 TNode<UintPtrT> slot, const LazyNode<HeapObject>& maybe_feedback_vector, in Generate_BitwiseOrWithFeedback()
69 TNode<UintPtrT> slot, const LazyNode<HeapObject>& maybe_feedback_vector, in Generate_BitwiseXorWithFeedback()
80 TNode<UintPtrT> slot, const LazyNode<HeapObject>& maybe_feedback_vector, in Generate_BitwiseAndWithFeedback()
91 TNode<UintPtrT> slot, const LazyNode<HeapObject>& maybe_feedback_vector, in Generate_ShiftLeftWithFeedback()
[all …]

12345678910>>...22