dart-sdk/tests
Alexander Markov 5129cff930 [vm/aot] Discard Code objects from the heap
While deserializing AOT snapshot, Code objects which do not contain
valuable information besides entry point and stack maps are discarded
and not allocated on the heap (they are replaced with
StubCode::UnknownDartCode()).

PC -> Code/CompressedStackMaps lookup is implemented using a separate
table (InstructionsTable).

Flutter gallery in release-sizeopt mode:
Heap size of snapshot objects: arm -26.89%, arm64 -27.68%

Large Flutter application in release mode with --dwarf-stack-traces:
Heap size of snapshot objects: -24.3%.
Discarded Code objects: 72.5% of all Code objects.

Issue: https://github.com/dart-lang/sdk/issues/44852.

TEST=existing tests; "--dwarf_stack_traces --no-retain_function_objects
--no-retain_code_objects" mode is enabled for a few tests.

Change-Id: I5fe3e283630c8e8f4442319d5dcae38d174dd0d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/189560
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2021-04-13 02:36:16 +00:00
..
co19 [co19] Skip in status files removed or replaced where it is possible 2021-04-12 13:26:49 +00:00
co19_2 [co19] Skip in status files removed or replaced where it is possible 2021-04-12 13:26:49 +00:00
corelib [vm/aot] Discard Code objects from the heap 2021-04-13 02:36:16 +00:00
corelib_2 [vm/aot] Discard Code objects from the heap 2021-04-13 02:36:16 +00:00
dartdevc [ddc] Add library URIs to cast failure messages 2021-04-09 22:24:43 +00:00
dartdevc_2 [ddc] Add library URIs to cast failure messages 2021-04-09 22:24:43 +00:00
ffi Revert "[vm/ffi] Disallow Pointers and structs in finalizers and expandos" 2021-04-12 16:30:57 +00:00
ffi_2 Revert "[vm/ffi] Disallow Pointers and structs in finalizers and expandos" 2021-04-12 16:30:57 +00:00
language [vm/aot] Discard Code objects from the heap 2021-04-13 02:36:16 +00:00
language_2 [vm/aot] Discard Code objects from the heap 2021-04-13 02:36:16 +00:00
lib [dart:html] Fix getContext3d nullability 2021-04-09 19:03:43 +00:00
lib_2 [dart:html] Fix getContext3d nullability 2021-04-09 19:03:43 +00:00
modular [ddc] Fix private class exposed by typedef 2021-04-05 18:54:56 +00:00
standalone [Runtime/Tests] - Do not output large amount of test data to stdout 2021-04-12 04:51:05 +00:00
standalone_2 [Runtime/Tests] - Do not output large amount of test data to stdout 2021-04-12 04:51:05 +00:00
web Reland "[dart2js] Add support for bundling fragments." 2021-04-08 17:46:50 +00:00
web_2 [dart2js] Fix variable allocator live-range bug 2021-03-23 15:38:36 +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.