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

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

Issue 2310143002: [heap] Introduce enum of garbage collection reasons. (Closed)
Patch Set: rebase 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 | « 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 GCRequestType request_type() const { return request_type_; } 67 GCRequestType request_type() const { return request_type_; }
68 68
69 void reset_request_type() { request_type_ = NONE; } 69 void reset_request_type() { request_type_ = NONE; }
70 70
71 bool CanBeActivated(); 71 bool CanBeActivated();
72 72
73 bool ShouldActivateEvenWithoutIdleNotification(); 73 bool ShouldActivateEvenWithoutIdleNotification();
74 74
75 bool WasActivated(); 75 bool WasActivated();
76 76
77 void Start(const char* reason = nullptr); 77 void Start(GarbageCollectionReason gc_reason);
78 78
79 void FinalizeIncrementally(); 79 void FinalizeIncrementally();
80 80
81 void UpdateMarkingDequeAfterScavenge(); 81 void UpdateMarkingDequeAfterScavenge();
82 82
83 void Hurry(); 83 void Hurry();
84 84
85 void Finalize(); 85 void Finalize();
86 86
87 void Stop(); 87 void Stop();
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 GCRequestType request_type_; 309 GCRequestType request_type_;
310 310
311 IncrementalMarkingJob incremental_marking_job_; 311 IncrementalMarkingJob incremental_marking_job_;
312 312
313 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 313 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
314 }; 314 };
315 } // namespace internal 315 } // namespace internal
316 } // namespace v8 316 } // namespace v8
317 317
318 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 318 #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