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

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

Issue 2637403011: Reland "[heap] Provide ObjectMarking with marking transitions" (Closed)
Patch Set: Add comment Created 3 years, 11 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, 151 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot,
152 Code* value)); 152 Code* value));
153 153
154 V8_EXPORT_PRIVATE void RecordWriteSlow(HeapObject* obj, Object** slot, 154 V8_EXPORT_PRIVATE void RecordWriteSlow(HeapObject* obj, Object** slot,
155 Object* value); 155 Object* value);
156 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); 156 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value);
157 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); 157 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value);
158 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); 158 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value);
159 void RecordCodeTargetPatch(Address pc, HeapObject* value); 159 void RecordCodeTargetPatch(Address pc, HeapObject* value);
160 160
161 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); 161 void WhiteToGreyAndPush(HeapObject* obj);
162 162
163 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { 163 inline void SetOldSpacePageFlags(MemoryChunk* chunk) {
164 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); 164 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting());
165 } 165 }
166 166
167 inline void SetNewSpacePageFlags(Page* chunk) { 167 inline void SetNewSpacePageFlags(Page* chunk) {
168 SetNewSpacePageFlags(chunk, IsMarking()); 168 SetNewSpacePageFlags(chunk, IsMarking());
169 } 169 }
170 170
171 bool IsCompacting() { return IsMarking() && is_compacting_; } 171 bool IsCompacting() { return IsMarking() && is_compacting_; }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 IncrementalMarkingJob incremental_marking_job_; 305 IncrementalMarkingJob incremental_marking_job_;
306 Observer new_generation_observer_; 306 Observer new_generation_observer_;
307 Observer old_generation_observer_; 307 Observer old_generation_observer_;
308 308
309 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 309 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
310 }; 310 };
311 } // namespace internal 311 } // namespace internal
312 } // namespace v8 312 } // namespace v8
313 313
314 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 314 #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