Index: src/safepoint-table.h |
diff --git a/src/safepoint-table.h b/src/safepoint-table.h |
index 57fceecd92e9ad105aa9b1fa35a216f88460d9cb..2ce4320e320541ffa08e7d6c3fee38ff89cb2eb2 100644 |
--- a/src/safepoint-table.h |
+++ b/src/safepoint-table.h |
@@ -183,7 +183,7 @@ class Safepoint BASE_EMBEDDED { |
static const int kNoDeoptimizationIndex = |
(1 << (SafepointEntry::kDeoptIndexBits)) - 1; |
- void DefinePointerSlot(int index) { indexes_->Add(index); } |
+ void DefinePointerSlot(int index, Zone* zone) { indexes_->Add(index, zone); } |
void DefinePointerRegister(Register reg); |
private: |
@@ -198,13 +198,14 @@ class Safepoint BASE_EMBEDDED { |
class SafepointTableBuilder BASE_EMBEDDED { |
public: |
- SafepointTableBuilder() |
- : deoptimization_info_(32), |
- deopt_index_list_(32), |
- indexes_(32), |
- registers_(32), |
+ explicit SafepointTableBuilder(Zone* zone) |
+ : deoptimization_info_(32, zone), |
+ deopt_index_list_(32, zone), |
+ indexes_(32, zone), |
+ registers_(32, zone), |
emitted_(false), |
- last_lazy_safepoint_(0) { } |
+ last_lazy_safepoint_(0), |
+ zone_(zone) { } |
// Get the offset of the emitted safepoint table in the code. |
unsigned GetCodeOffset() const; |
@@ -242,6 +243,8 @@ class SafepointTableBuilder BASE_EMBEDDED { |
bool emitted_; |
int last_lazy_safepoint_; |
+ Zone* zone_; |
+ |
DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); |
}; |