Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index f19941d65ee70e7b25868b96828beb49217a3fdf..f6b9f5a6bd73e32d0391157c7e814c9d34e2e3da 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2562,6 +2562,9 @@ void CallConstructStub::Generate(MacroAssembler* masm) { |
__ AssertUndefinedOrAllocationSite(r2, r5); |
} |
+ // Pass function as original constructor. |
+ __ mov(r3, r1); |
+ |
// Jump to the function-specific construct stub. |
Register jmp_reg = r4; |
__ ldr(jmp_reg, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); |