mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
7310377823
So far we relied on our normal Dart tests to exercise and test TTS. This CL adds concrete TTS unit tests, which directly construct the values the TTS accepts via the calling convention (instance, dst_type, instantiator tav, function tav), and allows us to test * whether TTS handled the type test * whether TTS was falling back to STC which handled the type test * whether TTS (and STC) preserve the necessary registers This CL also gets rid of TMP usage in TTS related code. This CL also adds documentation about TTS to runtime/docs/compiler/type_testing_stubs.md. This CL also fixes two issues: * handle all-dynamic null vector `as Foo<..., T, ...>` * compare the actual type parameter value in `as Foo<..., T, ...>` (instead of using type_class_id>) There seem to be no major performance changes, some benchmarks change positive/negative but many of them seem to be bi-modal. Issue https://github.com/dart-lang/sdk/issues/40964 Issue https://github.com/dart-lang/sdk/issues/40736 Change-Id: Iad41e405fe693c67be6221a18e3dad03cc0a5f24 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139461 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Régis Crelier <regis@google.com> |
||
---|---|---|
.. | ||
compiler | ||
images | ||
infra | ||
aot_binary_size_analysis.md | ||
dwarf_stack_traces.md | ||
gc.md | ||
index.md | ||
pragmas.md | ||
snapshot_profiling.md |