| Index: runtime/vm/flow_graph_compiler_x64.cc
|
| diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
|
| index 5e176e5df1936242a55d5dc8ed85611f5a27c45c..4662afbb38c909847d7f07f9dd72afb79d922c7d 100644
|
| --- a/runtime/vm/flow_graph_compiler_x64.cc
|
| +++ b/runtime/vm/flow_graph_compiler_x64.cc
|
| @@ -509,7 +509,7 @@ RawSubtypeTestCache* FlowGraphCompiler::GenerateUninstantiatedTypeTest(
|
| __ Bind(&fall_through);
|
| return type_test_cache.raw();
|
| }
|
| - if (type.IsType()) {
|
| + if (type.IsType() || type.IsFunctionType()) {
|
| const Register kInstanceReg = RAX;
|
| const Register kTypeArgumentsReg = RDX;
|
| __ testq(kInstanceReg, Immediate(kSmiTagMask)); // Is instance Smi?
|
|
|