Index: src/mips/code-stubs-mips.h |
diff --git a/src/mips/code-stubs-mips.h b/src/mips/code-stubs-mips.h |
index 221b344e2c0da9207e3a42f9ca3458a50b4fe0fb..18001780c3f8479c59459c835d54b55b70a84ea1 100644 |
--- a/src/mips/code-stubs-mips.h |
+++ b/src/mips/code-stubs-mips.h |
@@ -391,7 +391,7 @@ class RecordWriteStub: public PlatformCodeStub { |
address_(address), |
scratch0_(scratch0) { |
ASSERT(!AreAliased(scratch0, object, address, no_reg)); |
- scratch1_ = GetRegThatIsNotOneOf(object_, address_, scratch0_); |
+ scratch1_ = GetRegisterThatIsNotOneOf(object_, address_, scratch0_); |
} |
void Save(MacroAssembler* masm) { |
@@ -434,19 +434,6 @@ class RecordWriteStub: public PlatformCodeStub { |
Register scratch0_; |
Register scratch1_; |
- Register GetRegThatIsNotOneOf(Register r1, |
- Register r2, |
- Register r3) { |
- for (int i = 0; i < Register::NumAllocatableRegisters(); i++) { |
- Register candidate = Register::FromAllocationIndex(i); |
- if (candidate.is(r1)) continue; |
- if (candidate.is(r2)) continue; |
- if (candidate.is(r3)) continue; |
- return candidate; |
- } |
- UNREACHABLE(); |
- return no_reg; |
- } |
friend class RecordWriteStub; |
}; |