| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index d6db304b13bbb47fee94e8c9d78c2cac4dc3dbbc..b949ea112cbdecdf0ecf5c4a0d054fc4170885bb 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 (auto 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());
|
|
|
|
|