Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index b813552faba2ab7cbd54572f675e50e54f64f960..0b3bab0c8fd2e1580252368f56b98f57947e3861 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -332,7 +332,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
__ Call(code, RelocInfo::CODE_TARGET); |
} else { |
ParameterCount actual(rax); |
- __ InvokeFunction(rdi, rdx, actual, CALL_FUNCTION, NullCallWrapper()); |
+ __ InvokeFunction(rdi, rdx, actual, CALL_FUNCTION, |
+ CheckDebugStepCallWrapper()); |
} |
// Store offset of return address for deoptimizer. |
@@ -1735,10 +1736,11 @@ void Builtins::Generate_CallFunction(MacroAssembler* masm, |
__ LoadSharedFunctionInfoSpecialField( |
rbx, rdx, SharedFunctionInfo::kFormalParameterCountOffset); |
- __ movp(r8, FieldOperand(rdi, JSFunction::kCodeEntryOffset)); |
ParameterCount actual(rax); |
ParameterCount expected(rbx); |
- __ InvokeCode(r8, no_reg, expected, actual, JUMP_FUNCTION, NullCallWrapper()); |
+ |
+ __ InvokeFunctionCode(rdi, no_reg, expected, actual, JUMP_FUNCTION, |
+ CheckDebugStepCallWrapper()); |
// The function is a "classConstructor", need to raise an exception. |
__ bind(&class_constructor); |