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

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

Issue 1900423002: [heap] Merge NewSpacePage into Page (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 4 years, 7 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-inl.h ('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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); 178 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value);
179 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); 179 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value);
180 void RecordCodeTargetPatch(Address pc, HeapObject* value); 180 void RecordCodeTargetPatch(Address pc, HeapObject* value);
181 181
182 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); 182 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit);
183 183
184 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { 184 inline void SetOldSpacePageFlags(MemoryChunk* chunk) {
185 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); 185 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting());
186 } 186 }
187 187
188 inline void SetNewSpacePageFlags(MemoryChunk* chunk) { 188 inline void SetNewSpacePageFlags(Page* chunk) {
189 SetNewSpacePageFlags(chunk, IsMarking()); 189 SetNewSpacePageFlags(chunk, IsMarking());
190 } 190 }
191 191
192 bool IsCompacting() { return IsMarking() && is_compacting_; } 192 bool IsCompacting() { return IsMarking() && is_compacting_; }
193 193
194 void ActivateGeneratedStub(Code* stub); 194 void ActivateGeneratedStub(Code* stub);
195 195
196 void NotifyOfHighPromotionRate(); 196 void NotifyOfHighPromotionRate();
197 197
198 void NotifyIncompleteScanOfObject(int unscanned_bytes) { 198 void NotifyIncompleteScanOfObject(int unscanned_bytes) {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 GCRequestType request_type_; 301 GCRequestType request_type_;
302 302
303 IncrementalMarkingJob incremental_marking_job_; 303 IncrementalMarkingJob incremental_marking_job_;
304 304
305 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 305 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
306 }; 306 };
307 } // namespace internal 307 } // namespace internal
308 } // namespace v8 308 } // namespace v8
309 309
310 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 310 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698