dart-sdk/tests
Alexander Markov 707cd928af [vm/ffi] Fix representation of value for 8-bit and 16-bit FFI loads and stores
Previously, FFI store could use kUnboxedUint32 for value being stored
via 8-bit or 16-bit StoreIndexed instruction. However, such
StoreIndexed instructions require kUnboxedIntPtr representation.
Due to the mismatch in the representations, SelectRepresentations
pass inserts a speculative (deoptimizing) IntConverter instruction,
which cases crash in AOT mode. Similar problem exists for FFI loads.

This change corrects representation when unboxing value in the body
of FFI store intrinsics and when boxing the value in FFI loads,
so representation of the value matches representation required by
StoreIndexed / returned by LoadIndexed.

TEST=ffi/regress_flutter79441_test
Fixes https://github.com/flutter/flutter/issues/79441

Change-Id: Ida144e8d2e7a69d6767c9d4447bb20e79d847d48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193824
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2021-04-06 21:11:23 +00:00
..
co19 [co19] remove skips is a status files motivated by language issue 115 2021-03-30 16:37:41 +00:00
co19_2 [co19] Obsolete entries removed from co19_2-kernel.status file according to co19 issue #1041 2021-03-31 04:14:42 +00:00
corelib Add efficient entries and keys.contains to SplayTreeMap. 2021-03-22 13:20:13 +00:00
corelib_2 Add efficient entries and keys.contains to SplayTreeMap. 2021-03-22 13:20:13 +00:00
dartdevc First version of incremental DDC mode for expression compilation 2021-03-09 17:23:05 +00:00
dartdevc_2 [cfe] Allow experiments only in current sdk version 2021-03-31 15:20:08 +00:00
ffi [vm/ffi] Fix representation of value for 8-bit and 16-bit FFI loads and stores 2021-04-06 21:11:23 +00:00
ffi_2 [vm/ffi] Fix representation of value for 8-bit and 16-bit FFI loads and stores 2021-04-06 21:11:23 +00:00
language [cfe] Const factories when const functions enabled. 2021-04-06 19:46:32 +00:00
language_2 Make language tests for issue #45551 2021-04-06 13:01:47 +00:00
lib [pkg:js] Filter promise_reject_null_test from CSP 2021-03-25 22:00:19 +00:00
lib_2 [pkg:js] Filter promise_reject_null_test from CSP 2021-03-25 22:00:19 +00:00
modular [ddc] Fix private class exposed by typedef 2021-04-05 18:54:56 +00:00
standalone [io/lookup] Ensure public type InternetAddress is used in lookup methods. 2021-03-31 19:43:42 +00:00
standalone_2 [io/lookup] Ensure public type InternetAddress is used in lookup methods. 2021-03-31 19:43:42 +00:00
web [dart2js] Remove unused 'classesOnlyNeededForRti' field. 2021-03-31 17:30:29 +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

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