| Index: src/virtual-frame.cc
|
| ===================================================================
|
| --- src/virtual-frame.cc (revision 4341)
|
| +++ src/virtual-frame.cc (working copy)
|
| @@ -37,21 +37,6 @@
|
| // -------------------------------------------------------------------------
|
| // VirtualFrame implementation.
|
|
|
| -// If there are any registers referenced only by the frame, spill one.
|
| -Register VirtualFrame::SpillAnyRegister() {
|
| - // Find the leftmost (ordered by register number) register whose only
|
| - // reference is in the frame.
|
| - for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) {
|
| - if (is_used(i) && cgen()->allocator()->count(i) == 1) {
|
| - SpillElementAt(register_location(i));
|
| - ASSERT(!cgen()->allocator()->is_used(i));
|
| - return RegisterAllocator::ToRegister(i);
|
| - }
|
| - }
|
| - return no_reg;
|
| -}
|
| -
|
| -
|
| // Specialization of List::ResizeAdd to non-inlined version for FrameElements.
|
| // The function ResizeAdd becomes a real function, whose implementation is the
|
| // inlined ResizeAddInternal.
|
|
|