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

Side by Side Diff: pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart

Issue 2606253002: Move dart_types to elements/resolution_types (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Analysis to determine how to generate code for `LookupMap`s. 5 /// Analysis to determine how to generate code for `LookupMap`s.
6 library compiler.src.js_backend.lookup_map_analysis; 6 library compiler.src.js_backend.lookup_map_analysis;
7 7
8 import 'package:pub_semver/pub_semver.dart'; 8 import 'package:pub_semver/pub_semver.dart';
9 9
10 import '../common.dart'; 10 import '../common.dart';
11 import '../compiler.dart' show Compiler; 11 import '../compiler.dart' show Compiler;
12 import '../constants/values.dart' 12 import '../constants/values.dart'
13 show 13 show
14 ConstantValue, 14 ConstantValue,
15 ConstructedConstantValue, 15 ConstructedConstantValue,
16 ListConstantValue, 16 ListConstantValue,
17 NullConstantValue, 17 NullConstantValue,
18 StringConstantValue, 18 StringConstantValue,
19 TypeConstantValue; 19 TypeConstantValue;
20 import '../dart_types.dart' show DartType; 20 import '../elements/resolution_types.dart' show DartType;
21 import '../dart_types.dart' show InterfaceType; 21 import '../elements/resolution_types.dart' show InterfaceType;
22 import '../elements/elements.dart' 22 import '../elements/elements.dart'
23 show ClassElement, FieldElement, LibraryElement, VariableElement; 23 show ClassElement, FieldElement, LibraryElement, VariableElement;
24 import '../universe/use.dart' show StaticUse; 24 import '../universe/use.dart' show StaticUse;
25 import '../universe/world_impact.dart' 25 import '../universe/world_impact.dart'
26 show WorldImpact, StagedWorldImpactBuilder; 26 show WorldImpact, StagedWorldImpactBuilder;
27 import 'js_backend.dart' show JavaScriptBackend; 27 import 'js_backend.dart' show JavaScriptBackend;
28 28
29 /// An analysis and optimization to remove unused entries from a `LookupMap`. 29 /// An analysis and optimization to remove unused entries from a `LookupMap`.
30 /// 30 ///
31 /// `LookupMaps` are defined in `package:lookup_map/lookup_map.dart`. They are 31 /// `LookupMaps` are defined in `package:lookup_map/lookup_map.dart`. They are
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 original.fields[analysis.valueField] = keyValuePairs[1]; 446 original.fields[analysis.valueField] = keyValuePairs[1];
447 } 447 }
448 } else { 448 } else {
449 original.fields[analysis.entriesField] = 449 original.fields[analysis.entriesField] =
450 new ListConstantValue(listType, keyValuePairs); 450 new ListConstantValue(listType, keyValuePairs);
451 } 451 }
452 } 452 }
453 } 453 }
454 454
455 final _validLookupMapVersionConstraint = new VersionConstraint.parse('^0.0.1'); 455 final _validLookupMapVersionConstraint = new VersionConstraint.parse('^0.0.1');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/js_interop_analysis.dart ('k') | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698