Index: src/compiler/frame.h |
diff --git a/src/compiler/frame.h b/src/compiler/frame.h |
index 8c2633113a293b550347413403b8e9a7d289bda1..de2ae1a3c23f57c32c3430a7e274ab0187f2f01a 100644 |
--- a/src/compiler/frame.h |
+++ b/src/compiler/frame.h |
@@ -98,6 +98,15 @@ |
return !allocated_double_registers_->IsEmpty(); |
} |
+ void AlignSavedCalleeRegisterSlots(int alignment = kDoubleSize) { |
+ int alignment_slots = alignment / kPointerSize; |
+ int delta = alignment_slots - (frame_slot_count_ & (alignment_slots - 1)); |
+ if (delta != alignment_slots) { |
+ frame_slot_count_ += delta; |
+ } |
+ spill_slot_count_ += delta; |
+ } |
+ |
void AllocateSavedCalleeRegisterSlots(int count) { |
frame_slot_count_ += count; |
} |