mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:58:29 +00:00
c19720245c
This avoids virtual calls for `runtimeType` (unless the user overrides it) and `_runtimeType` (since the internal categorization is now done using the table instead), which saves a huge amount of space in the global dispatch table. It also fixes record runtime types, which now use the masqueraded types for its fields, rather than the (possibly user-overridden) `runtimeType`. A masquerade case was missing for `Type`, which has been added. Fixes https://github.com/dart-lang/sdk/issues/51134 Tested: ci + new test for overridden runtimeType Change-Id: I1909c665ae78eb07b9c0eb22b6e8836e27495d70 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/285684 Reviewed-by: Ömer Ağacan <omersa@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Aske Simon Christensen <askesc@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
.gitignore | ||
api_readme.md | ||
BUILD.gn | ||
OWNERS |