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

Unified Diff: src/heap/spaces.h

Issue 1577853007: [heap] Parallel newspace evacuation, semispace copy, and compaction \o/ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refactoring Created 4 years, 11 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
Index: src/heap/spaces.h
diff --git a/src/heap/spaces.h b/src/heap/spaces.h
index 532c9b2e878f2cad7e1a3dc3d2c67ae6443d5490..c3b2873df24e3200b620e8c640258d62379f5f66 100644
--- a/src/heap/spaces.h
+++ b/src/heap/spaces.h
@@ -12,6 +12,7 @@
#include "src/base/platform/mutex.h"
#include "src/flags.h"
#include "src/hashmap.h"
+#include "src/heap/store-buffer.h"
#include "src/list.h"
#include "src/objects.h"
#include "src/utils.h"
@@ -2995,9 +2996,7 @@ class CompactionSpaceCollection : public Malloced {
public:
explicit CompactionSpaceCollection(Heap* heap)
: old_space_(heap, OLD_SPACE, Executability::NOT_EXECUTABLE),
- code_space_(heap, CODE_SPACE, Executability::EXECUTABLE),
- duration_(0.0),
- bytes_compacted_(0) {}
+ code_space_(heap, CODE_SPACE, Executability::EXECUTABLE) {}
CompactionSpace* Get(AllocationSpace space) {
switch (space) {
@@ -3012,21 +3011,9 @@ class CompactionSpaceCollection : public Malloced {
return nullptr;
}
- void ReportCompactionProgress(double duration, intptr_t bytes_compacted) {
- duration_ += duration;
- bytes_compacted_ += bytes_compacted;
- }
-
- double duration() const { return duration_; }
- intptr_t bytes_compacted() const { return bytes_compacted_; }
-
private:
CompactionSpace old_space_;
CompactionSpace code_space_;
-
- // Book keeping.
- double duration_;
- intptr_t bytes_compacted_;
};
« src/heap/mark-compact.cc ('K') | « src/heap/mark-compact.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698