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