| Index: src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| index 21ca69ca79da2b46c864234d207be98ed69e9256..ded1282b0304d2ba9b29e4d2683deea3d849d331 100644
|
| --- a/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| @@ -138,26 +138,6 @@ bool LCodeGen::GeneratePrologue() {
|
| }
|
| #endif
|
|
|
| - // Sloppy mode functions and builtins need to replace the receiver with the
|
| - // global proxy when called as functions (without an explicit receiver
|
| - // object).
|
| - if (info()->MustReplaceUndefinedReceiverWithGlobalProxy()) {
|
| - Label ok;
|
| - // +1 for return address.
|
| - int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize;
|
| - __ mov(ecx, Operand(esp, receiver_offset));
|
| -
|
| - __ cmp(ecx, isolate()->factory()->undefined_value());
|
| - __ j(not_equal, &ok, Label::kNear);
|
| -
|
| - __ mov(ecx, GlobalObjectOperand());
|
| - __ mov(ecx, FieldOperand(ecx, JSGlobalObject::kGlobalProxyOffset));
|
| -
|
| - __ mov(Operand(esp, receiver_offset), ecx);
|
| -
|
| - __ bind(&ok);
|
| - }
|
| -
|
| if (support_aligned_spilled_doubles_ && dynamic_frame_alignment_) {
|
| // Move state of dynamic frame alignment into edx.
|
| __ Move(edx, Immediate(kNoAlignmentPadding));
|
|
|