Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: sdk/lib/_internal/compiler/implementation/util/expensive_map.dart

Issue 26662006: Changed LinkedHashSet to Set and LinkedHashMap to Map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: HashMap -> Map. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/util/expensive_map.dart
diff --git a/sdk/lib/_internal/compiler/implementation/util/expensive_map.dart b/sdk/lib/_internal/compiler/implementation/util/expensive_map.dart
index b904821c1f7b71a9c75e9de604bd7bbde1e27b7f..d9c76599fa32c61a4a9b985a8ed23cd3eb22314e 100644
--- a/sdk/lib/_internal/compiler/implementation/util/expensive_map.dart
+++ b/sdk/lib/_internal/compiler/implementation/util/expensive_map.dart
@@ -9,14 +9,14 @@ part of dart2js.util;
* excessive memory usage due to large maps. It acts as an ordinary
* hash map, but it uses 10 times more memory (by default).
*/
-class ExpensiveMap<K, V> implements LinkedHashMap<K, V> {
+class ExpensiveMap<K, V> implements Map<K, V> {
final List _maps;
ExpensiveMap([int copies = 10]) : _maps = new List(copies) {
assert(copies > 0);
for (int i = 0; i < _maps.length; i++) {
- _maps[i] = new LinkedHashMap<K, V>();
+ _maps[i] = new Map<K, V>();
}
}

Powered by Google App Engine
This is Rietveld 408576698