OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 static void RecordWriteFromCode(HeapObject* obj, | 115 static void RecordWriteFromCode(HeapObject* obj, |
116 Object* value, | 116 Object* value, |
117 Isolate* isolate); | 117 Isolate* isolate); |
118 | 118 |
119 static void RecordWriteForEvacuationFromCode(HeapObject* obj, | 119 static void RecordWriteForEvacuationFromCode(HeapObject* obj, |
120 Object** slot, | 120 Object** slot, |
121 Isolate* isolate); | 121 Isolate* isolate); |
122 | 122 |
| 123 inline bool BaseRecordWrite(HeapObject* obj, Object** slot, Object* value); |
| 124 |
| 125 |
123 inline void RecordWrite(HeapObject* obj, Object** slot, Object* value); | 126 inline void RecordWrite(HeapObject* obj, Object** slot, Object* value); |
124 inline void RecordWriteOf(HeapObject* value); | 127 inline void RecordWriteIntoCode(HeapObject* obj, |
| 128 RelocInfo* rinfo, |
| 129 Object* value); |
| 130 void RecordCodeTargetPatch(Address pc, HeapObject* value); |
| 131 void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, Code* value); |
| 132 |
125 inline void RecordWrites(HeapObject* obj); | 133 inline void RecordWrites(HeapObject* obj); |
126 | 134 |
127 inline void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); | 135 inline void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); |
128 | 136 |
129 inline void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); | 137 inline void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); |
130 | 138 |
131 inline void WhiteToGrey(HeapObject* obj, MarkBit mark_bit); | 139 inline void WhiteToGrey(HeapObject* obj, MarkBit mark_bit); |
132 | 140 |
133 // Does white->black or grey->grey | 141 // Does white->black or grey->grey |
134 inline bool MarkBlackOrKeepGrey(MarkBit mark_bit) { | 142 inline bool MarkBlackOrKeepGrey(MarkBit mark_bit) { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 bool should_hurry_; | 241 bool should_hurry_; |
234 int allocation_marking_factor_; | 242 int allocation_marking_factor_; |
235 intptr_t allocated_; | 243 intptr_t allocated_; |
236 | 244 |
237 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 245 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
238 }; | 246 }; |
239 | 247 |
240 } } // namespace v8::internal | 248 } } // namespace v8::internal |
241 | 249 |
242 #endif // V8_INCREMENTAL_MARKING_H_ | 250 #endif // V8_INCREMENTAL_MARKING_H_ |
OLD | NEW |