OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_INCREMENTAL_MARKING_INL_H_ | 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_INL_H_ |
6 #define V8_HEAP_INCREMENTAL_MARKING_INL_H_ | 6 #define V8_HEAP_INCREMENTAL_MARKING_INL_H_ |
7 | 7 |
8 #include "src/heap/incremental-marking.h" | 8 #include "src/heap/incremental-marking.h" |
9 #include "src/heap/mark-compact.h" | 9 #include "src/heap/mark-compact.h" |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 | 108 |
109 heap_->mark_compact_collector()->marking_deque()->Unshift(obj); | 109 heap_->mark_compact_collector()->marking_deque()->Unshift(obj); |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { | 113 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { |
114 Marking::WhiteToGrey(mark_bit); | 114 Marking::WhiteToGrey(mark_bit); |
115 heap_->mark_compact_collector()->marking_deque()->Push(obj); | 115 heap_->mark_compact_collector()->marking_deque()->Push(obj); |
116 } | 116 } |
117 } | 117 } // namespace internal |
118 } // namespace v8::internal | 118 } // namespace v8 |
119 | 119 |
120 #endif // V8_HEAP_INCREMENTAL_MARKING_INL_H_ | 120 #endif // V8_HEAP_INCREMENTAL_MARKING_INL_H_ |
OLD | NEW |