Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: src/heap/incremental-marking.h

Issue 1725073003: Revert of Replace slots buffer with remembered set. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_H_ 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_
6 #define V8_HEAP_INCREMENTAL_MARKING_H_ 6 #define V8_HEAP_INCREMENTAL_MARKING_H_
7 7
8 #include "src/cancelable-task.h" 8 #include "src/cancelable-task.h"
9 #include "src/execution.h" 9 #include "src/execution.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 Isolate* isolate); 158 Isolate* isolate);
159 159
160 // Record a slot for compaction. Returns false for objects that are 160 // Record a slot for compaction. Returns false for objects that are
161 // guaranteed to be rescanned or not guaranteed to survive. 161 // guaranteed to be rescanned or not guaranteed to survive.
162 // 162 //
163 // No slots in white objects should be recorded, as some slots are typed and 163 // No slots in white objects should be recorded, as some slots are typed and
164 // cannot be interpreted correctly if the underlying object does not survive 164 // cannot be interpreted correctly if the underlying object does not survive
165 // the incremental cycle (stays white). 165 // the incremental cycle (stays white).
166 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value)); 166 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value));
167 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); 167 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value));
168 INLINE(void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value)); 168 INLINE(void RecordWriteIntoCode(HeapObject* obj, RelocInfo* rinfo,
169 Object* value));
169 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, 170 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot,
170 Code* value)); 171 Code* value));
171 172
172 173
173 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); 174 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value);
174 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); 175 void RecordWriteIntoCodeSlow(HeapObject* obj, RelocInfo* rinfo,
176 Object* value);
175 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); 177 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value);
176 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); 178 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value);
177 void RecordCodeTargetPatch(Address pc, HeapObject* value); 179 void RecordCodeTargetPatch(Address pc, HeapObject* value);
178 180
179 void RecordWrites(HeapObject* obj); 181 void RecordWrites(HeapObject* obj);
180 182
181 void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit); 183 void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit);
182 184
183 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); 185 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit);
184 186
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 GCRequestType request_type_; 301 GCRequestType request_type_;
300 302
301 IncrementalMarkingJob incremental_marking_job_; 303 IncrementalMarkingJob incremental_marking_job_;
302 304
303 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 305 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
304 }; 306 };
305 } // namespace internal 307 } // namespace internal
306 } // namespace v8 308 } // namespace v8
307 309
308 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 310 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698