Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b0ad2219b674ccf9e737a414aaaa933eb0910852..d09ee34dbaeb43bcb90e1bb16feda8c671256493 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4834,16 +4834,15 @@ int AccessorInfo::AppendUnique(Handle<Object> descriptors, |
valid_descriptors); |
} |
- |
-static bool ContainsMap(MapHandleList* maps, Map* map) { |
+static bool ContainsMap(MapHandles const& maps, Map* map) { |
DCHECK_NOT_NULL(map); |
- for (int i = 0; i < maps->length(); ++i) { |
- if (!maps->at(i).is_null() && *maps->at(i) == map) return true; |
+ for (Handle<Map> current : maps) { |
+ if (!current.is_null() && *current == map) return true; |
} |
return false; |
} |
-Map* Map::FindElementsKindTransitionedMap(MapHandleList* candidates) { |
+Map* Map::FindElementsKindTransitionedMap(MapHandles const& candidates) { |
DisallowHeapAllocation no_allocation; |
DisallowDeoptimization no_deoptimization(GetIsolate()); |