| Index: pkg/compiler/lib/src/js_emitter/metadata_collector.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/metadata_collector.dart b/pkg/compiler/lib/src/js_emitter/metadata_collector.dart
|
| index 8ba3d0ad9d5815693980eefdbdf68f1c87d54d9b..c6ca97da159814207c9228b6c3177beb97ee0b1f 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/metadata_collector.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/metadata_collector.dart
|
| @@ -167,8 +167,8 @@ class MetadataCollector implements jsAst.TokenFinalizer {
|
| }
|
|
|
| /// A map used to canonicalize the entries of types.
|
| - Map<OutputUnit, Map<ResolutionDartType, _BoundMetadataEntry>> _typesMap =
|
| - <OutputUnit, Map<ResolutionDartType, _BoundMetadataEntry>>{};
|
| + Map<OutputUnit, Map<DartType, _BoundMetadataEntry>> _typesMap =
|
| + <OutputUnit, Map<DartType, _BoundMetadataEntry>>{};
|
|
|
| MetadataCollector(
|
| this._options,
|
| @@ -333,8 +333,7 @@ class MetadataCollector implements jsAst.TokenFinalizer {
|
| ignoreTypeVariables: ignoreTypeVariables);
|
| }
|
|
|
| - jsAst.Expression reifyTypeForOutputUnit(
|
| - ResolutionDartType type, OutputUnit outputUnit,
|
| + jsAst.Expression reifyTypeForOutputUnit(DartType type, OutputUnit outputUnit,
|
| {ignoreTypeVariables: false}) {
|
| return addTypeInOutputUnit(type, outputUnit,
|
| ignoreTypeVariables: ignoreTypeVariables);
|
| @@ -361,7 +360,7 @@ class MetadataCollector implements jsAst.TokenFinalizer {
|
| });
|
| }
|
|
|
| - jsAst.Expression _computeTypeRepresentation(ResolutionDartType type,
|
| + jsAst.Expression _computeTypeRepresentation(DartType type,
|
| {ignoreTypeVariables: false}) {
|
| jsAst.Expression representation =
|
| _rtiEncoder.getTypeRepresentation(_emitter, type, (variable) {
|
| @@ -381,12 +380,10 @@ class MetadataCollector implements jsAst.TokenFinalizer {
|
| return representation;
|
| }
|
|
|
| - jsAst.Expression addTypeInOutputUnit(
|
| - ResolutionDartType type, OutputUnit outputUnit,
|
| + jsAst.Expression addTypeInOutputUnit(DartType type, OutputUnit outputUnit,
|
| {ignoreTypeVariables: false}) {
|
| if (_typesMap[outputUnit] == null) {
|
| - _typesMap[outputUnit] =
|
| - new Map<ResolutionDartType, _BoundMetadataEntry>();
|
| + _typesMap[outputUnit] = new Map<DartType, _BoundMetadataEntry>();
|
| }
|
| return _typesMap[outputUnit].putIfAbsent(type, () {
|
| return new _BoundMetadataEntry(_computeTypeRepresentation(type,
|
|
|