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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 inline int GetSpillSlotCount() const { return spill_slot_count_; } | 115 inline int GetSpillSlotCount() const { return spill_slot_count_; } |
116 | 116 |
117 inline void SetElidedFrameSizeInSlots(int slots) { | 117 inline void SetElidedFrameSizeInSlots(int slots) { |
118 DCHECK_EQ(0, callee_saved_slot_count_); | 118 DCHECK_EQ(0, callee_saved_slot_count_); |
119 DCHECK_EQ(0, spill_slot_count_); | 119 DCHECK_EQ(0, spill_slot_count_); |
120 frame_slot_count_ = slots; | 120 frame_slot_count_ = slots; |
121 } | 121 } |
122 | 122 |
123 void SetAllocatedRegisters(BitVector* regs) { | 123 void SetAllocatedRegisters(BitVector* regs) { |
124 DCHECK(allocated_registers_ == NULL); | 124 DCHECK(allocated_registers_ == nullptr); |
125 allocated_registers_ = regs; | 125 allocated_registers_ = regs; |
126 } | 126 } |
127 | 127 |
128 void SetAllocatedDoubleRegisters(BitVector* regs) { | 128 void SetAllocatedDoubleRegisters(BitVector* regs) { |
129 DCHECK(allocated_double_registers_ == NULL); | 129 DCHECK(allocated_double_registers_ == nullptr); |
130 allocated_double_registers_ = regs; | 130 allocated_double_registers_ = regs; |
131 } | 131 } |
132 | 132 |
133 bool DidAllocateDoubleRegisters() const { | 133 bool DidAllocateDoubleRegisters() const { |
134 return !allocated_double_registers_->IsEmpty(); | 134 return !allocated_double_registers_->IsEmpty(); |
135 } | 135 } |
136 | 136 |
137 int AlignSavedCalleeRegisterSlots() { | 137 int AlignSavedCalleeRegisterSlots() { |
138 DCHECK_EQ(0, callee_saved_slot_count_); | 138 DCHECK_EQ(0, callee_saved_slot_count_); |
139 needs_frame_ = true; | 139 needs_frame_ = true; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 private: | 248 private: |
249 Frame* const frame_; | 249 Frame* const frame_; |
250 bool access_frame_with_fp_; | 250 bool access_frame_with_fp_; |
251 int sp_delta_; | 251 int sp_delta_; |
252 }; | 252 }; |
253 } // namespace compiler | 253 } // namespace compiler |
254 } // namespace internal | 254 } // namespace internal |
255 } // namespace v8 | 255 } // namespace v8 |
256 | 256 |
257 #endif // V8_COMPILER_FRAME_H_ | 257 #endif // V8_COMPILER_FRAME_H_ |
OLD | NEW |