| Index: src/ic.cc
|
| ===================================================================
|
| --- src/ic.cc (revision 3973)
|
| +++ src/ic.cc (working copy)
|
| @@ -1043,20 +1043,6 @@
|
| return *value;
|
| }
|
|
|
| -
|
| - // Use specialized code for setting the length of arrays.
|
| - if (receiver->IsJSArray()
|
| - && name->Equals(Heap::length_symbol())
|
| - && receiver->AllowsSetElementsLength()) {
|
| -#ifdef DEBUG
|
| - if (FLAG_trace_ic) PrintF("[StoreIC : +#length /array]\n");
|
| -#endif
|
| - Code* target = Builtins::builtin(Builtins::StoreIC_ArrayLength);
|
| - set_target(target);
|
| - StubCache::Set(*name, HeapObject::cast(*object)->map(), target);
|
| - return receiver->SetProperty(*name, *value, NONE);
|
| - }
|
| -
|
| // Lookup the property locally in the receiver.
|
| if (FLAG_use_ic && !receiver->IsJSGlobalProxy()) {
|
| LookupResult lookup;
|
| @@ -1349,17 +1335,6 @@
|
| }
|
|
|
|
|
| -Object* StoreIC_ArrayLength(Arguments args) {
|
| - NoHandleAllocation nha;
|
| -
|
| - ASSERT(args.length() == 2);
|
| - JSObject* receiver = JSObject::cast(args[0]);
|
| - Object* len = args[1];
|
| -
|
| - return receiver->SetElementsLength(len);
|
| -}
|
| -
|
| -
|
| // Extend storage is called in a store inline cache when
|
| // it is necessary to extend the properties array of a
|
| // JSObject.
|
|
|