Index: src/crankshaft/mips/lithium-codegen-mips.cc |
diff --git a/src/crankshaft/mips/lithium-codegen-mips.cc b/src/crankshaft/mips/lithium-codegen-mips.cc |
index efba8764efb1c0feb934a945b8273dff9e64e2df..3dba922f10a48c49864b0eb39ba8f448df6c26a7 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.cc |
+++ b/src/crankshaft/mips/lithium-codegen-mips.cc |
@@ -138,24 +138,6 @@ bool LCodeGen::GeneratePrologue() { |
// cp: Callee's context. |
// fp: Caller's frame pointer. |
// lr: Caller's pc. |
- |
- // 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; |
- int receiver_offset = info_->scope()->num_parameters() * kPointerSize; |
- __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
- __ lw(a2, MemOperand(sp, receiver_offset)); |
- __ Branch(&ok, ne, a2, Operand(at)); |
- |
- __ lw(a2, GlobalObjectOperand()); |
- __ lw(a2, FieldMemOperand(a2, JSGlobalObject::kGlobalProxyOffset)); |
- |
- __ sw(a2, MemOperand(sp, receiver_offset)); |
- |
- __ bind(&ok); |
- } |
} |
info()->set_prologue_offset(masm_->pc_offset()); |