OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_FRAME_H_ | 5 #ifndef V8_COMPILER_FRAME_H_ |
6 #define V8_COMPILER_FRAME_H_ | 6 #define V8_COMPILER_FRAME_H_ |
7 | 7 |
8 #include "src/bit-vector.h" | 8 #include "src/bit-vector.h" |
9 #include "src/frames.h" | 9 #include "src/frames.h" |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // +-----------------+---- | | 71 // +-----------------+---- | |
72 // m+4 | callee-saved 1 | ^ | | 72 // m+4 | callee-saved 1 | ^ | |
73 // |- - - - - - - - -| | | | 73 // |- - - - - - - - -| | | |
74 // | ... | Callee-saved | | 74 // | ... | Callee-saved | |
75 // |- - - - - - - - -| | | | 75 // |- - - - - - - - -| | | |
76 // m+r+3 | callee-saved r | v v | 76 // m+r+3 | callee-saved r | v v |
77 // -----+-----------------+----- <-- stack ptr ------------- | 77 // -----+-----------------+----- <-- stack ptr ------------- |
78 // | 78 // |
79 class Frame : public ZoneObject { | 79 class Frame : public ZoneObject { |
80 public: | 80 public: |
81 explicit Frame(int fixed_frame_size_in_slots, | 81 explicit Frame(int fixed_frame_size_in_slots); |
82 const CallDescriptor* descriptor); | |
83 | 82 |
84 inline int GetTotalFrameSlotCount() const { return frame_slot_count_; } | 83 inline int GetTotalFrameSlotCount() const { return frame_slot_count_; } |
85 | 84 |
86 inline int GetSavedCalleeRegisterSlotCount() const { | 85 inline int GetSavedCalleeRegisterSlotCount() const { |
87 return callee_saved_slot_count_; | 86 return callee_saved_slot_count_; |
88 } | 87 } |
89 inline int GetSpillSlotCount() const { return spill_slot_count_; } | 88 inline int GetSpillSlotCount() const { return spill_slot_count_; } |
90 | 89 |
91 void SetAllocatedRegisters(BitVector* regs) { | 90 void SetAllocatedRegisters(BitVector* regs) { |
92 DCHECK(allocated_registers_ == nullptr); | 91 DCHECK(allocated_registers_ == nullptr); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 Frame* const frame_; | 231 Frame* const frame_; |
233 bool access_frame_with_fp_; | 232 bool access_frame_with_fp_; |
234 int sp_delta_; | 233 int sp_delta_; |
235 bool has_frame_; | 234 bool has_frame_; |
236 }; | 235 }; |
237 } // namespace compiler | 236 } // namespace compiler |
238 } // namespace internal | 237 } // namespace internal |
239 } // namespace v8 | 238 } // namespace v8 |
240 | 239 |
241 #endif // V8_COMPILER_FRAME_H_ | 240 #endif // V8_COMPILER_FRAME_H_ |
OLD | NEW |