dart-sdk/tests
Mayank Patke 397ed8673c [dart2js] Add phase 1 kernel transformer to simplify const conditionals.
Suppose we have code like

if (isDevMode) {
  // do foo
} else {
  // do bar
}

where isDevMode is const (or can be evaluated as const). In particular,
isDevMode can be controlled by compile-time options, like
bool.fromEnvironment.

We currently eliminate the dead branch during SSA, but that means we do
the work of compiling dead code in the previous phases. Instead, we can
recognize that the condition is const (or effectively const) and
eliminate the dead AST subtree directly.

Change-Id: Ia91da5ebc7fa496a1b963308c6e02d572cab936e
Bug: b/254543452
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/270281
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2023-02-07 20:07:57 +00:00
..
co19 [dart2wasm] Skip VM-specific co19 Finalizer tests 2023-01-31 10:28:36 +00:00
co19_2 Spelling tests 2023-01-19 16:24:29 +00:00
corelib Spelling pkg analyzer lib 2023-01-25 14:08:27 +00:00
corelib_2 Spelling pkg analyzer lib 2023-01-25 14:08:27 +00:00
dartdevc [ddc] Remove old dwds versions fallback support 2023-02-04 04:09:48 +00:00
dartdevc_2 [ddc] Remove old dwds versions fallback support 2023-02-04 04:09:48 +00:00
ffi [test/ffi] Skip self-invoking tests in appjit 2023-02-06 19:11:47 +00:00
ffi_2 Spelling tools 2023-01-09 15:48:57 +00:00
language Test legacy flow analysis behaviour of case null. 2023-02-07 17:10:10 +00:00
language_2 Spelling pkg dev compiler 2023-01-26 09:12:41 +00:00
lib [dart:_js_interop] Add support for statically resolvable inline class interop members 2023-02-07 18:47:23 +00:00
lib_2 Filter trusttypes_test from being run on CSP bot 2023-01-27 03:13:07 +00:00
modular [Reland][cfe] Support external constructor with final fields 2023-01-17 17:29:28 +00:00
standalone [test] Synchronize status entries for fragmentation_test. 2023-02-03 20:43:10 +00:00
standalone_2 [io] Fix a bug where large reads would return partial data. 2023-01-31 18:41:39 +00:00
web [dart2js] Add phase 1 kernel transformer to simplify const conditionals. 2023-02-07 20:07:57 +00:00
web_2 [dart2js] Add phase 1 kernel transformer to simplify const conditionals. 2023-02-07 20:07:57 +00:00
legacy_status_dart2js.csv Spelling tests 2022-12-19 12:56:47 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.