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

Side by Side Diff: src/heap/heap.h

Issue 1683653002: Add a generic remembered set class. (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 | « BUILD.gn ('k') | src/heap/heap.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_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 class HeapObjectsFilter; 284 class HeapObjectsFilter;
285 class HeapStats; 285 class HeapStats;
286 class HistogramTimer; 286 class HistogramTimer;
287 class Isolate; 287 class Isolate;
288 class MemoryReducer; 288 class MemoryReducer;
289 class ObjectStats; 289 class ObjectStats;
290 class Scavenger; 290 class Scavenger;
291 class ScavengeJob; 291 class ScavengeJob;
292 class WeakObjectRetainer; 292 class WeakObjectRetainer;
293 293
294 typedef void (*ObjectSlotCallback)(HeapObject** from, HeapObject* to);
294 295
295 // A queue of objects promoted during scavenge. Each object is accompanied 296 // A queue of objects promoted during scavenge. Each object is accompanied
296 // by it's size to avoid dereferencing a map pointer for scanning. 297 // by it's size to avoid dereferencing a map pointer for scanning.
297 // The last page in to-space is used for the promotion queue. On conflict 298 // The last page in to-space is used for the promotion queue. On conflict
298 // during scavenge, the promotion queue is allocated externally and all 299 // during scavenge, the promotion queue is allocated externally and all
299 // entries are copied to the external queue. 300 // entries are copied to the external queue.
300 class PromotionQueue { 301 class PromotionQueue {
301 public: 302 public:
302 explicit PromotionQueue(Heap* heap) 303 explicit PromotionQueue(Heap* heap)
303 : front_(NULL), 304 : front_(NULL),
(...skipping 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 friend class LargeObjectSpace; 2623 friend class LargeObjectSpace;
2623 friend class NewSpace; 2624 friend class NewSpace;
2624 friend class PagedSpace; 2625 friend class PagedSpace;
2625 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2626 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2626 }; 2627 };
2627 2628
2628 } // namespace internal 2629 } // namespace internal
2629 } // namespace v8 2630 } // namespace v8
2630 2631
2631 #endif // V8_HEAP_HEAP_H_ 2632 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698