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

Side by Side Diff: tests/language/loop_exchange2_test.dart

Issue 10342002: Make sure that we don't assign phis before its uses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
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.
4
5 // This program tripped dart2js.
6 main() {
7 var a = 1;
8 var b = 2;
9 var c = 3;
10 var d = 4;
11 var e = 5;
12 for (int i = 0; i < 2; i++) {
13 if (i == 1) {
14 Expect.equals(4, e);
15 Expect.equals(3, d);
16 Expect.equals(8, c);
17 Expect.equals(1, b);
18 Expect.equals(32, a);
19 }
20 int f;
21 int k;
22 if (i < 20) {
23 f = b & c | ~b & d;
24 k = 0x5A827999;
25 } else if (i < 40) {
26 f = b ^ c ^ d;
27 k = 0x6ED9EBA1;
28 } else if (i < 60) {
29 f = b & c | b & d | c & d;
30 k = 0x8F1BBCDC;
31 } else {
32 f = b ^ c ^ d;
33 k = 0xCA62C1D6;
34 }
35
36 int temp = a << 5;
37 e = d;
38 d = c;
39 c = b << 2;
40 b = a;
41 a = temp;
42 }
43 }
44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698