Index: src/lithium.cc |
diff --git a/src/lithium.cc b/src/lithium.cc |
index 0bebfaa96e9ae4d87339ab7a0fb6571acf190183..a9d7748ef3883c3677ce6aa3ec5f3b0832a0c72a 100644 |
--- a/src/lithium.cc |
+++ b/src/lithium.cc |
@@ -273,8 +273,8 @@ LChunk::LChunk(CompilationInfo* info, HGraph* graph) |
instructions_(32, info->zone()), |
pointer_maps_(8, info->zone()), |
inlined_functions_(1, info->zone()), |
- deprecation_dependencies_(MapLess(), MapAllocator(info->zone())), |
- stability_dependencies_(MapLess(), MapAllocator(info->zone())) {} |
+ deprecation_dependencies_(32, info->zone()), |
+ stability_dependencies_(8, info->zone()) {} |
LLabel* LChunk::GetLabel(int block_id) const { |
@@ -464,17 +464,13 @@ void LChunk::CommitDependencies(Handle<Code> code) const { |
if (!code->is_optimized_code()) return; |
HandleScope scope(isolate()); |
- for (MapSet::const_iterator it = deprecation_dependencies_.begin(), |
- iend = deprecation_dependencies_.end(); it != iend; ++it) { |
- Handle<Map> map = *it; |
+ for (Handle<Map> map : deprecation_dependencies_) { |
DCHECK(!map->is_deprecated()); |
DCHECK(map->CanBeDeprecated()); |
Map::AddDependentCode(map, DependentCode::kTransitionGroup, code); |
} |
- for (MapSet::const_iterator it = stability_dependencies_.begin(), |
- iend = stability_dependencies_.end(); it != iend; ++it) { |
- Handle<Map> map = *it; |
+ for (Handle<Map> map : stability_dependencies_) { |
DCHECK(map->is_stable()); |
DCHECK(map->CanTransition()); |
Map::AddDependentCode(map, DependentCode::kPrototypeCheckGroup, code); |