dart-sdk/runtime
Alexander Markov b205ea18cb [vm] Fix compiler crash when returning a value of uninitialized late variable from async function
This change fixes CompileType::CanBeFuture() which previously attempted
to use Class objects by class id without first checking if cid is internal.

Cid can be internal (SentinelCid) when CompileType::CanBeFuture() is
called for a return value of an async function when it is returning
a value of an uninitialized late local variable (such Return
instruction is unreachable).

TEST=runtime/tests/vm/dart/regress_flutter117892_test.dart
Fixes https://github.com/flutter/flutter/issues/117892

Change-Id: I63f0ca32d6246487f5c33d983cef9bd22aaa2fb8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278094
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2023-01-04 15:26:34 +00:00
..
bin [vm/api] Make CObject as_string const char* instead of const 2023-01-04 12:51:03 +00:00
docs [vm] Runtime type check in await 2022-12-07 22:46:22 +00:00
include [vm/api] Make CObject as_string const char* instead of const 2023-01-04 12:51:03 +00:00
lib [vm/isolate] Avoid isolate scan when exiting known isolate. 2022-12-21 18:07:58 +00:00
observatory [3.0 alpha][VM/Service] Update VM Service spec to v4.0 2023-01-03 16:16:18 +00:00
observatory_2 [3.0 alpha][VM/Service] Update VM Service spec to v4.0 2023-01-03 16:16:18 +00:00
platform [vm, compiler] More consistently support large load/store offsets. 2022-12-14 22:17:35 +00:00
tests [vm] Fix compiler crash when returning a value of uninitialized late variable from async function 2023-01-04 15:26:34 +00:00
third_party [build] Switch builds to the ninja in DEPS 2022-09-27 11:24:03 +00:00
tools [3.0 alpha] Remove deprecated BidirectionalIterator. 2023-01-02 16:14:08 +00:00
vm [vm] Fix compiler crash when returning a value of uninitialized late variable from async function 2023-01-04 15:26:34 +00:00
.clang-tidy
.gitignore
BUILD.gn [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
codereview.settings
configs.gni [vm/ffi] FfiNative process lookup 2022-10-25 10:57:07 +00:00
CPPLINT.cfg
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
PRESUBMIT.py [python3] Migrate PRESUBMIT.py files 2021-08-16 08:29:54 +00:00
runtime_args.gni [VM] error: ‘mallinfo mallinfo()’ is deprecated 2021-12-08 00:25:10 +00:00