Index: src/s390/builtins-s390.cc |
diff --git a/src/s390/builtins-s390.cc b/src/s390/builtins-s390.cc |
index 42ad9782fa1193f7ee0c2f20beb1c5b24c360748..8e453271b4601b2a744796f701f07df8a51358f4 100644 |
--- a/src/s390/builtins-s390.cc |
+++ b/src/s390/builtins-s390.cc |
@@ -15,8 +15,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 ------------- |
// -- r2 : number of arguments excluding receiver |
// -- r3 : target |
@@ -35,24 +34,8 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm, CFunctionId id, |
__ LoadP(cp, FieldMemOperand(r3, JSFunction::kContextOffset)); |
// Insert extra arguments. |
- int num_extra_args = 0; |
- switch (extra_args) { |
- case BuiltinExtraArguments::kTarget: |
- __ Push(r3); |
- ++num_extra_args; |
- break; |
- case BuiltinExtraArguments::kNewTarget: |
- __ Push(r5); |
- ++num_extra_args; |
- break; |
- case BuiltinExtraArguments::kTargetAndNewTarget: |
- __ Push(r3, r5); |
- num_extra_args += 2; |
- break; |
- case BuiltinExtraArguments::kNone: |
- break; |
- } |
- |
+ const int num_extra_args = 2; |
+ __ Push(r3, r5); |
// JumpToExternalReference expects r2 to contain the number of arguments |
// including the receiver and the extra arguments. |
__ AddP(r2, r2, Operand(num_extra_args + 1)); |