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

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: Rebase (2 changes factored out) and addressed comments 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..9f51338b22d75e7cfc0d4e10b7e10c29695b2c25 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"
@@ -2996,6 +2997,8 @@ class CompactionSpaceCollection : public Malloced {
explicit CompactionSpaceCollection(Heap* heap)
: old_space_(heap, OLD_SPACE, Executability::NOT_EXECUTABLE),
code_space_(heap, CODE_SPACE, Executability::EXECUTABLE),
+ local_pretenuring_feedback_(HashMap::PointersMatch,
+ kInitialLocalPretenuringFeedbackCapacity),
duration_(0.0),
bytes_compacted_(0) {}
@@ -3019,10 +3022,16 @@ class CompactionSpaceCollection : public Malloced {
double duration() const { return duration_; }
intptr_t bytes_compacted() const { return bytes_compacted_; }
+ HashMap* local_pretenuring_feedback() { return &local_pretenuring_feedback_; }
+ LocalStoreBuffer* local_store_buffer() { return &local_store_buffer_; }
private:
+ static const int kInitialLocalPretenuringFeedbackCapacity = 256;
+
CompactionSpace old_space_;
CompactionSpace code_space_;
+ HashMap local_pretenuring_feedback_;
+ LocalStoreBuffer local_store_buffer_;
// Book keeping.
double duration_;
« 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