| Index: src/compiler/ia32/code-generator-ia32.cc
|
| diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc
|
| index dda469639d9fc25ad7c396509a20a75da3f79a02..e226aafb908b5f9f32166e794afffa524267db1a 100644
|
| --- a/src/compiler/ia32/code-generator-ia32.cc
|
| +++ b/src/compiler/ia32/code-generator-ia32.cc
|
| @@ -818,24 +818,6 @@ void CodeGenerator::AssemblePrologue() {
|
| __ Prologue(info->IsCodePreAgingActive());
|
| frame->SetRegisterSaveAreaSize(
|
| StandardFrameConstants::kFixedFrameSizeFromFp);
|
| -
|
| - // Sloppy mode functions and builtins need to replace the receiver with the
|
| - // global proxy when called as functions (without an explicit receiver
|
| - // object).
|
| - // TODO(mstarzinger/verwaest): Should this be moved back into the CallIC?
|
| - if (info->strict_mode() == SLOPPY && !info->is_native()) {
|
| - Label ok;
|
| - // +2 for return address and saved frame pointer.
|
| - int receiver_slot = info->scope()->num_parameters() + 2;
|
| - __ mov(ecx, Operand(ebp, receiver_slot * kPointerSize));
|
| - __ cmp(ecx, isolate()->factory()->undefined_value());
|
| - __ j(not_equal, &ok, Label::kNear);
|
| - __ mov(ecx, GlobalObjectOperand());
|
| - __ mov(ecx, FieldOperand(ecx, GlobalObject::kGlobalProxyOffset));
|
| - __ mov(Operand(ebp, receiver_slot * kPointerSize), ecx);
|
| - __ bind(&ok);
|
| - }
|
| -
|
| } else {
|
| __ StubPrologue();
|
| frame->SetRegisterSaveAreaSize(
|
|
|