Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 8235868ea51c984b18e3c0b994fe4f37aaab82ae..130311e7e18e0fbcdc63e492addff218b2cde72c 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2149,6 +2149,9 @@ void CallConstructStub::Generate(MacroAssembler* masm) { |
__ AssertUndefinedOrAllocationSite(ebx); |
} |
+ // Pass original constructor to construct stub. |
+ __ mov(edx, edi); |
+ |
// Jump to the function-specific construct stub. |
Register jmp_reg = ecx; |
__ mov(jmp_reg, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); |