| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index 8cd06868c0c3fdd215b87d76ec184bad3307c209..f6fffea5fcf5b28cc4d92ccc6a8f065ff4b57a22 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -1229,7 +1229,9 @@ Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup,
|
| return compiler.CompileLoadCallback(lookup->name(),
|
| call_optimization);
|
| }
|
| - return compiler.CompileLoadViaGetter(lookup->name(), function);
|
| + int expected_arguments = function->shared()->formal_parameter_count();
|
| + return compiler.CompileLoadViaGetter(
|
| + lookup->name(), lookup->GetAccessorIndex(), expected_arguments);
|
| }
|
| break;
|
| }
|
|
|