Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: src/virtual-frame-ia32.cc

Issue 16513: Experimental: begin using the register allocator for switch statements... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/virtual-frame-ia32.cc
===================================================================
--- src/virtual-frame-ia32.cc (revision 1027)
+++ src/virtual-frame-ia32.cc (working copy)
@@ -727,15 +727,14 @@
ASSERT(temp.is_valid());
FrameElement new_element
= FrameElement::RegisterElement(temp.reg(),
- FrameElement::NOT_SYNCED);
+ FrameElement::SYNCED);
Use(temp.reg());
elements_[index] = new_element;
+ __ mov(temp.reg(), Operand(ebp, fp_relative(index)));
+
Use(temp.reg());
+ new_element.clear_sync();
elements_.Add(new_element);
-
- // Finally, move the element at the index into its new location.
- elements_[index].set_sync();
- __ mov(temp.reg(), Operand(ebp, fp_relative(index)));
} else {
// For constants and registers, add an (unsynced) copy of the element to
// the top of the frame.
@@ -898,9 +897,6 @@
}
-void VirtualFrame::Drop() { Drop(1); }
-
-
Result VirtualFrame::Pop() {
FrameElement popped = elements_.RemoveLast();
bool pop_needed = (stack_pointer_ == elements_.length());
« src/codegen-ia32.cc ('K') | « src/virtual-frame-ia32.h ('k') | test/mjsunit/switch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698