Index: src/arm/virtual-frame-arm.cc |
=================================================================== |
--- src/arm/virtual-frame-arm.cc (revision 4259) |
+++ src/arm/virtual-frame-arm.cc (working copy) |
@@ -49,11 +49,6 @@ |
void VirtualFrame::SyncRange(int begin, int end) { |
// All elements are in memory on ARM (ie, synced). |
-#ifdef DEBUG |
- for (int i = begin; i <= end; i++) { |
- ASSERT(elements_[i].is_synced()); |
- } |
-#endif |
} |
@@ -270,12 +265,7 @@ |
} |
// Discard elements from the virtual frame and free any registers. |
- for (int i = 0; i < count; i++) { |
- FrameElement dropped = elements_.RemoveLast(); |
- if (dropped.is_register()) { |
- Unuse(dropped.reg()); |
- } |
- } |
+ element_count_ -= count; |
} |
@@ -288,14 +278,14 @@ |
void VirtualFrame::EmitPop(Register reg) { |
ASSERT(stack_pointer_ == element_count() - 1); |
stack_pointer_--; |
- elements_.RemoveLast(); |
+ element_count_--; |
__ pop(reg); |
} |
void VirtualFrame::EmitPush(Register reg) { |
ASSERT(stack_pointer_ == element_count() - 1); |
- elements_.Add(FrameElement::MemoryElement(NumberInfo::Unknown())); |
+ element_count_++; |
stack_pointer_++; |
__ push(reg); |
} |