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

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

Issue 1367353003: dart2js cps_ir: Seed type_propagation with constant bools from inference. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: value mask can be nullable Created 5 years, 3 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 | « pkg/compiler/lib/src/cps_ir/type_propagation.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_control_flow_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
index cc37c089a8f62beb93079f0887623d7abba189f1..d3340b4cd07e709f0f9af94a49a1a1dd0960b49d 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
@@ -68,6 +68,7 @@ const TestEntry("""
foo(a) { print(a); return a; }
main() {
+ foo(false);
if (foo(true)) {
print(1);
} else {
@@ -76,6 +77,7 @@ main() {
print(3);
}""", """
function() {
+ V.foo(false);
V.foo(true) ? P.print(1) : P.print(2);
P.print(3);
}"""),
@@ -83,6 +85,7 @@ const TestEntry("""
foo(a) { print(a); return a; }
main() {
+ foo(false);
if (foo(true)) {
print(1);
print(1);
@@ -93,6 +96,7 @@ main() {
print(3);
}""", """
function() {
+ V.foo(false);
if (V.foo(true)) {
P.print(1);
P.print(1);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698