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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 12528008: Implement CHA through type mask and TypedSelector in the simple type inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 19670)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -4110,11 +4110,9 @@
}
HLiteralList keyValuePairs = new HLiteralList(inputs);
add(keyValuePairs);
- DartType mapType = compiler.mapLiteralClass.computeType(compiler);
- // TODO(ngeoffray): Use the actual implementation type of a map
- // literal.
- pushInvokeHelper1(backend.getMapMaker(), keyValuePairs,
- new HType.nonNullSubtype(mapType, compiler));
+ HType mapType = new HType.nonNullSubtype(
+ backend.mapLiteralClass.computeType(compiler), compiler);
+ pushInvokeHelper1(backend.getMapMaker(), keyValuePairs, mapType);
}
visitLiteralMapEntry(LiteralMapEntry node) {

Powered by Google App Engine
This is Rietveld 408576698