Chromium Code Reviews| Index: src/virtual-frame-ia32.cc |
| =================================================================== |
| --- src/virtual-frame-ia32.cc (revision 1192) |
| +++ src/virtual-frame-ia32.cc (working copy) |
| @@ -170,9 +170,11 @@ |
| // Spill an element, making its type be MEMORY. |
| // Does not decrement usage counts, if element is a register. |
| void VirtualFrame::RawSpillElementAt(int index) { |
| - SyncElementAt(index); |
| - // The element is now in memory. |
| - elements_[index] = FrameElement::MemoryElement(); |
| + if (elements_[index].is_valid()) { |
|
Kevin Millikin (Chromium)
2009/02/03 09:48:55
I think there should also be an early exit in RawS
|
| + SyncElementAt(index); |
| + // The element is now in memory. |
| + elements_[index] = FrameElement::MemoryElement(); |
| + } |
| } |