Files
sdk/runtime/vm
Gabriel Terwesten 73b7d0c40a Reland "Reland "[vm/compiler] Optimize switch statements""
This is a reland of commit e2d6cb69fb

Original change's description:
> 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>

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

Change-Id: I56f8d25a88bb856115550c5da3f02c80c7547802
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256180
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2022-08-23 22:11:50 +00:00
..
2022-07-20 18:08:27 +00:00
2021-07-13 01:55:45 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-07-29 18:11:01 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-03-25 10:29:30 +00:00
2022-06-10 15:48:54 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-07-12 19:35:22 +00:00
2021-07-09 13:48:25 +00:00
2021-11-16 16:23:36 +00:00
2022-01-21 21:24:20 +00:00
2022-01-21 21:24:20 +00:00
2022-07-06 12:48:16 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-05-24 09:10:51 +00:00
2022-08-22 05:44:57 +00:00
2022-03-25 10:29:30 +00:00
2022-03-25 10:29:30 +00:00
2022-03-26 09:41:21 +00:00
2022-01-20 00:57:57 +00:00
2020-05-04 21:15:27 +00:00
2022-07-12 19:35:22 +00:00
2022-01-20 00:57:57 +00:00
2022-06-15 11:08:28 +00:00
2022-07-20 18:08:27 +00:00
2022-01-20 00:57:57 +00:00
2022-07-29 18:11:01 +00:00
2022-07-29 18:11:01 +00:00
2022-07-29 18:11:01 +00:00
2022-04-25 23:12:53 +00:00
2022-01-20 00:57:57 +00:00
2020-05-04 21:15:27 +00:00
2020-08-06 19:55:12 +00:00
2022-07-29 18:11:01 +00:00
2021-10-14 00:10:12 +00:00