Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index c51be67d3e45aef94e99f9913e87cbfb62d1dd3a..549bbee5c554e704f1211f97388c0e7bc1d154bd 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -605,16 +605,9 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
// x0: number of arguments |
// x1: constructor function |
// x3: new target |
- if (is_api_function) { |
- __ Ldr(cp, FieldMemOperand(constructor, JSFunction::kContextOffset)); |
- Handle<Code> code = |
- masm->isolate()->builtins()->HandleApiCallConstruct(); |
- __ Call(code, RelocInfo::CODE_TARGET); |
- } else { |
- ParameterCount actual(argc); |
- __ InvokeFunction(constructor, new_target, actual, CALL_FUNCTION, |
- CheckDebugStepCallWrapper()); |
- } |
+ ParameterCount actual(argc); |
+ __ InvokeFunction(constructor, new_target, actual, CALL_FUNCTION, |
+ CheckDebugStepCallWrapper()); |
// Store offset of return address for deoptimizer. |
if (create_implicit_receiver && !is_api_function) { |