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

Side by Side Diff: tests/language/vm/if_conversion_vm_test.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 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
OLDNEW
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 // Test if-convertion pass in the optimizing compiler. 5 // Test if-conversion pass in the optimizing compiler.
6 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-co mpilation 6 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-co mpilation
7 7
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 9
10 f1(i) => (i == 0) ? 0 : 1; 10 f1(i) => (i == 0) ? 0 : 1;
11 f2(i) => (i == 0) ? 2 : 3; 11 f2(i) => (i == 0) ? 2 : 3;
12 f3(i) => (i == null) ? 0 : 1; 12 f3(i) => (i == null) ? 0 : 1;
13 f4(i) => (i == null) ? 2 : 3; 13 f4(i) => (i == null) ? 2 : 3;
14 14
15 f5(i) => (i != 0) ? 0 : 1; 15 f5(i) => (i != 0) ? 0 : 1;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 Expect.equals(0, f24(0)); 144 Expect.equals(0, f24(0));
145 Expect.equals(1, f24(-1)); 145 Expect.equals(1, f24(-1));
146 146
147 Expect.equals(0, f25(-1)); 147 Expect.equals(0, f25(-1));
148 Expect.equals(1, f25(0)); 148 Expect.equals(1, f25(0));
149 149
150 Expect.equals(0, f26(0)); 150 Expect.equals(0, f26(0));
151 Expect.equals(1, f26(1)); 151 Expect.equals(1, f26(1));
152 } 152 }
OLDNEW
« no previous file with comments | « tests/language/string_optimizations_test.dart ('k') | tests/language/vm/regress_29137_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698