| Index: src/x87/lithium-x87.cc
|
| diff --git a/src/x87/lithium-x87.cc b/src/x87/lithium-x87.cc
|
| index d4cf64fa477db8d224bf22d5b0bec7d24985f2e6..a57aa915767b132ff53121b0309190a0423055f8 100644
|
| --- a/src/x87/lithium-x87.cc
|
| +++ b/src/x87/lithium-x87.cc
|
| @@ -1151,10 +1151,18 @@ LInstruction* LChunkBuilder::DoCallWithDescriptor(
|
| CallInterfaceDescriptor descriptor = instr->descriptor();
|
| 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), esi);
|
| + 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());
|
| }
|
|
|
| @@ -2551,7 +2559,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);
|
| }
|
| }
|
|
|