| Index: src/arm64/lithium-codegen-arm64.cc
|
| diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc
|
| index a249ca423b6ac7578a8eea13e8d63065c97752b8..78e296b79576885ecea75ce475b64ba83029e078 100644
|
| --- a/src/arm64/lithium-codegen-arm64.cc
|
| +++ b/src/arm64/lithium-codegen-arm64.cc
|
| @@ -668,7 +668,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() * kXRegSize;
|
|
|