| Index: src/arm64/lithium-codegen-arm64.cc
|
| diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc
|
| index 3f7644962907b33b4a1f341b146e9cad3398e932..75978892b1a730e7befc683446c1bdd5c69892ac 100644
|
| --- a/src/arm64/lithium-codegen-arm64.cc
|
| +++ b/src/arm64/lithium-codegen-arm64.cc
|
| @@ -664,7 +664,7 @@ bool LCodeGen::GeneratePrologue() {
|
| // global proxy when called as functions (without an explicit receiver
|
| // object).
|
| if (info_->this_has_uses() && is_sloppy(info_->language_mode()) &&
|
| - !info_->is_native()) {
|
| + !info_->is_native() && info_->scope()->has_this_declaration()) {
|
| Label ok;
|
| int receiver_offset = info_->scope()->num_parameters() * kXRegSize;
|
| __ Peek(x10, receiver_offset);
|
|
|