dart-sdk/tests/dartdevc
Nicholas Shahan 651350bc3b [ddc] Avoid emitting dead branches in conditionals
Don't emit dead code branches that are guarded by boolean literals.

Add a single level of simplification for !true -> false, and
!false -> true.

While this might not be very common in code, it does allow for a
useful pattern in the runtime libraries. Branches can be included
into the compiled code or not based on a compile time flag.

Change-Id: Ib90e1e951cea3ef8c75b944635776b292759594a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243363
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Anna Gringauze <annagrin@google.com>
2022-05-03 20:17:44 +00:00
..
cast_error [ddc] Add library URIs to cast failure messages 2021-04-09 22:24:43 +00:00
debugger [ddc] Unify pkg:js types and allow subtyping between them 2021-07-30 00:33:54 +00:00
assertion_failure_message_test.dart
basic_assignment_test.dart
const_test.dart [ddc] Migrate tests in dartdevc suite 2020-07-15 00:16:03 +00:00
developer_events_test.dart [vm] Expose whether extension stream has listeners, guard postEvent 2022-04-26 07:53:43 +00:00
hot_restart_expando_test.dart [ddc] Add a regression test for issue #45874 2021-05-11 22:14:28 +00:00
hot_restart_js_interop_test.dart [dartdevc] Resetting lazy js types on hot restart 2020-09-30 00:08:23 +00:00
hot_restart_late_test.dart [ddc] Reset static fields on first get or set 2022-02-11 01:18:01 +00:00
hot_restart_static_test.dart [ddc] Adding support for static setters of const fields 2022-04-01 23:51:15 +00:00
hot_restart_test.dart
hot_restart_timer_test.dart [ddc] Migrate tests in dartdevc suite 2020-07-15 00:16:03 +00:00
if_else_literal_compilation_test.dart [ddc] Avoid emitting dead branches in conditionals 2022-05-03 20:17:44 +00:00
js_interop_test.dart
libraries_part.dart
libraries_test.dart
no_such_method_errors_test.dart
runtime_utils.dart
runtime_utils_nnbd.dart
subtype_test.dart
subtype_weak_test.dart
type_normalization_test.dart
utils.dart
variance_subtype_test.dart [ddc] Fix variance test migration to null safety 2020-07-15 00:15:23 +00:00
variance_test.dart [ddc] Migrate tests in dartdevc suite 2020-07-15 00:16:03 +00:00
weak_null_safety_errors_test.dart [ddc] Add option to throw null safety violations 2020-11-16 22:58:50 +00:00