| Index: src/mips64/lithium-codegen-mips64.cc
|
| diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc
|
| index 58ea58ca907807fc71f450f4157be7f0cfd5c8a3..ed0e5f501ba4702e47365ed38cad3ccba2a084c3 100644
|
| --- a/src/mips64/lithium-codegen-mips64.cc
|
| +++ b/src/mips64/lithium-codegen-mips64.cc
|
| @@ -118,7 +118,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 (graph()->this_has_uses() && is_sloppy(info_->language_mode()) &&
|
| + if (is_sloppy(info_->language_mode()) && info()->MayUseThis() &&
|
| !info_->is_native()) {
|
| Label ok;
|
| int receiver_offset = info_->scope()->num_parameters() * kPointerSize;
|
|
|