| 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);
|
|
|