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

Unified Diff: pkg/compiler/lib/src/cache_strategy.dart

Issue 693183006: Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cache_strategy.dart
diff --git a/pkg/compiler/lib/src/cache_strategy.dart b/pkg/compiler/lib/src/cache_strategy.dart
deleted file mode 100644
index 2a0a8f022bb78e1ec5595a5f95ca6dc67e20b3c8..0000000000000000000000000000000000000000
--- a/pkg/compiler/lib/src/cache_strategy.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'dart:collection' show
- HashMap,
- HashSet;
-
-/**
- * Helper class for allocating sets and maps appropriate for caching objects
- * that can be assumed to be canonicalized.
- *
- * When compiling dart2js to JavaScript, profiling reveals that identity maps
- * and sets have superior performance. However, we know that [Object.hashCode]
- * is slow on the Dart VM. This class is meant to encapsulate the decision
- * about which data structure is best, and we anticipate specific subclasses
- * for JavaScript and Dart VM in the future.
- */
-class CacheStrategy {
- final bool hasIncrementalSupport;
-
- CacheStrategy(this.hasIncrementalSupport);
-
- Map newMap() => hasIncrementalSupport ? new HashMap.identity() : null;
-
- Set newSet() => hasIncrementalSupport ? new HashSet.identity() : null;
-}
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698