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

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

Issue 2304123003: [heap] Refactor incremental marking step. (Closed)
Patch Set: another fix of the test 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') | 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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 // incremental steps. 1059 // incremental steps.
1060 void StartIdleIncrementalMarking(); 1060 void StartIdleIncrementalMarking();
1061 1061
1062 // Starts incremental marking assuming incremental marking is currently 1062 // Starts incremental marking assuming incremental marking is currently
1063 // stopped. 1063 // stopped.
1064 void StartIncrementalMarking(int gc_flags = kNoGCFlags, 1064 void StartIncrementalMarking(int gc_flags = kNoGCFlags,
1065 const GCCallbackFlags gc_callback_flags = 1065 const GCCallbackFlags gc_callback_flags =
1066 GCCallbackFlags::kNoGCCallbackFlags, 1066 GCCallbackFlags::kNoGCCallbackFlags,
1067 const char* reason = nullptr); 1067 const char* reason = nullptr);
1068 1068
1069 void StartIncrementalMarkingIfNeeded(int gc_flags = kNoGCFlags,
1070 const GCCallbackFlags gc_callback_flags =
1071 GCCallbackFlags::kNoGCCallbackFlags,
1072 const char* reason = nullptr);
1073
1069 void FinalizeIncrementalMarkingIfComplete(const char* comment); 1074 void FinalizeIncrementalMarkingIfComplete(const char* comment);
1070 1075
1071 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms); 1076 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms);
1072 1077
1073 void RegisterReservationsForBlackAllocation(Reservation* reservations); 1078 void RegisterReservationsForBlackAllocation(Reservation* reservations);
1074 1079
1075 IncrementalMarking* incremental_marking() { return incremental_marking_; } 1080 IncrementalMarking* incremental_marking() { return incremental_marking_; }
1076 1081
1077 // =========================================================================== 1082 // ===========================================================================
1078 // Embedder heap tracer support. ============================================= 1083 // Embedder heap tracer support. =============================================
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
2519 friend class LargeObjectSpace; 2524 friend class LargeObjectSpace;
2520 friend class NewSpace; 2525 friend class NewSpace;
2521 friend class PagedSpace; 2526 friend class PagedSpace;
2522 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2527 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2523 }; 2528 };
2524 2529
2525 } // namespace internal 2530 } // namespace internal
2526 } // namespace v8 2531 } // namespace v8
2527 2532
2528 #endif // V8_HEAP_HEAP_H_ 2533 #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