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

Unified Diff: src/register-allocator-ia32.cc

Issue 13746: Experimental: thread live register references to deferred code.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 12 years 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/register-allocator-ia32.cc
===================================================================
--- src/register-allocator-ia32.cc (revision 969)
+++ src/register-allocator-ia32.cc (working copy)
@@ -32,6 +32,25 @@
namespace v8 { namespace internal {
+void RegisterFile::CopyTo(RegisterFile* other) {
+ for (int i = 0; i < kNumRegisters; i++) {
+ other->ref_counts_[i] = ref_counts_[i];
+ }
+}
+
+
+#ifdef DEBUG
+bool RegisterFile::Equals(RegisterFile* other) {
+ for (int i = 0; i < kNumRegisters; i++) {
+ if (ref_counts_[i] != other->ref_counts_[i]) {
+ return false;
+ }
+ }
+ return true;
+}
+#endif
+
+
void RegisterAllocator::Initialize() {
registers_.Reset();
registers_.Use(esp);

Powered by Google App Engine
This is Rietveld 408576698