Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VM] Ensure we use the most specific types for fields
The VM uses normally strong mode types for LoadField instructions. Though for certain fields we have known class-ids which we attach to the Field instructions. Before we had a case where the strong mode type was dynamic, but we had a very specific cid for the Field. Though when using the [CompileType] afterwards via [CompileType()->ToAbstractType()] it was returning `dynamic`. We should use CompileType::ComputeRefineType() to get the most specific one of those two. Issue #31798 Change-Id: Ib0b7a596449cba0bc53e118ee603b2039aa312b3 Reviewed-on: https://dart-review.googlesource.com/43422 Commit-Queue: Martin Kustermann <[email protected]> Reviewed-by: Vyacheslav Egorov <[email protected]>
- Loading branch information