| Index: src/ia32/lithium-codegen-ia32.cc
 | 
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
 | 
| index 54624e7b19513bbdf57ddeca4e8b36987ae3fa91..c3df35729ed7a070440971a23afa2688e7495c7d 100644
 | 
| --- a/src/ia32/lithium-codegen-ia32.cc
 | 
| +++ b/src/ia32/lithium-codegen-ia32.cc
 | 
| @@ -182,9 +182,6 @@ bool LCodeGen::GeneratePrologue() {
 | 
|          info_->is_classic_mode() &&
 | 
|          !info_->is_native()) {
 | 
|        Label ok;
 | 
| -      __ test(ecx, ecx);
 | 
| -      __ j(zero, &ok, Label::kNear);
 | 
| -
 | 
|        // +1 for return address.
 | 
|        int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize;
 | 
|        __ mov(ecx, Operand(esp, receiver_offset));
 | 
| @@ -3726,8 +3723,7 @@ void LCodeGen::DoApplyArguments(LApplyArguments* instr) {
 | 
|    SafepointGenerator safepoint_generator(
 | 
|        this, pointers, Safepoint::kLazyDeopt);
 | 
|    ParameterCount actual(eax);
 | 
| -  __ InvokeFunction(function, actual, CALL_FUNCTION,
 | 
| -                    safepoint_generator, CALL_AS_FUNCTION);
 | 
| +  __ InvokeFunction(function, actual, CALL_FUNCTION, safepoint_generator);
 | 
|  }
 | 
|  
 | 
|  
 | 
| @@ -3800,7 +3796,6 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
 | 
|                                   int formal_parameter_count,
 | 
|                                   int arity,
 | 
|                                   LInstruction* instr,
 | 
| -                                 CallKind call_kind,
 | 
|                                   EDIState edi_state) {
 | 
|    bool dont_adapt_arguments =
 | 
|        formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
 | 
| @@ -3822,7 +3817,6 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
 | 
|      }
 | 
|  
 | 
|      // Invoke function directly.
 | 
| -    __ SetCallKind(ecx, call_kind);
 | 
|      if (function.is_identical_to(info()->closure())) {
 | 
|        __ CallSelf();
 | 
|      } else {
 | 
| @@ -3836,8 +3830,7 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
 | 
|          this, pointers, Safepoint::kLazyDeopt);
 | 
|      ParameterCount count(arity);
 | 
|      ParameterCount expected(formal_parameter_count);
 | 
| -    __ InvokeFunction(
 | 
| -        function, expected, count, CALL_FUNCTION, generator, call_kind);
 | 
| +    __ InvokeFunction(function, expected, count, CALL_FUNCTION, generator);
 | 
|    }
 | 
|  }
 | 
|  
 | 
| @@ -3848,7 +3841,6 @@ void LCodeGen::DoCallConstantFunction(LCallConstantFunction* instr) {
 | 
|                      instr->hydrogen()->formal_parameter_count(),
 | 
|                      instr->arity(),
 | 
|                      instr,
 | 
| -                    CALL_AS_FUNCTION,
 | 
|                      EDI_UNINITIALIZED);
 | 
|  }
 | 
|  
 | 
| @@ -4209,13 +4201,12 @@ void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) {
 | 
|      SafepointGenerator generator(
 | 
|          this, pointers, Safepoint::kLazyDeopt);
 | 
|      ParameterCount count(instr->arity());
 | 
| -    __ InvokeFunction(edi, count, CALL_FUNCTION, generator, CALL_AS_FUNCTION);
 | 
| +    __ InvokeFunction(edi, count, CALL_FUNCTION, generator);
 | 
|    } else {
 | 
|      CallKnownFunction(known_function,
 | 
|                        instr->hydrogen()->formal_parameter_count(),
 | 
|                        instr->arity(),
 | 
|                        instr,
 | 
| -                      CALL_AS_FUNCTION,
 | 
|                        EDI_CONTAINS_TARGET);
 | 
|    }
 | 
|  }
 | 
| @@ -4279,7 +4270,6 @@ void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) {
 | 
|                      instr->hydrogen()->formal_parameter_count(),
 | 
|                      instr->arity(),
 | 
|                      instr,
 | 
| -                    CALL_AS_FUNCTION,
 | 
|                      EDI_UNINITIALIZED);
 | 
|  }
 | 
|  
 | 
| 
 |