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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart

Issue 111423003: Add a new node in the inferrer to materialize literal maps. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/inferrer/inferrer_visitor.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart (revision 30992)
+++ sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart (working copy)
@@ -42,11 +42,13 @@
bool isNull(T type);
Selector newTypedSelector(T receiver, Selector selector);
- T allocateContainer(T type,
- Node node,
- Element enclosing,
- [T elementType, int length]);
+ T allocateList(T type,
+ Node node,
+ Element enclosing,
+ [T elementType, int length]);
+ T allocateMap(T keyType, T valueType, T type);
+
/**
* Returns the least upper bound between [firstType] and
* [secondType].

Powered by Google App Engine
This is Rietveld 408576698