| Index: src/ic.cc
|
| diff --git a/src/ic.cc b/src/ic.cc
|
| index 09444b337aba82437c5c4b80ea8b37fd7ad0ab7c..332d3069ffc58f5c4df2ac6f79e7bbb8f45615da 100644
|
| --- a/src/ic.cc
|
| +++ b/src/ic.cc
|
| @@ -1031,9 +1031,7 @@ Handle<Code> LoadIC::CompileHandler(LookupResult* lookup,
|
| return compiler.CompileLoadViaGetter(type, holder, name, function);
|
| }
|
| // TODO(dcarney): Handle correctly.
|
| - if (callback->IsDeclaredAccessorInfo()) break;
|
| - ASSERT(callback->IsForeign());
|
| - // No IC support for old-style native accessors.
|
| + ASSERT(callback->IsDeclaredAccessorInfo());
|
| break;
|
| }
|
| case INTERCEPTOR:
|
| @@ -1456,20 +1454,7 @@ Handle<Code> StoreIC::CompileHandler(LookupResult* lookup,
|
| receiver, holder, name, Handle<JSFunction>::cast(setter));
|
| }
|
| // TODO(dcarney): Handle correctly.
|
| - if (callback->IsDeclaredAccessorInfo()) break;
|
| - ASSERT(callback->IsForeign());
|
| -
|
| - // Use specialized code for setting the length of arrays with fast
|
| - // properties. Slow properties might indicate redefinition of the length
|
| - // property.
|
| - if (receiver->IsJSArray() &&
|
| - String::Equals(isolate()->factory()->length_string(), name) &&
|
| - Handle<JSArray>::cast(receiver)->AllowsSetElementsLength() &&
|
| - receiver->HasFastProperties()) {
|
| - return compiler.CompileStoreArrayLength(receiver, lookup, name);
|
| - }
|
| -
|
| - // No IC support for old-style native accessors.
|
| + ASSERT(callback->IsDeclaredAccessorInfo());
|
| break;
|
| }
|
| case INTERCEPTOR:
|
|
|