Index: runtime/vm/flow_graph_compiler_arm64.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc |
index 901d2057e9a8ffdc0db1181493535bc8f7f8f449..977010a2d22ea2d91d5f120c1ea230b311d6f74a 100644 |
--- a/runtime/vm/flow_graph_compiler_arm64.cc |
+++ b/runtime/vm/flow_graph_compiler_arm64.cc |
@@ -499,7 +499,7 @@ RawSubtypeTestCache* FlowGraphCompiler::GenerateUninstantiatedTypeTest( |
__ Bind(&fall_through); |
return type_test_cache.raw(); |
} |
- if (type.IsType()) { |
+ if (type.IsType() || type.IsFunctionType()) { |
const Register kInstanceReg = R0; |
const Register kTypeArgumentsReg = R1; |
__ tsti(kInstanceReg, Immediate(kSmiTagMask)); // Is instance Smi? |