Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 6aa8bb1886aab13df67d8a263c85b792cac1dbd5..2034d4bc52d0d8efb7465579fc3291db1c311c55 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -17,10 +17,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 ------------- |
// -- a0 : number of arguments excluding receiver |
// -- a1 : target |
@@ -39,23 +36,8 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm, |
__ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |
// Insert extra arguments. |
- int num_extra_args = 0; |
- switch (extra_args) { |
- case BuiltinExtraArguments::kTarget: |
- __ Push(a1); |
- ++num_extra_args; |
- break; |
- case BuiltinExtraArguments::kNewTarget: |
- __ Push(a3); |
- ++num_extra_args; |
- break; |
- case BuiltinExtraArguments::kTargetAndNewTarget: |
- __ Push(a1, a3); |
- num_extra_args += 2; |
- break; |
- case BuiltinExtraArguments::kNone: |
- break; |
- } |
+ const int num_extra_args = 2; |
+ __ Push(a1, a3); |
// JumpToExternalReference expects a0 to contain the number of arguments |
// including the receiver and the extra arguments. |