Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index f60e1f867145d7c0a725fe2f6afd8b2344290d79..b7a343fd6121ef76b919eef35a3158e5024bd580 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -807,12 +807,13 @@ static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) { |
// The following registers must be saved and restored when calling through to |
// the runtime: |
// r0 - contains return address (beginning of patch sequence) |
- // r1 - function object |
+ // r1 - isolate |
FrameScope scope(masm, StackFrame::MANUAL); |
__ stm(db_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); |
- __ PrepareCallCFunction(1, 0, r1); |
+ __ PrepareCallCFunction(1, 0, r2); |
+ __ mov(r1, 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); |
__ ldm(ia_w, sp, r0.bit() | r1.bit() | fp.bit() | lr.bit()); |
__ mov(pc, r0); |
} |