| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 7a1967e0ccb71af533fd4c4843339aff2432dd30..34eebb9e376bc592c89bd558353ef35b77d47de1 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -4338,6 +4338,7 @@ Object* CallFunctionStub::GetCachedValue(Address address) {
|
|
|
|
|
| void CallFunctionStub::Generate(MacroAssembler* masm) {
|
| + // edi : the function to call
|
| Isolate* isolate = masm->isolate();
|
| Label slow, non_function;
|
|
|
| @@ -4359,10 +4360,6 @@ void CallFunctionStub::Generate(MacroAssembler* masm) {
|
| __ bind(&receiver_ok);
|
| }
|
|
|
| - // Get the function to call from the stack.
|
| - // +2 ~ receiver, return address
|
| - __ mov(edi, Operand(esp, (argc_ + 2) * kPointerSize));
|
| -
|
| // Check that the function really is a JavaScript function.
|
| __ JumpIfSmi(edi, &non_function);
|
| // Goto slow case if we do not have a function.
|
|
|