| OLD | NEW |
| 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' hide ClosureScope; | 7 import '../closure.dart' hide ClosureScope; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../common/names.dart' show | 9 import '../common/names.dart' show |
| 10 Names, | 10 Names, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 import '../tree/tree.dart' as ast; | 27 import '../tree/tree.dart' as ast; |
| 28 import '../types/types.dart' show | 28 import '../types/types.dart' show |
| 29 TypeMask; | 29 TypeMask; |
| 30 import '../universe/call_structure.dart' show | 30 import '../universe/call_structure.dart' show |
| 31 CallStructure; | 31 CallStructure; |
| 32 import '../universe/selector.dart' show | 32 import '../universe/selector.dart' show |
| 33 Selector, | 33 Selector, |
| 34 SelectorKind; | 34 SelectorKind; |
| 35 | 35 |
| 36 import 'cps_ir_builder_task.dart' show | 36 import 'cps_ir_builder_task.dart' show |
| 37 DartCapturedVariables, | |
| 38 GlobalProgramInformation; | 37 GlobalProgramInformation; |
| 39 import 'cps_ir_nodes.dart' as ir; | 38 import 'cps_ir_nodes.dart' as ir; |
| 40 | 39 |
| 41 | 40 |
| 42 /// A mapping from variable elements to their compile-time values. | 41 /// A mapping from variable elements to their compile-time values. |
| 43 /// | 42 /// |
| 44 /// Map elements denoted by parameters and local variables to the | 43 /// Map elements denoted by parameters and local variables to the |
| 45 /// [ir.Primitive] that is their value. Parameters and locals are | 44 /// [ir.Primitive] that is their value. Parameters and locals are |
| 46 /// assigned indexes which can be used to refer to them. | 45 /// assigned indexes which can be used to refer to them. |
| 47 class Environment { | 46 class Environment { |
| (...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2886 } | 2885 } |
| 2887 | 2886 |
| 2888 class SwitchCaseInfo { | 2887 class SwitchCaseInfo { |
| 2889 final List<ir.Primitive> constants = <ir.Primitive>[]; | 2888 final List<ir.Primitive> constants = <ir.Primitive>[]; |
| 2890 final SubbuildFunction buildBody; | 2889 final SubbuildFunction buildBody; |
| 2891 | 2890 |
| 2892 SwitchCaseInfo(this.buildBody); | 2891 SwitchCaseInfo(this.buildBody); |
| 2893 | 2892 |
| 2894 void addConstant(ir.Primitive constant) => constants.add(constant); | 2893 void addConstant(ir.Primitive constant) => constants.add(constant); |
| 2895 } | 2894 } |
| OLD | NEW |