mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
DBC: Use type cache for more checks
Flutter layout benchmark ~10.5k us -> ~8.5k us for a total 1.76x improvement on the day =) R=fschneider@google.com Review URL: https://codereview.chromium.org/2410863004 .
This commit is contained in:
parent
bb85b32d51
commit
da388d21c6
|
@ -222,6 +222,9 @@ void FlowGraphCompiler::GenerateAssertAssignable(TokenPosition token_pos,
|
|||
SubtypeTestCache& test_cache = SubtypeTestCache::Handle();
|
||||
if (!dst_type.IsVoidType() && dst_type.IsInstantiated()) {
|
||||
test_cache = SubtypeTestCache::New();
|
||||
} else if (!dst_type.IsInstantiated() &&
|
||||
(dst_type.IsTypeParameter() || dst_type.IsType())) {
|
||||
test_cache = SubtypeTestCache::New();
|
||||
}
|
||||
|
||||
if (is_optimizing()) {
|
||||
|
|
Loading…
Reference in a new issue