Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index 5782529288f2c2d820958bebba804fe16980c91a..c83387286875bcdd816e29ea14c4f5eb82515311 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -669,7 +669,7 @@ |
// 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()) { |
+ !info_->is_native()) { |
Label ok; |
int receiver_offset = info_->scope()->num_parameters() * kXRegSize; |
__ Peek(x10, receiver_offset); |
@@ -728,9 +728,8 @@ |
__ Str(x0, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
// Copy any necessary parameters into the context. |
int num_parameters = scope()->num_parameters(); |
- int first_parameter = scope()->has_this_declaration() ? -1 : 0; |
- for (int i = first_parameter; i < num_parameters; i++) { |
- Variable* var = (i == -1) ? scope()->receiver() : scope()->parameter(i); |
+ for (int i = 0; i < num_parameters; i++) { |
+ Variable* var = scope()->parameter(i); |
if (var->IsContextSlot()) { |
Register value = x0; |
Register scratch = x3; |