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

Unified Diff: src/register-allocator-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.h ('k') | src/virtual-frame-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/register-allocator-ia32.cc
===================================================================
--- src/register-allocator-ia32.cc (revision 1041)
+++ src/register-allocator-ia32.cc (working copy)
@@ -103,14 +103,30 @@
// -------------------------------------------------------------------------
+// RegisterFile implementation.
+
+
+void RegisterFile::CopyTo(RegisterFile* other) {
+ for (int i = 0; i < kNumRegisters; i++) {
+ other->ref_counts_[i] = ref_counts_[i];
+ }
+}
+
+
+// -------------------------------------------------------------------------
// RegisterAllocator implementation.
void RegisterAllocator::Initialize() {
+ Reset();
+ Use(edi);
+}
+
+
+void RegisterAllocator::Reset() {
registers_.Reset();
Use(esp);
Use(ebp);
Use(esi);
- Use(edi);
}
« no previous file with comments | « src/register-allocator-ia32.h ('k') | src/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698