Home
last modified time | relevance | path

Searched refs:mark_bit (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/v8/src/
Dmark-compact-inl.h55 void MarkCompactCollector::MarkObject(HeapObject* obj, MarkBit mark_bit) { in MarkObject() argument
56 ASSERT(Marking::MarkBitFrom(obj) == mark_bit); in MarkObject()
57 if (!mark_bit.Get()) { in MarkObject()
58 mark_bit.Set(); in MarkObject()
67 void MarkCompactCollector::SetMark(HeapObject* obj, MarkBit mark_bit) { in SetMark() argument
68 ASSERT(!mark_bit.Get()); in SetMark()
69 ASSERT(Marking::MarkBitFrom(obj) == mark_bit); in SetMark()
70 mark_bit.Set(); in SetMark()
Dincremental-marking.cc182 MarkBit mark_bit = Marking::MarkBitFrom(HeapObject::cast(obj)); in MarkObjectGreyDoNotEnqueue() local
183 if (Marking::IsBlack(mark_bit)) { in MarkObjectGreyDoNotEnqueue()
187 Marking::AnyToGrey(mark_bit); in MarkObjectGreyDoNotEnqueue()
193 MarkBit mark_bit, in MarkBlackOrKeepGrey() argument
195 ASSERT(!Marking::IsImpossible(mark_bit)); in MarkBlackOrKeepGrey()
196 if (mark_bit.Get()) return; in MarkBlackOrKeepGrey()
197 mark_bit.Set(); in MarkBlackOrKeepGrey()
199 ASSERT(Marking::IsBlack(mark_bit)); in MarkBlackOrKeepGrey()
204 MarkBit mark_bit, in MarkBlackOrKeepBlack() argument
206 ASSERT(!Marking::IsImpossible(mark_bit)); in MarkBlackOrKeepBlack()
[all …]
Dmark-compact.h64 INLINE(static bool IsImpossible(MarkBit mark_bit)) { in INLINE() argument
65 return !mark_bit.Get() && mark_bit.Next().Get(); in INLINE()
70 INLINE(static bool IsBlack(MarkBit mark_bit)) { in INLINE() argument
71 return mark_bit.Get() && !mark_bit.Next().Get(); in INLINE()
76 INLINE(static bool IsWhite(MarkBit mark_bit)) { in INLINE() argument
77 return !mark_bit.Get(); in INLINE()
82 INLINE(static bool IsGrey(MarkBit mark_bit)) { in INLINE() argument
83 return mark_bit.Get() && mark_bit.Next().Get(); in INLINE()
86 INLINE(static void MarkBlack(MarkBit mark_bit)) { in INLINE() argument
87 mark_bit.Set(); in INLINE()
[all …]
Dincremental-marking-inl.h109 MarkBit mark_bit) { in BlackToGreyAndUnshift() argument
110 ASSERT(Marking::MarkBitFrom(obj) == mark_bit); in BlackToGreyAndUnshift()
113 Marking::BlackToGrey(mark_bit); in BlackToGreyAndUnshift()
137 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { in WhiteToGreyAndPush() argument
138 Marking::WhiteToGrey(mark_bit); in WhiteToGreyAndPush()
Dincremental-marking.h162 inline void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit);
164 inline void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit);
Dmark-compact.cc488 MarkBit mark_bit = Marking::MarkBitFrom(obj); in VerifyMarkbitsAreClean() local
489 CHECK(Marking::IsWhite(mark_bit)); in VerifyMarkbitsAreClean()
549 MarkBit mark_bit = Marking::MarkBitFrom(obj); in ClearMarkbits() local
550 mark_bit.Clear(); in ClearMarkbits()
551 mark_bit.Next().Clear(); in ClearMarkbits()
1375 MarkBit mark_bit = Marking::MarkBitFrom(object); in INLINE() local
1376 if (!mark_bit.Get()) { in INLINE()
1377 heap->mark_compact_collector()->SetMark(object, mark_bit); in INLINE()
1820 MarkBit mark_bit = Marking::MarkBitFrom(object); in MarkObjectByPointer() local
1821 if (mark_bit.Get()) return; in MarkObjectByPointer()
[all …]
Dheap.cc2299 MarkBit mark_bit = Marking::MarkBitFrom(target); in EvacuateJSFunction() local
2300 if (Marking::IsBlack(mark_bit)) { in EvacuateJSFunction()
6186 MarkBit mark_bit = Marking::MarkBitFrom(HeapObject::FromAddress(start)); in IterateAndMarkPointersToFromSpace() local
6187 record_slots = Marking::IsBlack(mark_bit); in IterateAndMarkPointersToFromSpace()
7174 MarkBit mark_bit = Marking::MarkBitFrom(object); in SkipObject() local
7175 return !mark_bit.Get(); in SkipObject()
7187 MarkBit mark_bit = Marking::MarkBitFrom(obj); in VisitPointers() local
7188 if (!mark_bit.Get()) { in VisitPointers()
7189 mark_bit.Set(); in VisitPointers()
Dspaces.cc3021 MarkBit mark_bit = Marking::MarkBitFrom(object); in FreeUnmarkedObjects() local
3022 if (mark_bit.Get()) { in FreeUnmarkedObjects()
3023 mark_bit.Clear(); in FreeUnmarkedObjects()
/external/v8/src/
Dmark-compact-inl.h55 void MarkCompactCollector::MarkObject(HeapObject* obj, MarkBit mark_bit) { in MarkObject() argument
56 ASSERT(Marking::MarkBitFrom(obj) == mark_bit); in MarkObject()
57 if (!mark_bit.Get()) { in MarkObject()
58 mark_bit.Set(); in MarkObject()
78 void MarkCompactCollector::SetMark(HeapObject* obj, MarkBit mark_bit) { in SetMark() argument
79 ASSERT(!mark_bit.Get()); in SetMark()
80 ASSERT(Marking::MarkBitFrom(obj) == mark_bit); in SetMark()
81 mark_bit.Set(); in SetMark()
Dmark-compact.h63 static inline bool IsImpossible(MarkBit mark_bit) { in IsImpossible() argument
64 return !mark_bit.Get() && mark_bit.Next().Get(); in IsImpossible()
69 static inline bool IsBlack(MarkBit mark_bit) { in IsBlack() argument
70 return mark_bit.Get() && !mark_bit.Next().Get(); in IsBlack()
75 static inline bool IsWhite(MarkBit mark_bit) { in IsWhite() argument
76 return !mark_bit.Get(); in IsWhite()
81 static inline bool IsGrey(MarkBit mark_bit) { in IsGrey() argument
82 return mark_bit.Get() && mark_bit.Next().Get(); in IsGrey()
85 static inline void MarkBlack(MarkBit mark_bit) { in MarkBlack() argument
86 mark_bit.Set(); in MarkBlack()
[all …]
Dincremental-marking-inl.h92 MarkBit mark_bit) { in BlackToGreyAndUnshift() argument
93 ASSERT(Marking::MarkBitFrom(obj) == mark_bit); in BlackToGreyAndUnshift()
96 Marking::BlackToGrey(mark_bit); in BlackToGreyAndUnshift()
120 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { in WhiteToGreyAndPush() argument
121 WhiteToGrey(obj, mark_bit); in WhiteToGreyAndPush()
126 void IncrementalMarking::WhiteToGrey(HeapObject* obj, MarkBit mark_bit) { in WhiteToGrey() argument
127 Marking::WhiteToGrey(mark_bit); in WhiteToGrey()
Dincremental-marking.h153 inline void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit);
155 inline void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit);
157 inline void WhiteToGrey(HeapObject* obj, MarkBit mark_bit);
161 inline bool MarkBlackOrKeepGrey(MarkBit mark_bit) { in MarkBlackOrKeepGrey() argument
162 ASSERT(!Marking::IsImpossible(mark_bit)); in MarkBlackOrKeepGrey()
163 if (mark_bit.Get()) { in MarkBlackOrKeepGrey()
167 mark_bit.Set(); in MarkBlackOrKeepGrey()
168 ASSERT(Marking::IsBlack(mark_bit)); in MarkBlackOrKeepGrey()
Dincremental-marking.cc236 MarkBit mark_bit = Marking::MarkBitFrom(heap_object); in INLINE() local
237 if (mark_bit.data_only()) { in INLINE()
238 if (incremental_marking_->MarkBlackOrKeepGrey(mark_bit)) { in INLINE()
242 } else if (Marking::IsWhite(mark_bit)) { in INLINE()
243 incremental_marking_->WhiteToGreyAndPush(heap_object, mark_bit); in INLINE()
274 MarkBit mark_bit = Marking::MarkBitFrom(heap_object); in MarkObjectByPointer() local
275 if (mark_bit.data_only()) { in MarkObjectByPointer()
276 if (incremental_marking_->MarkBlackOrKeepGrey(mark_bit)) { in MarkObjectByPointer()
281 if (Marking::IsWhite(mark_bit)) { in MarkObjectByPointer()
282 incremental_marking_->WhiteToGreyAndPush(heap_object, mark_bit); in MarkObjectByPointer()
[all …]
Dmark-compact.cc338 MarkBit mark_bit = Marking::MarkBitFrom(obj); in VerifyMarkbitsAreClean() local
339 ASSERT(Marking::IsWhite(mark_bit)); in VerifyMarkbitsAreClean()
373 MarkBit mark_bit = Marking::MarkBitFrom(obj); in ClearMarkbits() local
374 mark_bit.Clear(); in ClearMarkbits()
375 mark_bit.Next().Clear(); in ClearMarkbits()
1728 MarkBit mark_bit = Marking::MarkBitFrom(object); in MarkObjectByPointer() local
1729 if (mark_bit.Get()) return; in MarkObjectByPointer()
1733 collector_->SetMark(object, mark_bit); in MarkObjectByPointer()
2862 MarkBit mark_bit = Marking::MarkBitFrom(object); in EvacuateNewSpace() local
2863 if (mark_bit.Get()) { in EvacuateNewSpace()
[all …]
Dheap.cc1680 MarkBit mark_bit = Marking::MarkBitFrom(target); in EvacuateJSFunction() local
1681 if (Marking::IsBlack(mark_bit)) { in EvacuateJSFunction()
5274 MarkBit mark_bit = Marking::MarkBitFrom(HeapObject::FromAddress(start)); in IterateAndMarkPointersToFromSpace() local
5275 record_slots = Marking::IsBlack(mark_bit); in IterateAndMarkPointersToFromSpace()
6282 MarkBit mark_bit = Marking::MarkBitFrom(object); in SkipObject() local
6283 return !mark_bit.Get(); in SkipObject()
6295 MarkBit mark_bit = Marking::MarkBitFrom(obj); in VisitPointers() local
6296 if (!mark_bit.Get()) { in VisitPointers()
6297 mark_bit.Set(); in VisitPointers()
Dspaces.cc2664 MarkBit mark_bit = Marking::MarkBitFrom(object); in FreeUnmarkedObjects() local
2665 if (mark_bit.Get()) { in FreeUnmarkedObjects()
2666 mark_bit.Clear(); in FreeUnmarkedObjects()
/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c364 int mark_bit = 0; in ext2fs_test_clear_generic_bitmap_range() local
380 mark_bit = len + start_bit - 1; in ext2fs_test_clear_generic_bitmap_range()
382 mark_bit = 7; in ext2fs_test_clear_generic_bitmap_range()
384 for (i = mark_count; i > 0; i--, mark_bit--) in ext2fs_test_clear_generic_bitmap_range()
385 first_bit |= 1 << mark_bit; in ext2fs_test_clear_generic_bitmap_range()
410 for (mark_bit = len_bit - 1; mark_bit >= 0; mark_bit--) in ext2fs_test_clear_generic_bitmap_range()
411 last_bit |= 1 << mark_bit; in ext2fs_test_clear_generic_bitmap_range()