| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index e8b2dbf9c98796d02a0e768466c4ab643d68d3dd..5a25d26bba2176e4ced53b6eeafb5b86e81abe44 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -1237,7 +1237,8 @@ Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup,
|
| return compiler.CompileLoadCallback(lookup->name(), call_optimization,
|
| lookup->GetAccessorIndex());
|
| }
|
| - int expected_arguments = function->shared()->formal_parameter_count();
|
| + int expected_arguments =
|
| + function->shared()->internal_formal_parameter_count();
|
| return compiler.CompileLoadViaGetter(
|
| lookup->name(), lookup->GetAccessorIndex(), expected_arguments);
|
| }
|
| @@ -1743,7 +1744,8 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup,
|
| call_optimization,
|
| lookup->GetAccessorIndex());
|
| }
|
| - int expected_arguments = function->shared()->formal_parameter_count();
|
| + int expected_arguments =
|
| + function->shared()->internal_formal_parameter_count();
|
| return compiler.CompileStoreViaSetter(receiver, lookup->name(),
|
| lookup->GetAccessorIndex(),
|
| expected_arguments);
|
|
|