aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/frame.h')
-rw-r--r--deps/v8/src/compiler/frame.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/deps/v8/src/compiler/frame.h b/deps/v8/src/compiler/frame.h
index a5dd11657b..2850a8c1a1 100644
--- a/deps/v8/src/compiler/frame.h
+++ b/deps/v8/src/compiler/frame.h
@@ -20,13 +20,11 @@ class Frame : public ZoneObject {
Frame()
: register_save_area_size_(0),
spill_slot_count_(0),
- double_spill_slot_count_(0),
osr_stack_slot_count_(0),
allocated_registers_(NULL),
allocated_double_registers_(NULL) {}
inline int GetSpillSlotCount() { return spill_slot_count_; }
- inline int GetDoubleSpillSlotCount() { return double_spill_slot_count_; }
void SetAllocatedRegisters(BitVector* regs) {
DCHECK(allocated_registers_ == NULL);
@@ -57,15 +55,13 @@ class Frame : public ZoneObject {
int GetOsrStackSlotCount() { return osr_stack_slot_count_; }
- int AllocateSpillSlot(bool is_double) {
- // If 32-bit, skip one if the new slot is a double.
- if (is_double) {
- if (kDoubleSize > kPointerSize) {
- DCHECK(kDoubleSize == kPointerSize * 2);
- spill_slot_count_++;
- spill_slot_count_ |= 1;
- }
- double_spill_slot_count_++;
+ int AllocateSpillSlot(int width) {
+ DCHECK(width == 4 || width == 8);
+ // Skip one slot if necessary.
+ if (width > kPointerSize) {
+ DCHECK(width == kPointerSize * 2);
+ spill_slot_count_++;
+ spill_slot_count_ |= 1;
}
return spill_slot_count_++;
}
@@ -78,7 +74,6 @@ class Frame : public ZoneObject {
private:
int register_save_area_size_;
int spill_slot_count_;
- int double_spill_slot_count_;
int osr_stack_slot_count_;
BitVector* allocated_registers_;
BitVector* allocated_double_registers_;