Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 922c0548f670b44633e958b4df8502a375c7ebcf..0ea7ac0f70e91b7f5d95c5e47a58546b5e7d2aba 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1722,7 +1722,8 @@ bool DescriptorArray::IsProperty(int descriptor_number) { |
bool DescriptorArray::IsTransition(int descriptor_number) { |
PropertyType t = GetType(descriptor_number); |
- return t == MAP_TRANSITION || t == CONSTANT_TRANSITION; |
+ return t == MAP_TRANSITION || t == CONSTANT_TRANSITION || |
+ t == EXTERNAL_ARRAY_TRANSITION; |
} |
@@ -2871,21 +2872,6 @@ MaybeObject* Map::GetSlowElementsMap() { |
} |
-MaybeObject* Map::NewExternalArrayElementsMap() { |
- // TODO(danno): Special case empty object map (or most common case) |
- // to return a pre-canned pixel array map. |
- Object* obj; |
- { MaybeObject* maybe_obj = CopyDropTransitions(); |
- if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
- } |
- Map* new_map = Map::cast(obj); |
- new_map->set_has_fast_elements(false); |
- new_map->set_has_external_array_elements(true); |
- isolate()->counters()->map_to_external_array_elements()->Increment(); |
- return new_map; |
-} |
- |
- |
ACCESSORS(Map, instance_descriptors, DescriptorArray, |
kInstanceDescriptorsOffset) |
ACCESSORS(Map, code_cache, Object, kCodeCacheOffset) |