| Index: src/arm64/builtins-arm64.cc
|
| diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc
|
| index 760a10f3604adc82a4f6cfa6c10ae5bcac792921..75e5f88fef7fdcb29e5a5838d79db806cd42574a 100644
|
| --- a/src/arm64/builtins-arm64.cc
|
| +++ b/src/arm64/builtins-arm64.cc
|
| @@ -32,10 +32,7 @@ static void GenerateLoadInternalArrayFunction(MacroAssembler* masm,
|
| __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result);
|
| }
|
|
|
| -
|
| -void Builtins::Generate_Adaptor(MacroAssembler* masm,
|
| - CFunctionId id,
|
| - BuiltinExtraArguments extra_args) {
|
| +void Builtins::Generate_Adaptor(MacroAssembler* masm, CFunctionId id) {
|
| // ----------- S t a t e -------------
|
| // -- x0 : number of arguments excluding receiver
|
| // -- x1 : target
|
| @@ -54,23 +51,8 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm,
|
| __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset));
|
|
|
| // Insert extra arguments.
|
| - int num_extra_args = 0;
|
| - switch (extra_args) {
|
| - case BuiltinExtraArguments::kTarget:
|
| - __ Push(x1);
|
| - ++num_extra_args;
|
| - break;
|
| - case BuiltinExtraArguments::kNewTarget:
|
| - __ Push(x3);
|
| - ++num_extra_args;
|
| - break;
|
| - case BuiltinExtraArguments::kTargetAndNewTarget:
|
| - __ Push(x1, x3);
|
| - num_extra_args += 2;
|
| - break;
|
| - case BuiltinExtraArguments::kNone:
|
| - break;
|
| - }
|
| + const int num_extra_args = 2;
|
| + __ Push(x1, x3);
|
|
|
| // JumpToExternalReference expects x0 to contain the number of arguments
|
| // including the receiver and the extra arguments.
|
|
|