Chromium Code Reviews| Index: src/compiler/frame.h |
| diff --git a/src/compiler/frame.h b/src/compiler/frame.h |
| index d413d3e0336841dee93a753b12a3b431dad99994..d4c37d4bbfd89e0434353a66403f776bafd55636 100644 |
| --- a/src/compiler/frame.h |
| +++ b/src/compiler/frame.h |
| @@ -135,6 +135,9 @@ class Frame : public ZoneObject { |
| return frame_slot_count_ - 1; |
| } |
| + int stack_shrink_slots() const { return stack_shrink_slots_; } |
| + void set_stack_shrink_slots(int value) { stack_shrink_slots_ = value; } |
| + |
| static const int kContextSlot = 2 + StandardFrameConstants::kCPSlotCount; |
| static const int kJSFunctionSlot = 3 + StandardFrameConstants::kCPSlotCount; |
| @@ -154,6 +157,7 @@ class Frame : public ZoneObject { |
| int frame_slot_count_; |
| int callee_saved_slot_count_; |
| int spill_slot_count_; |
| + int stack_shrink_slots_; |
|
danno
2016/04/01 15:56:26
I don't think this has to/should be separate from,
Mircea Trofin
2016/04/01 18:27:39
Do we even have a reason to handle callee saved re
Mircea Trofin
2016/04/16 04:25:10
Done, except with the moving of the callee saved r
|
| BitVector* allocated_registers_; |
| BitVector* allocated_double_registers_; |
| @@ -191,13 +195,13 @@ class FrameOffset { |
| // current function's frame. |
| class FrameAccessState : public ZoneObject { |
| public: |
| - explicit FrameAccessState(Frame* const frame) |
| + explicit FrameAccessState(const Frame* const frame) |
| : frame_(frame), |
| access_frame_with_fp_(false), |
| sp_delta_(0), |
| has_frame_(false) {} |
| - Frame* frame() const { return frame_; } |
| + const Frame* frame() const { return frame_; } |
| void MarkHasFrame(bool state); |
| int sp_delta() const { return sp_delta_; } |
| @@ -229,7 +233,7 @@ class FrameAccessState : public ZoneObject { |
| FrameOffset GetFrameOffset(int spill_slot) const; |
| private: |
| - Frame* const frame_; |
| + const Frame* const frame_; |
| bool access_frame_with_fp_; |
| int sp_delta_; |
| bool has_frame_; |