Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 41487f6d744149a3702f066707ad4f1e75ba6b66..c2f89867d77577a7a7b59d19209d03466647d9a5 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -2306,7 +2306,8 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
ASSERT(info()->IsStub()); |
CodeStubInterfaceDescriptor* descriptor = |
info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
- Register reg = descriptor->register_params_[instr->index()]; |
+ int index = static_cast<int>(instr->index()); |
+ Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); |
return DefineFixed(result, reg); |
} |
} |