OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import '../mock_compiler.dart'; | 6 import '../mock_compiler.dart'; |
7 import 'sexpr_unstringifier.dart'; | 7 import 'sexpr_unstringifier.dart'; |
8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
10 import 'package:compiler/implementation/cps_ir/cps_ir_nodes_sexpr.dart'; | 10 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart'; |
11 import 'package:compiler/implementation/cps_ir/optimizers.dart'; | 11 import 'package:compiler/src/cps_ir/optimizers.dart'; |
12 import 'package:compiler/implementation/dart2jslib.dart' as dart2js; | 12 import 'package:compiler/src/dart2jslib.dart' as dart2js; |
13 | 13 |
14 // The tests in this file that ensure that sparse constant propagation on the | 14 // The tests in this file that ensure that sparse constant propagation on the |
15 // CPS IR works as expected. | 15 // CPS IR works as expected. |
16 | 16 |
17 // CP1 represents the following incoming dart code: | 17 // CP1 represents the following incoming dart code: |
18 // | 18 // |
19 // int main() { | 19 // int main() { |
20 // int i = 1; | 20 // int i = 1; |
21 // int j; | 21 // int j; |
22 // if (i == 1) { | 22 // if (i == 1) { |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 asyncTest(() => testConstantPropagator(CP2_IN, CP2_OUT)); | 422 asyncTest(() => testConstantPropagator(CP2_IN, CP2_OUT)); |
423 asyncTest(() => testConstantPropagator(CP3_IN, CP3_OUT)); | 423 asyncTest(() => testConstantPropagator(CP3_IN, CP3_OUT)); |
424 asyncTest(() => testConstantPropagator(CP4_IN, CP4_OUT)); | 424 asyncTest(() => testConstantPropagator(CP4_IN, CP4_OUT)); |
425 asyncTest(() => testConstantPropagator(CP5_IN, CP5_OUT)); | 425 asyncTest(() => testConstantPropagator(CP5_IN, CP5_OUT)); |
426 asyncTest(() => testConstantPropagator(CP6_IN, CP6_OUT)); | 426 asyncTest(() => testConstantPropagator(CP6_IN, CP6_OUT)); |
427 asyncTest(() => testConstantPropagator(CP7_IN, CP7_OUT)); | 427 asyncTest(() => testConstantPropagator(CP7_IN, CP7_OUT)); |
428 asyncTest(() => testConstantPropagator(CP8_IN, CP8_OUT)); | 428 asyncTest(() => testConstantPropagator(CP8_IN, CP8_OUT)); |
429 asyncTest(() => testConstantPropagator(CP9_IN, CP9_OUT)); | 429 asyncTest(() => testConstantPropagator(CP9_IN, CP9_OUT)); |
430 asyncTest(() => testConstantPropagator(CP10_IN, CP10_OUT)); | 430 asyncTest(() => testConstantPropagator(CP10_IN, CP10_OUT)); |
431 } | 431 } |
OLD | NEW |