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

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

Issue 2304123003: [heap] Refactor incremental marking step. (Closed)
Patch Set: x Created 4 years, 3 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') | src/heap/incremental-marking.cc » ('J')
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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 // incremental steps. 1152 // incremental steps.
1153 void StartIdleIncrementalMarking(); 1153 void StartIdleIncrementalMarking();
1154 1154
1155 // Starts incremental marking assuming incremental marking is currently 1155 // Starts incremental marking assuming incremental marking is currently
1156 // stopped. 1156 // stopped.
1157 void StartIncrementalMarking(int gc_flags = kNoGCFlags, 1157 void StartIncrementalMarking(int gc_flags = kNoGCFlags,
1158 const GCCallbackFlags gc_callback_flags = 1158 const GCCallbackFlags gc_callback_flags =
1159 GCCallbackFlags::kNoGCCallbackFlags, 1159 GCCallbackFlags::kNoGCCallbackFlags,
1160 const char* reason = nullptr); 1160 const char* reason = nullptr);
1161 1161
1162 void StartIncrementalMarkingIfNeeded(int gc_flags = kNoGCFlags,
1163 const GCCallbackFlags gc_callback_flags =
1164 GCCallbackFlags::kNoGCCallbackFlags,
1165 const char* reason = nullptr);
1166
1162 void FinalizeIncrementalMarkingIfComplete(const char* comment); 1167 void FinalizeIncrementalMarkingIfComplete(const char* comment);
1163 1168
1164 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms); 1169 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms);
1165 1170
1166 void RegisterReservationsForBlackAllocation(Reservation* reservations); 1171 void RegisterReservationsForBlackAllocation(Reservation* reservations);
1167 1172
1168 IncrementalMarking* incremental_marking() { return incremental_marking_; } 1173 IncrementalMarking* incremental_marking() { return incremental_marking_; }
1169 1174
1170 // =========================================================================== 1175 // ===========================================================================
1171 // Embedder heap tracer support. ============================================= 1176 // Embedder heap tracer support. =============================================
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 friend class LargeObjectSpace; 2732 friend class LargeObjectSpace;
2728 friend class NewSpace; 2733 friend class NewSpace;
2729 friend class PagedSpace; 2734 friend class PagedSpace;
2730 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2735 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2731 }; 2736 };
2732 2737
2733 } // namespace internal 2738 } // namespace internal
2734 } // namespace v8 2739 } // namespace v8
2735 2740
2736 #endif // V8_HEAP_HEAP_H_ 2741 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/incremental-marking.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698