| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index 2221dee4ec954cabd655dc8f04ce007afa387efd..55e501762c4fece70a9264ac24068dcad39dc37b 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1092,10 +1092,18 @@ LInstruction* LChunkBuilder::DoCallWithDescriptor(
|
|
|
| LOperand* target = UseRegisterOrConstantAtStart(instr->target());
|
| ZoneList<LOperand*> ops(instr->OperandCount(), zone());
|
| + // Target
|
| ops.Add(target, zone());
|
| - for (int i = 1; i < instr->OperandCount(); i++) {
|
| - LOperand* op =
|
| - UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1));
|
| + // Context
|
| + LOperand* op = UseFixed(instr->OperandAt(1), cp);
|
| + ops.Add(op, zone());
|
| + // Other register parameters
|
| + for (int i = LCallWithDescriptor::kImplicitRegisterParameterCount;
|
| + i < instr->OperandCount(); i++) {
|
| + op =
|
| + UseFixed(instr->OperandAt(i),
|
| + descriptor.GetRegisterParameter(
|
| + i - LCallWithDescriptor::kImplicitRegisterParameterCount));
|
| ops.Add(op, zone());
|
| }
|
|
|
| @@ -2501,7 +2509,7 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
|
| CallInterfaceDescriptor descriptor =
|
| info()->code_stub()->GetCallInterfaceDescriptor();
|
| int index = static_cast<int>(instr->index());
|
| - Register reg = descriptor.GetEnvironmentParameterRegister(index);
|
| + Register reg = descriptor.GetRegisterParameter(index);
|
| return DefineFixed(result, reg);
|
| }
|
| }
|
|
|