Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index be9af48d4bf57d610535423fcc00a9bc89227a89..a867f4a72c880e0211859ec7e8ac2996d64dc8d0 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -799,23 +799,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; |
- StackArgumentsAccessor args(rbp, info->scope()->num_parameters()); |
- __ movp(rcx, args.GetReceiverOperand()); |
- __ CompareRoot(rcx, Heap::kUndefinedValueRootIndex); |
- __ j(not_equal, &ok, Label::kNear); |
- __ movp(rcx, GlobalObjectOperand()); |
- __ movp(rcx, FieldOperand(rcx, GlobalObject::kGlobalProxyOffset)); |
- __ movp(args.GetReceiverOperand(), rcx); |
- __ bind(&ok); |
- } |
- |
} else { |
__ StubPrologue(); |
frame()->SetRegisterSaveAreaSize( |