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_INCREMENTAL_MARKING_INL_H_ | 5 #ifndef V8_INCREMENTAL_MARKING_INL_H_ |
6 #define V8_INCREMENTAL_MARKING_INL_H_ | 6 #define V8_INCREMENTAL_MARKING_INL_H_ |
7 | 7 |
8 #include "incremental-marking.h" | 8 #include "src/incremental-marking.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 | 13 |
14 bool IncrementalMarking::BaseRecordWrite(HeapObject* obj, | 14 bool IncrementalMarking::BaseRecordWrite(HeapObject* obj, |
15 Object** slot, | 15 Object** slot, |
16 Object* value) { | 16 Object* value) { |
17 HeapObject* value_heap_obj = HeapObject::cast(value); | 17 HeapObject* value_heap_obj = HeapObject::cast(value); |
18 MarkBit value_bit = Marking::MarkBitFrom(value_heap_obj); | 18 MarkBit value_bit = Marking::MarkBitFrom(value_heap_obj); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { | 114 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { |
115 Marking::WhiteToGrey(mark_bit); | 115 Marking::WhiteToGrey(mark_bit); |
116 marking_deque_.PushGrey(obj); | 116 marking_deque_.PushGrey(obj); |
117 } | 117 } |
118 | 118 |
119 | 119 |
120 } } // namespace v8::internal | 120 } } // namespace v8::internal |
121 | 121 |
122 #endif // V8_INCREMENTAL_MARKING_INL_H_ | 122 #endif // V8_INCREMENTAL_MARKING_INL_H_ |
OLD | NEW |