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

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

Issue 2863943002: [heap] Memory reducer calls GC with kGCCallbackFlagCollectAllExternalMemory flag. (Closed)
Patch Set: Created 3 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 | « no previous file | 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 <vector> 9 #include <vector>
10 10
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 void ClearRecordedSlotRange(Address start, Address end); 1232 void ClearRecordedSlotRange(Address start, Address end);
1233 1233
1234 bool HasRecordedSlot(HeapObject* object, Object** slot); 1234 bool HasRecordedSlot(HeapObject* object, Object** slot);
1235 1235
1236 // =========================================================================== 1236 // ===========================================================================
1237 // Incremental marking API. ================================================== 1237 // Incremental marking API. ==================================================
1238 // =========================================================================== 1238 // ===========================================================================
1239 1239
1240 // Start incremental marking and ensure that idle time handler can perform 1240 // Start incremental marking and ensure that idle time handler can perform
1241 // incremental steps. 1241 // incremental steps.
1242 void StartIdleIncrementalMarking(GarbageCollectionReason gc_reason); 1242 void StartIdleIncrementalMarking(
1243 GarbageCollectionReason gc_reason,
1244 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags);
1243 1245
1244 // Starts incremental marking assuming incremental marking is currently 1246 // Starts incremental marking assuming incremental marking is currently
1245 // stopped. 1247 // stopped.
1246 void StartIncrementalMarking( 1248 void StartIncrementalMarking(
1247 int gc_flags, GarbageCollectionReason gc_reason, 1249 int gc_flags, GarbageCollectionReason gc_reason,
1248 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); 1250 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags);
1249 1251
1250 void StartIncrementalMarkingIfAllocationLimitIsReached( 1252 void StartIncrementalMarkingIfAllocationLimitIsReached(
1251 int gc_flags, 1253 int gc_flags,
1252 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags); 1254 GCCallbackFlags gc_callback_flags = GCCallbackFlags::kNoGCCallbackFlags);
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2652 friend class PagedSpace; 2654 friend class PagedSpace;
2653 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2655 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2654 }; 2656 };
2655 2657
2656 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); 2658 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space);
2657 2659
2658 } // namespace internal 2660 } // namespace internal
2659 } // namespace v8 2661 } // namespace v8
2660 2662
2661 #endif // V8_HEAP_HEAP_H_ 2663 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698