| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index 7b44bc0d34d51cf8db2719fdfb7c201a9a2a76a1..edee2a14bd89ac48f166ad06a3e22e57cd405778 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.cc
|
| @@ -369,9 +369,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
|
| Handle<Code> code =
|
| masm->isolate()->builtins()->HandleApiCallConstruct();
|
| - ParameterCount expected(0);
|
| - __ InvokeCode(code, expected, expected, RelocInfo::CODE_TARGET,
|
| - CALL_FUNCTION, NullCallWrapper(), CALL_AS_METHOD);
|
| + __ SetCallKind(ecx, CALL_AS_METHOD);
|
| + __ call(code, RelocInfo::CODE_TARGET);
|
| } else {
|
| ParameterCount actual(eax);
|
| __ InvokeFunction(edi, actual, CALL_FUNCTION,
|
| @@ -1229,13 +1228,14 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
|
| // -- eax : actual number of arguments
|
| // -- ebx : expected number of arguments
|
| // -- ecx : call kind information
|
| - // -- edx : code entry to call
|
| + // -- edi : function (passed through to callee)
|
| // -----------------------------------
|
|
|
| Label invoke, dont_adapt_arguments;
|
| __ IncrementCounter(masm->isolate()->counters()->arguments_adaptors(), 1);
|
|
|
| Label enough, too_few;
|
| + __ mov(edx, FieldOperand(edi, JSFunction::kCodeEntryOffset));
|
| __ cmp(eax, ebx);
|
| __ j(less, &too_few);
|
| __ cmp(ebx, SharedFunctionInfo::kDontAdaptArgumentsSentinel);
|
|
|