| Index: src/safepoint-table.h
|
| diff --git a/src/safepoint-table.h b/src/safepoint-table.h
|
| index fa3590511e97af8ffbcdb8436520814ed53e0f4e..54d2d6778e7a9406b97b2a1c665d41ef9ff4612c 100644
|
| --- a/src/safepoint-table.h
|
| +++ b/src/safepoint-table.h
|
| @@ -221,8 +221,8 @@ class SafepointTableBuilder BASE_EMBEDDED {
|
| int arguments,
|
| int deoptimization_index = Safepoint::kNoDeoptimizationIndex);
|
|
|
| - // 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;
|
| @@ -233,6 +233,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;
|
| @@ -248,8 +253,8 @@ class SafepointTableBuilder BASE_EMBEDDED {
|
| ZoneList<ZoneList<int>*> indexes_;
|
| ZoneList<ZoneList<int>*> registers_;
|
|
|
| - bool emitted_;
|
| unsigned offset_;
|
| + bool emitted_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder);
|
| };
|
|
|