Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index d37e19287628e0ccf82f66de4adb19af410d5ec3..f38c5e1ea3920dbe1c7a080349683cf67fc453ff 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -116,8 +116,7 @@ bool LCodeGen::GeneratePrologue() { |
// Sloppy mode functions and builtins need to replace the receiver with the |
// global proxy when called as functions (without an explicit receiver |
// object). |
- if (is_sloppy(info()->language_mode()) && info()->MayUseThis() && |
- !info()->is_native() && info()->scope()->has_this_declaration()) { |
+ if (info()->MustReplaceUndefinedReceiverWithGlobalProxy()) { |
Label ok; |
int receiver_offset = info_->scope()->num_parameters() * kPointerSize; |
__ LoadRoot(at, Heap::kUndefinedValueRootIndex); |