| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 9a811a260f8a8b196d1a852a503b05db2778e1b8..86a8ce0b8b37e295f6ccd17975308d428ec69f17 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -107,7 +107,6 @@ class JumpPatchSite BASE_EMBEDDED {
|
| // formal parameter count expected by the function.
|
| //
|
| // The live registers are:
|
| -// o ecx: CallKind
|
| // o edi: the JS function object being called (i.e. ourselves)
|
| // o esi: our context
|
| // o ebp: our caller's frame pointer
|
| @@ -138,9 +137,6 @@ void FullCodeGenerator::Generate() {
|
| // object).
|
| if (info->is_classic_mode() && !info->is_native()) {
|
| Label ok;
|
| - __ test(ecx, ecx);
|
| - __ j(zero, &ok, Label::kNear);
|
| -
|
| // +1 for return address.
|
| int receiver_offset = (info->scope()->num_parameters() + 1) * kPointerSize;
|
| __ mov(ecx, Operand(esp, receiver_offset));
|
| @@ -3694,8 +3690,7 @@ void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) {
|
| // InvokeFunction requires the function in edi. Move it in there.
|
| __ mov(edi, result_register());
|
| ParameterCount count(arg_count);
|
| - __ InvokeFunction(edi, count, CALL_FUNCTION,
|
| - NullCallWrapper(), CALL_AS_FUNCTION);
|
| + __ InvokeFunction(edi, count, CALL_FUNCTION, NullCallWrapper());
|
| __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
|
| __ jmp(&done);
|
|
|
|
|