Index: src/safepoint-table.h |
diff --git a/src/safepoint-table.h b/src/safepoint-table.h |
index eeeae37fbe14e9f18f0fa9e6ca09f282cfa886aa..8803d06f5b49de72599810b1cd694c49fa56f360 100644 |
--- a/src/safepoint-table.h |
+++ b/src/safepoint-table.h |
@@ -220,8 +220,8 @@ class SafepointTableBuilder BASE_EMBEDDED { |
int arguments, |
int deoptimization_index); |
- // Update the last safepoint with the size of the code generated for the gap |
- // following it. |
+ // Update the last safepoint with the size of the code generated until the |
+ // end of the gap following it. |
void SetPcAfterGap(int pc) { |
ASSERT(!deoptimization_info_.is_empty()); |
int index = deoptimization_info_.length() - 1; |
@@ -232,6 +232,11 @@ class SafepointTableBuilder BASE_EMBEDDED { |
// entry must be enough to hold all the pointer indexes. |
void Emit(Assembler* assembler, int bits_per_entry); |
+ // Count the number of deoptimization points where the next |
+ // following deoptimization point comes less than limit bytes |
+ // after the end of this point's gap. |
+ int CountShortDeoptimizationIntervals(unsigned limit); |
+ |
private: |
struct DeoptimizationInfo { |
unsigned pc; |
@@ -247,8 +252,8 @@ class SafepointTableBuilder BASE_EMBEDDED { |
ZoneList<ZoneList<int>*> indexes_; |
ZoneList<ZoneList<int>*> registers_; |
- bool emitted_; |
unsigned offset_; |
+ bool emitted_; |
DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); |
}; |