Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index b240de7f11dc8d88bf09467090e2cf8a95130056..66c108d4fea7b70969aaa736178c184d7c7a1371 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -2431,7 +2431,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); |
} |
} |