| Index: src/arm64/lithium-codegen-arm64.cc
|
| diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc
|
| index 7cb6cb64bdd3b80ebb31a1be1b380891d7dc7039..755c290f1e83e186d89c1aa7a3d5e5d0d367de29 100644
|
| --- a/src/arm64/lithium-codegen-arm64.cc
|
| +++ b/src/arm64/lithium-codegen-arm64.cc
|
| @@ -630,8 +630,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() * kXRegSize;
|
| __ Peek(x10, receiver_offset);
|
|
|