| Index: src/mips/builtins-mips.cc
|
| diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc
|
| index 3aabd97b9729339432e28dd9248152f75f20636d..400292e694b2e8146f0083bb0414fdc45b6d62bf 100644
|
| --- a/src/mips/builtins-mips.cc
|
| +++ b/src/mips/builtins-mips.cc
|
| @@ -833,14 +833,15 @@ static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) {
|
| // The following registers must be saved and restored when calling through to
|
| // the runtime:
|
| // a0 - contains return address (beginning of patch sequence)
|
| - // a1 - function object
|
| + // a1 - isolate
|
| RegList saved_regs =
|
| (a0.bit() | a1.bit() | ra.bit() | fp.bit()) & ~sp.bit();
|
| FrameScope scope(masm, StackFrame::MANUAL);
|
| __ MultiPush(saved_regs);
|
| - __ PrepareCallCFunction(1, 0, a1);
|
| + __ PrepareCallCFunction(1, 0, a2);
|
| + __ li(a1, Operand(ExternalReference::isolate_address(masm->isolate())));
|
| __ CallCFunction(
|
| - ExternalReference::get_make_code_young_function(masm->isolate()), 1);
|
| + ExternalReference::get_make_code_young_function(masm->isolate()), 2);
|
| __ MultiPop(saved_regs);
|
| __ Jump(a0);
|
| }
|
|
|