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_; |