| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 35ff38d6d5456785c0ae653507707d44dc055679..bf8fdbed891ddf87449abf8a8a6e08bb3edc34e0 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -141,8 +141,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);
|
|
|