Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index b8f3bd54228854508165a29a6240e6969e82abbf..295b8597d05a598b9a9a04975bc7334005a5179e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1428,7 +1428,7 @@ void JSObject::initialize_elements() { |
MaybeObject* JSObject::ResetElements() { |
Object* obj; |
- { MaybeObject* maybe_obj = map()->GetFastElementsMap(); |
+ { MaybeObject* maybe_obj = GetElementsTransitionMap(FAST_ELEMENTS); |
if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
} |
set_map(Map::cast(obj)); |
@@ -3242,45 +3242,6 @@ void Map::set_prototype(Object* value, WriteBarrierMode mode) { |
} |
-MaybeObject* Map::GetFastElementsMap() { |
- if (has_fast_elements()) return this; |
- Object* obj; |
- { MaybeObject* maybe_obj = CopyDropTransitions(); |
- if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
- } |
- Map* new_map = Map::cast(obj); |
- new_map->set_elements_kind(FAST_ELEMENTS); |
- isolate()->counters()->map_to_fast_elements()->Increment(); |
- return new_map; |
-} |
- |
- |
-MaybeObject* Map::GetFastDoubleElementsMap() { |
- if (has_fast_double_elements()) return this; |
- Object* obj; |
- { MaybeObject* maybe_obj = CopyDropTransitions(); |
- if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
- } |
- Map* new_map = Map::cast(obj); |
- new_map->set_elements_kind(FAST_DOUBLE_ELEMENTS); |
- isolate()->counters()->map_to_fast_double_elements()->Increment(); |
- return new_map; |
-} |
- |
- |
-MaybeObject* Map::GetSlowElementsMap() { |
- if (!has_fast_elements() && !has_fast_double_elements()) return this; |
- Object* obj; |
- { MaybeObject* maybe_obj = CopyDropTransitions(); |
- if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
- } |
- Map* new_map = Map::cast(obj); |
- new_map->set_elements_kind(DICTIONARY_ELEMENTS); |
- isolate()->counters()->map_to_slow_elements()->Increment(); |
- return new_map; |
-} |
- |
- |
DescriptorArray* Map::instance_descriptors() { |
Object* object = READ_FIELD(this, kInstanceDescriptorsOrBitField3Offset); |
if (object->IsSmi()) { |