dart-sdk/tests
Stephen Adams 8c13fa841e [dart2js] Kernel transformer expansion for List.generate
Simple calls to `List.generate` are expanded into a list allocation
and a loop. This generates better code for several reasons:

 - There is no overhead for the function argument (closure allocation,
   closure type, closure class)

 - Global type inference is more precise since each List.generate list
   is tracked separately, and the assignments in the loop give better
   inference to the collection's element type.

To get precise element type inference, there are two new JSArray
constructors. Global type inference starts with the element type being
bottom for these elements, avoiding spurious nulls in the inferred
type.

Change-Id: I5efb90651ae3f9eb2e81af556704960cdf0b75c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/168770
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-11-11 04:27:22 +00:00
..
co19 Skip VM tests that hang on Windows 2020-10-30 11:20:43 +00:00
co19_2 Skip VM tests that hang on Windows 2020-10-30 11:20:43 +00:00
corelib [tests] Split corelib{,_2}/list_concurrent_modify_test 2020-11-05 19:46:35 +00:00
corelib_2 [tests] Split corelib{,_2}/list_concurrent_modify_test 2020-11-05 19:46:35 +00:00
dart2js [dart2js] Kernel transformer expansion for List.generate 2020-11-11 04:27:22 +00:00
dart2js_2 Rename is{Strong,Weak}Mode to has{Sound,Unsound}NullSafety 2020-11-05 14:26:53 +00:00
dartdevc Fix ddc debugger_test 2020-11-02 23:31:30 +00:00
dartdevc_2 Fix ddc debugger_test 2020-11-02 23:31:30 +00:00
ffi [test/ffi] Add struct stack alignment test 2020-11-06 13:54:23 +00:00
ffi_2 [test/ffi] Add struct stack alignment test 2020-11-06 13:54:23 +00:00
language [VM/kernel] Remove obsolete workaround when reading dynamic bound from kernel. 2020-11-10 21:30:26 +00:00
language_2 [VM/kernel] Remove obsolete workaround when reading dynamic bound from kernel. 2020-11-10 21:30:26 +00:00
lib Rename is{Strong,Weak}Mode to has{Sound,Unsound}NullSafety 2020-11-05 14:26:53 +00:00
lib_2 [Tests] - Fix legacy tests that broke when non nullability was enabled by default 2020-11-04 20:58:57 +00:00
modular [cfe] Ensure that default values on synthesized constructor are included in outlines 2020-09-29 11:09:14 +00:00
standalone [vm, gc] Reserve some memory to use during handling of OutOfMemoryErrors. 2020-10-30 23:07:22 +00:00
standalone_2 [Tests] - Fix legacy tests that broke when non nullability was enabled by default 2020-11-04 20:58:57 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
README.md Update tests/README to point to new doc. 2019-08-06 22:19:42 +00:00

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