Index: src/mips64/builtins-mips64.cc |
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc |
index da2376b10cc2e3fa516d907a8102a3df2740c638..c22771aa4220d5ae0e5c0e6250ca915aede55c03 100644 |
--- a/src/mips64/builtins-mips64.cc |
+++ b/src/mips64/builtins-mips64.cc |
@@ -592,16 +592,9 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
// a0: number of arguments |
// a1: constructor function |
// a3: new target |
- if (is_api_function) { |
- __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |
- Handle<Code> code = |
- masm->isolate()->builtins()->HandleApiCallConstruct(); |
- __ Call(code, RelocInfo::CODE_TARGET); |
- } else { |
- ParameterCount actual(a0); |
- __ InvokeFunction(a1, a3, actual, CALL_FUNCTION, |
- CheckDebugStepCallWrapper()); |
- } |
+ ParameterCount actual(a0); |
+ __ InvokeFunction(a1, a3, actual, CALL_FUNCTION, |
+ CheckDebugStepCallWrapper()); |
// Store offset of return address for deoptimizer. |
if (create_implicit_receiver && !is_api_function) { |