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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart

Issue 1203423003: dart2js cps: Better fallthrough analysis and eliminate "return null". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update tests Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_literals_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
index 486bcc76989bff977a7c6f41bcccfe5137cf19d1..577dca099a59ecef9a46a86d13a94879ad66f025 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
@@ -18,7 +18,6 @@ main() {
"""function() {
V.foo();
P.print("bad bad");
- return null;
}"""),
const TestEntry("""
foo() => null;
@@ -28,7 +27,6 @@ main() {
"""function() {
V.foo();
P.print("bad bad");
- return null;
}"""),
const TestEntry("""
get foo => foo;
@@ -38,7 +36,6 @@ main() {
"""function() {
V.foo();
P.print("bad bad");
- return null;
}"""),
const TestEntry("""
get foo => foo;
@@ -46,7 +43,6 @@ main() { print(foo && foo); }""",
"""function() {
V.foo();
P.print(false);
- return null;
}"""),
const TestEntry("""
get foo => foo;
@@ -55,7 +51,6 @@ main() { print(foo || foo); }""",
V.foo();
V.foo();
P.print(false);
- return null;
}"""),
// Needs interceptor calling convention
@@ -84,7 +79,6 @@ function() {
var list = [1, 2, 3];
J.getInterceptor$a(list).$indexSet(list, 1, 6);
P.print(list);
- return null;
}"""),
];
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_literals_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698