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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_closures_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
Index: tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
index e58e4748e2282bacd44d9125a4401c5dc64fbffe..97b53e7460f02aa1a8713190a62d35763909d8eb 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
@@ -24,7 +24,6 @@ function(x) {
_box_0._captured_x_0 = x;
_box_0._captured_x_0 = J.getInterceptor$ns(x = _box_0._captured_x_0).$add(x, "1");
P.print(a.call$0());
- return null;
}"""),
const TestEntry("""
@@ -38,7 +37,6 @@ main(x) {
r"""
function(x) {
P.print(new V.main_a(x).call$0());
- return null;
}"""),
const TestEntry("""
@@ -55,7 +53,6 @@ function() {
_box_0._captured_x_0 = 122;
_box_0._captured_x_0 = _box_0._captured_x_0 + 1;
P.print(a.call$0());
- return null;
}"""),
const TestEntry("""
@@ -75,7 +72,6 @@ function() {
_box_0._captured_x_0 = 122;
_box_0._captured_x_0 = _box_0._captured_x_0 + 1;
P.print(a.call$0().call$0());
- return null;
}"""),
const TestEntry("""
@@ -95,7 +91,6 @@ function() {
i = i + 1;
}
P.print(a.call$0());
- return null;
}"""),
const TestEntry.forMethod('function(A#b)', """

Powered by Google App Engine
This is Rietveld 408576698