Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index 2836113db2b0beb601cf573357b5877cff77bfad..3904a71947b850f1a69bb67865feab9dd7921c46 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -715,24 +715,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; |
- __ lw(a2, MemOperand(fp, receiver_slot * kPointerSize)); |
- __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
- __ Branch(&ok, ne, a2, Operand(at)); |
- |
- __ lw(a2, GlobalObjectOperand()); |
- __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset)); |
- __ sw(a2, MemOperand(fp, receiver_slot * kPointerSize)); |
- __ bind(&ok); |
- } |
} else { |
__ StubPrologue(); |
frame()->SetRegisterSaveAreaSize( |