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

Unified Diff: src/heap/heap.cc

Issue 2312643003: [heap] Move PromotionQueue implementation out of heap.h (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« src/heap/heap.h ('K') | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index fab79ddb71b30ed39cc26e521de7ee3116db7eac..30cf94049f6d0dcf760418e6babab0cea165fc1c 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1555,6 +1555,11 @@ void PromotionQueue::Initialize() {
emergency_stack_ = NULL;
}
+void PromotionQueue::Destroy() {
+ DCHECK(is_empty());
+ delete emergency_stack_;
+ emergency_stack_ = NULL;
+}
void PromotionQueue::RelocateQueueHead() {
DCHECK(emergency_stack_ == NULL);
« src/heap/heap.h ('K') | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698