Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index f48a7239e0f8085de3a5b39bddc204e11d2395a0..74b4bd96718fb1fbdc2c44cc4927540c64100749 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -802,23 +802,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; |
- __ Ldr(x10, MemOperand(fp, receiver_slot * kXRegSize)); |
- __ JumpIfNotRoot(x10, Heap::kUndefinedValueRootIndex, &ok); |
- __ Ldr(x10, GlobalObjectMemOperand()); |
- __ Ldr(x10, FieldMemOperand(x10, GlobalObject::kGlobalProxyOffset)); |
- __ Str(x10, MemOperand(fp, receiver_slot * kXRegSize)); |
- __ Bind(&ok); |
- } |
- |
} else { |
__ SetStackPointer(jssp); |
__ StubPrologue(); |