Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index f8667c4c707cd5bb4965e568abd71aed8843184d..78fbe60a8072fc1e06365c33c8a9d928bfa1dcc8 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -16,10 +16,7 @@ namespace internal { |
#define __ ACCESS_MASM(masm) |
- |
-void Builtins::Generate_Adaptor(MacroAssembler* masm, |
- CFunctionId id, |
- BuiltinExtraArguments extra_args) { |
+void Builtins::Generate_Adaptor(MacroAssembler* masm, CFunctionId id) { |
// ----------- S t a t e ------------- |
// -- r0 : number of arguments excluding receiver |
// -- r1 : target |
@@ -38,23 +35,8 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm, |
__ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); |
// Insert extra arguments. |
- int num_extra_args = 0; |
- switch (extra_args) { |
- case BuiltinExtraArguments::kTarget: |
- __ Push(r1); |
- ++num_extra_args; |
- break; |
- case BuiltinExtraArguments::kNewTarget: |
- __ Push(r3); |
- ++num_extra_args; |
- break; |
- case BuiltinExtraArguments::kTargetAndNewTarget: |
- __ Push(r1, r3); |
- num_extra_args += 2; |
- break; |
- case BuiltinExtraArguments::kNone: |
- break; |
- } |
+ const int num_extra_args = 2; |
+ __ Push(r1, r3); |
// JumpToExternalReference expects r0 to contain the number of arguments |
// including the receiver and the extra arguments. |