| Index: src/x87/builtins-x87.cc
|
| diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc
|
| index e24ea382ff2919d60d636d029eaca9f4a91f9681..7c8c784984d2411a87603c5fe1bb09f7984dd933 100644
|
| --- a/src/x87/builtins-x87.cc
|
| +++ b/src/x87/builtins-x87.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 -------------
|
| // -- eax : number of arguments excluding receiver
|
| // -- edi : target
|
| @@ -39,19 +36,11 @@ void Builtins::Generate_Adaptor(MacroAssembler* masm,
|
| __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
|
|
|
| // Insert extra arguments.
|
| - int num_extra_args = 0;
|
| - if (extra_args != BuiltinExtraArguments::kNone) {
|
| - __ PopReturnAddressTo(ecx);
|
| - if (extra_args & BuiltinExtraArguments::kTarget) {
|
| - ++num_extra_args;
|
| - __ Push(edi);
|
| - }
|
| - if (extra_args & BuiltinExtraArguments::kNewTarget) {
|
| - ++num_extra_args;
|
| - __ Push(edx);
|
| - }
|
| - __ PushReturnAddressFrom(ecx);
|
| - }
|
| + const int num_extra_args = 2;
|
| + __ PopReturnAddressTo(ecx);
|
| + __ Push(edi);
|
| + __ Push(edx);
|
| + __ PushReturnAddressFrom(ecx);
|
|
|
| // JumpToExternalReference expects eax to contain the number of arguments
|
| // including the receiver and the extra arguments.
|
|
|