Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 42ecab4b8e3c205724760b97bf5bfbd269c0d7a8..cafa4cfdbc22858b42e26a15b36f161aef7722dc 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -451,14 +451,13 @@ LPlatformChunk* LChunkBuilder::Build() { |
LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { |
- return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, |
- Register::ToAllocationIndex(reg)); |
+ return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code()); |
} |
LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { |
- return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, |
- DoubleRegister::ToAllocationIndex(reg)); |
+ return new (zone()) |
+ LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code()); |
} |