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

Side by Side Diff: tests/compiler/dart2js/backend_dart/opt_redundant_phi_test.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 'sexpr_unstringifier.dart'; 5 import 'sexpr_unstringifier.dart';
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import 'package:compiler/implementation/cps_ir/cps_ir_nodes.dart'; 7 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart';
8 import 'package:compiler/implementation/cps_ir/cps_ir_nodes_sexpr.dart'; 8 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart';
9 import 'package:compiler/implementation/cps_ir/optimizers.dart'; 9 import 'package:compiler/src/cps_ir/optimizers.dart';
10 10
11 // The 'read in loop' IR tests the most basic case of redundant phi removal 11 // The 'read in loop' IR tests the most basic case of redundant phi removal
12 // and represents the following source code: 12 // and represents the following source code:
13 // 13 //
14 // void main() { 14 // void main() {
15 // int j = 42; 15 // int j = 42;
16 // for (int i = 0; i < 2; i++) { 16 // for (int i = 0; i < 2; i++) {
17 // print(j.toString()); 17 // print(j.toString());
18 // } 18 // }
19 // } 19 // }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 void main() { 251 void main() {
252 testRedundantPhi(READ_IN_LOOP_IN, READ_IN_LOOP_OUT); 252 testRedundantPhi(READ_IN_LOOP_IN, READ_IN_LOOP_OUT);
253 testRedundantPhi(INNER_LOOP_IN, INNER_LOOP_OUT); 253 testRedundantPhi(INNER_LOOP_IN, INNER_LOOP_OUT);
254 testRedundantPhi(BASIC_LOOP_IN, BASIC_LOOP_OUT); 254 testRedundantPhi(BASIC_LOOP_IN, BASIC_LOOP_OUT);
255 testRedundantPhi(SCOPING_IN, SCOPING_OUT); 255 testRedundantPhi(SCOPING_IN, SCOPING_OUT);
256 testRedundantPhi(NEVER_INVOKED1_IN, NEVER_INVOKED1_OUT); 256 testRedundantPhi(NEVER_INVOKED1_IN, NEVER_INVOKED1_OUT);
257 testRedundantPhi(NEVER_INVOKED2_IN, NEVER_INVOKED2_OUT); 257 testRedundantPhi(NEVER_INVOKED2_IN, NEVER_INVOKED2_OUT);
258 testRedundantPhi(AS_ARG_IN, AS_ARG_OUT); 258 testRedundantPhi(AS_ARG_IN, AS_ARG_OUT);
259 } 259 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698