| 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 '../common/names.dart' show | 7 import '../common/names.dart' show |
| 8 Names, | 8 Names, |
| 9 Selectors; | 9 Selectors; |
| 10 import '../compile_time_constants.dart' show | 10 import '../compile_time_constants.dart' show |
| 11 BackendConstantEnvironment; | 11 BackendConstantEnvironment; |
| 12 import '../constants/constant_system.dart'; | 12 import '../constants/constant_system.dart'; |
| 13 import '../constants/values.dart' show | 13 import '../constants/values.dart' show |
| 14 ConstantValue, | 14 ConstantValue, |
| 15 PrimitiveConstantValue; | 15 PrimitiveConstantValue; |
| 16 import '../dart_types.dart'; | 16 import '../dart_types.dart'; |
| 17 import '../diagnostics/invariant.dart' show | 17 import '../diagnostics/invariant.dart' show |
| 18 invariant; | 18 invariant; |
| 19 import '../elements/elements.dart'; | 19 import '../elements/elements.dart'; |
| 20 import '../io/source_information.dart'; | 20 import '../io/source_information.dart'; |
| 21 import '../tree/tree.dart' as ast; | 21 import '../tree/tree.dart' as ast; |
| 22 import '../types/types.dart' show | 22 import '../types/types.dart' show |
| 23 TypeMask; | 23 TypeMask; |
| 24 import '../closure.dart' hide ClosureScope; | 24 import '../closure.dart' hide ClosureScope; |
| 25 import '../universe/universe.dart' show | 25 import '../universe/call_structure.dart' show |
| 26 CallStructure, | 26 CallStructure; |
| 27 import '../universe/selector.dart' show |
| 27 Selector, | 28 Selector, |
| 28 SelectorKind; | 29 SelectorKind; |
| 29 import 'cps_ir_nodes.dart' as ir; | 30 import 'cps_ir_nodes.dart' as ir; |
| 30 import 'cps_ir_builder_task.dart' show | 31 import 'cps_ir_builder_task.dart' show |
| 31 DartCapturedVariables, | 32 DartCapturedVariables, |
| 32 GlobalProgramInformation; | 33 GlobalProgramInformation; |
| 33 | 34 |
| 34 import '../common.dart' as types show | 35 import '../common.dart' as types show |
| 35 TypeMask; | 36 TypeMask; |
| 36 import '../js/js.dart' as js show Template, js, LiteralStatement; | 37 import '../js/js.dart' as js show Template, js, LiteralStatement; |
| (...skipping 2842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2879 } | 2880 } |
| 2880 | 2881 |
| 2881 class SwitchCaseInfo { | 2882 class SwitchCaseInfo { |
| 2882 final List<ir.Primitive> constants = <ir.Primitive>[]; | 2883 final List<ir.Primitive> constants = <ir.Primitive>[]; |
| 2883 final SubbuildFunction buildBody; | 2884 final SubbuildFunction buildBody; |
| 2884 | 2885 |
| 2885 SwitchCaseInfo(this.buildBody); | 2886 SwitchCaseInfo(this.buildBody); |
| 2886 | 2887 |
| 2887 void addConstant(ir.Primitive constant) => constants.add(constant); | 2888 void addConstant(ir.Primitive constant) => constants.add(constant); |
| 2888 } | 2889 } |
| OLD | NEW |