| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 2707c9e44b2a5f7518087f922fdf7de80cbf4f6d..f09785277b862fb5547f16997b7998a9b410e7c3 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -112,17 +112,17 @@ void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm,
|
| isolate()->counters()->code_stubs()->Increment();
|
|
|
| CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor();
|
| - int param_count = descriptor.GetEnvironmentParameterCount();
|
| + int param_count = descriptor.GetRegisterParameterCount();
|
| {
|
| // Call the runtime system in a fresh internal frame.
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
| DCHECK(param_count == 0 ||
|
| - a0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1)));
|
| + a0.is(descriptor.GetRegisterParameter(param_count - 1)));
|
| // Push arguments, adjust sp.
|
| __ Subu(sp, sp, Operand(param_count * kPointerSize));
|
| for (int i = 0; i < param_count; ++i) {
|
| // Store argument to stack.
|
| - __ sw(descriptor.GetEnvironmentParameterRegister(i),
|
| + __ sw(descriptor.GetRegisterParameter(i),
|
| MemOperand(sp, (param_count - 1 - i) * kPointerSize));
|
| }
|
| __ CallExternalReference(miss, param_count);
|
|
|