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

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

Issue 17412: Experimental: a quick hack to allow different live values to flow down... (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
« no previous file with comments | « src/register-allocator-ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/virtual-frame-ia32.cc
===================================================================
--- src/virtual-frame-ia32.cc (revision 1041)
+++ src/virtual-frame-ia32.cc (working copy)
@@ -308,9 +308,12 @@
// with the frame. We simply save the current frame and restore it at the
// end of this function. We should find a better way to deal with this.
VirtualFrame* original_frame = cgen_->frame();
+ RegisterFile non_frame_registers;
+ non_frame_registers.Use(esi);
+ non_frame_registers.Use(ebp);
+ non_frame_registers.Use(esp);
+ cgen_->SetFrame(this, &non_frame_registers);
ASSERT(cgen_->HasValidEntryRegisters());
- cgen_->SetFrame(this);
- ASSERT(cgen_->HasValidEntryRegisters());
// Remove constants from the frame and ensure that no registers are
// multiply referenced within the frame. Allocate elements to their new
@@ -383,8 +386,7 @@
delete[] new_elements;
ASSERT(cgen_->HasValidEntryRegisters());
- cgen_->SetFrame(original_frame);
- ASSERT(cgen_->HasValidEntryRegisters());
+ cgen_->SetFrame(original_frame, &non_frame_registers);
}
« no previous file with comments | « src/register-allocator-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698