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

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

Issue 1823783003: [heap] RecordWrites iterates black object to ensure marking progress. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, 169 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot,
170 Code* value)); 170 Code* value));
171 171
172 172
173 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); 173 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value);
174 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); 174 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value);
175 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); 175 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value);
176 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); 176 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value);
177 void RecordCodeTargetPatch(Address pc, HeapObject* value); 177 void RecordCodeTargetPatch(Address pc, HeapObject* value);
178 178
179 void RecordWrites(HeapObject* obj);
180
181 void BlackToGreyAndUnshift(HeapObject* obj, MarkBit mark_bit);
182
183 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); 179 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit);
184 180
185 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { 181 inline void SetOldSpacePageFlags(MemoryChunk* chunk) {
186 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); 182 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting());
187 } 183 }
188 184
189 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { 185 inline void SetNewSpacePageFlags(MemoryChunk* chunk) {
190 SetNewSpacePageFlags(chunk, IsMarking()); 186 SetNewSpacePageFlags(chunk, IsMarking());
191 } 187 }
192 188
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 GCRequestType request_type_; 304 GCRequestType request_type_;
309 305
310 IncrementalMarkingJob incremental_marking_job_; 306 IncrementalMarkingJob incremental_marking_job_;
311 307
312 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 308 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
313 }; 309 };
314 } // namespace internal 310 } // namespace internal
315 } // namespace v8 311 } // namespace v8
316 312
317 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 313 #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