Index: src/compiler/frame.h |
diff --git a/src/compiler/frame.h b/src/compiler/frame.h |
index 4c4c2409b46271e9ce9e605c862c77942487a3c9..77dccaa629cc0c36e2cb604dc5e3ebf3e7065055 100644 |
--- a/src/compiler/frame.h |
+++ b/src/compiler/frame.h |
@@ -86,7 +86,7 @@ class Frame : public ZoneObject { |
inline int GetTotalFrameSlotCount() const { return frame_slot_count_; } |
- inline int GetSpToFpSlotCount() const { |
+ inline int GetSPToFPSlotCount() const { |
return GetTotalFrameSlotCount() - |
StandardFrameConstants::kFixedSlotCountAboveFp; |
} |
@@ -225,6 +225,11 @@ class FrameAccessState : public ZoneObject { |
void SetFrameAccessToFP() { access_frame_with_fp_ = true; } |
void SetFrameAccessToSP() { access_frame_with_fp_ = false; } |
+ int GetSPToFPSlotCount() const { |
+ return frame_->GetSPToFPSlotCount() + sp_delta(); |
+ } |
+ int GetSPToFPOffset() const { return GetSPToFPSlotCount() * kPointerSize; } |
+ |
// Get the frame offset for a given spill slot. The location depends on the |
// calling convention and the specific frame layout, and may thus be |
// architecture-specific. Negative spill slots indicate arguments on the |