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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library dart2js.ir_builder; 5 library dart2js.ir_builder;
6 6
7 import '../closure.dart' as closure; 7 import '../closure.dart' as closure;
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/names.dart' show Names, Selectors; 9 import '../common/names.dart' show Selectors;
10 import '../compile_time_constants.dart' show BackendConstantEnvironment; 10 import '../compile_time_constants.dart' show BackendConstantEnvironment;
11 import '../constants/constant_system.dart'; 11 import '../constants/constant_system.dart';
12 import '../constants/values.dart' show ConstantValue, PrimitiveConstantValue; 12 import '../constants/values.dart' show ConstantValue;
13 import '../dart_types.dart'; 13 import '../dart_types.dart';
14 import '../elements/elements.dart'; 14 import '../elements/elements.dart';
15 import '../io/source_information.dart'; 15 import '../io/source_information.dart';
16 import '../js/js.dart' as js 16 import '../js/js.dart' as js
17 show 17 show
18 js, 18 js,
19 objectLiteral, 19 objectLiteral,
20 Expression, 20 Expression,
21 LiteralStatement, 21 LiteralStatement,
22 Template, 22 Template,
23 InterpolatedExpression, 23 InterpolatedExpression,
24 isIdentityTemplate; 24 isIdentityTemplate;
25 import '../native/native.dart' show NativeBehavior; 25 import '../native/native.dart' show NativeBehavior;
26 import '../tree/tree.dart' as ast; 26 import '../tree/tree.dart' as ast;
27 import '../types/types.dart' show TypeMask; 27 import '../types/types.dart' show TypeMask;
28 import '../universe/call_structure.dart' show CallStructure; 28 import '../universe/call_structure.dart' show CallStructure;
29 import '../universe/selector.dart' show Selector, SelectorKind; 29 import '../universe/selector.dart' show Selector, SelectorKind;
30
31 import 'cps_ir_builder_task.dart' show GlobalProgramInformation; 30 import 'cps_ir_builder_task.dart' show GlobalProgramInformation;
32 import 'cps_ir_nodes.dart' as ir; 31 import 'cps_ir_nodes.dart' as ir;
33 32
34 /// A mapping from variable elements to their compile-time values. 33 /// A mapping from variable elements to their compile-time values.
35 /// 34 ///
36 /// Map elements denoted by parameters and local variables to the 35 /// Map elements denoted by parameters and local variables to the
37 /// [ir.Primitive] that is their value. Parameters and locals are 36 /// [ir.Primitive] that is their value. Parameters and locals are
38 /// assigned indexes which can be used to refer to them. 37 /// assigned indexes which can be used to refer to them.
39 class Environment { 38 class Environment {
40 /// A map from locals to their environment index. 39 /// A map from locals to their environment index.
(...skipping 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after
2911 this.sourceInformation}); 2910 this.sourceInformation});
2912 } 2911 }
2913 2912
2914 class SwitchCaseInfo { 2913 class SwitchCaseInfo {
2915 final SubbuildFunction buildCondition; 2914 final SubbuildFunction buildCondition;
2916 final SubbuildFunction buildBody; 2915 final SubbuildFunction buildBody;
2917 final SourceInformation sourceInformation; 2916 final SourceInformation sourceInformation;
2918 2917
2919 SwitchCaseInfo(this.buildCondition, this.buildBody, this.sourceInformation); 2918 SwitchCaseInfo(this.buildCondition, this.buildBody, this.sourceInformation);
2920 } 2919 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/constants/values.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698