| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 9ac35fd1cf743c6dffe136c245ef7e8cff82b710..a7795a6c37238d4c2662a9e80a2ab890342c2b70 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1142,20 +1142,6 @@
|
| return KeyAccumulator::GetKeys(object, KeyCollectionMode::kOwnOnly,
|
| ALL_PROPERTIES,
|
| GetKeysConversion::kConvertToString);
|
| -}
|
| -
|
| -bool JSObject::PrototypeHasNoElements(Isolate* isolate, JSObject* object) {
|
| - DisallowHeapAllocation no_gc;
|
| - HeapObject* prototype = HeapObject::cast(object->map()->prototype());
|
| - HeapObject* null = isolate->heap()->null_value();
|
| - HeapObject* empty = isolate->heap()->empty_fixed_array();
|
| - while (prototype != null) {
|
| - Map* map = prototype->map();
|
| - if (map->instance_type() <= LAST_CUSTOM_ELEMENTS_RECEIVER) return false;
|
| - if (JSObject::cast(prototype)->elements() != empty) return false;
|
| - prototype = HeapObject::cast(map->prototype());
|
| - }
|
| - return true;
|
| }
|
|
|
| #define FIELD_ADDR(p, offset) \
|
|
|