dart-sdk/tests
Gabriel Terwesten e2d6cb69fb Reland "[vm/compiler] Optimize switch statements"
This is a reland of commit f5228127f8

Original change's description:
> [vm/compiler] Optimize switch statements
>
> Switch statements that either contain only integers or only enum values of the same type can be optimized.
>
> Depending on the number of switch expressions and the number of holes that the range of switch expressions contains, either a binary search or a jump table is used.
>
> TEST=runtime/test/vm/dart{,_2}/optimized_switch
> TEST=tests/language{,_2}/switch
>
> Fixes: https://github.com/dart-lang/sdk/issues/49585
>
> Co-authored-by: Gabriel Terwesten gabriel@terwesten.net
>
> Change-Id: I62dcdb7843107f03de7e468c60b4db52ec78f676
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253787
> Reviewed-by: Alexander Markov <alexmarkov@google.com>
> Commit-Queue: Alexander Markov <alexmarkov@google.com>

TEST=runtime/test/vm/dart{,_2}/optimized_switch
TEST=tests/language{,_2}/switch

Change-Id: Ie96e5ff41dce33e2425ba9ad15ecd931d09bec6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255700
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-08-22 15:09:17 +00:00
..
co19 [co19] Enable fixed tests in the co19 .status file 2022-08-11 13:22:52 +00:00
co19_2 [infra] Add missing parenthesis in co19 update scripts 2022-07-25 14:14:59 +00:00
corelib [ddc] Ensure status file entries are consistent 2022-08-08 17:23:50 +00:00
corelib_2 Fixed various typos in a lot of files 2022-07-25 12:21:59 +00:00
dartdevc Revert "Refactor _Future." 2022-06-09 16:51:55 +00:00
dartdevc_2 [ddc] Ensure status file entries are consistent 2022-08-08 17:23:50 +00:00
ffi [vm/ffi] NativeFieldWrapper FfiNative check receivers for nullptr 2022-08-11 17:39:57 +00:00
ffi_2 Fixed various typos in a lot of files 2022-07-25 12:21:59 +00:00
language Reland "[vm/compiler] Optimize switch statements" 2022-08-22 15:09:17 +00:00
language_2 Reland "[vm/compiler] Optimize switch statements" 2022-08-22 15:09:17 +00:00
lib Add Isolate.run. 2022-08-18 10:42:55 +00:00
lib_2 Add Isolate.run. 2022-08-18 10:42:55 +00:00
modular [package:js] Add static interop stub for outlines 2022-06-17 19:58:49 +00:00
standalone Fixed various typos in a lot of files 2022-07-25 12:21:59 +00:00
standalone_2 Fixed various typos in a lot of files 2022-07-25 12:21:59 +00:00
web [dart2wasm] Implement the three-pronged WasmGC type hierarchy. 2022-08-19 07:11:18 +00:00
web_2 [dart2js] Handle private names correctly in K/J-model 2022-08-11 06:56:32 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +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.