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

Unified Diff: pkg/compiler/lib/src/resolution/registry.dart

Issue 949733003: Share the JavaScript based LinkedHashMap implementation between constant maps and the LinkedHashMap… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: pkg/compiler/lib/src/resolution/registry.dart
diff --git a/pkg/compiler/lib/src/resolution/registry.dart b/pkg/compiler/lib/src/resolution/registry.dart
index 317efbb4074fcb4d2fa84f81ddea1ec65c7d47c6..15082856f66d10c8c35825f2870065cdcd6b0de0 100644
--- a/pkg/compiler/lib/src/resolution/registry.dart
+++ b/pkg/compiler/lib/src/resolution/registry.dart
@@ -262,6 +262,11 @@ class ResolutionRegistry extends Registry {
world.registerInstantiatedClass(compiler.typeClass, this);
}
+ void registerMapLiteral(Node node, DartType type, bool isConstant) {
+ setType(node, type);
+ backend.resolutionCallbacks.onMapLiteral(this, type, isConstant);
+ }
+
// TODO(johnniwinther): Remove the [ResolverVisitor] dependency. Its only
// needed to lookup types in the current scope.
void registerJsCall(Node node, ResolverVisitor visitor) {
@@ -314,10 +319,6 @@ class ResolutionRegistry extends Registry {
backend.resolutionCallbacks.onStringInterpolation(this);
}
- void registerConstantMap() {
- backend.resolutionCallbacks.onConstantMap(this);
- }
-
void registerFallThroughError() {
backend.resolutionCallbacks.onFallThroughError(this);
}

Powered by Google App Engine
This is Rietveld 408576698