| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index ddb30ecee3464a00a1d26cc1cad43f1160277d3d..03fd248d0882bdac0af381dff936bdf68d52ae96 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -141,8 +141,8 @@
|
| // 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 (is_sloppy(info_->language_mode()) && info()->MayUseThis() &&
|
| + !info_->is_native()) {
|
| Label ok;
|
| // +1 for return address.
|
| int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize;
|
| @@ -275,9 +275,8 @@
|
|
|
| // Copy parameters into context if necessary.
|
| 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()) {
|
| int parameter_offset = StandardFrameConstants::kCallerSPOffset +
|
| (num_parameters - 1 - i) * kPointerSize;
|
|
|