Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index 28120d3293ffe9a643f9dd39695aebfcd49baec3..4d71d81f8ea4e1f7eee64689682ea18a484af503 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -107,26 +107,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)); |