Skip to content

VM/JIT/unoptimized: LocalVariable type_check_mode_ is imprecise #43654

Open
@askeksa-google

Description

@askeksa-google

The type_check_mode_ field of LocalVariable is initialized to kDoTypeCheck, which is a safe default. It keeps this conservative value in many cases where it could be given a more precise value. Only covariant parameters ever need to be checked, but the default often stays even for non-parameters.

A more precise value here could also enable a cleaner and perhaps more precise solution to #43464 than the one in https://dart-review.googlesource.com/c/sdk/+/164500.

Metadata

Metadata

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions