Index: runtime/vm/flow_graph_compiler_dbc.cc |
diff --git a/runtime/vm/flow_graph_compiler_dbc.cc b/runtime/vm/flow_graph_compiler_dbc.cc |
index 63da152dbbc2b28d10667187b4f6536a6337a81c..bd003eb9eb76037028f974d2b391536561250e16 100644 |
--- a/runtime/vm/flow_graph_compiler_dbc.cc |
+++ b/runtime/vm/flow_graph_compiler_dbc.cc |
@@ -405,9 +405,12 @@ void FlowGraphCompiler::EmitFrameEntry() { |
// Check for a passed type argument vector if the function is generic. |
if (FLAG_reify_generic_functions && function.IsGeneric()) { |
- __ Comment("Check passed-in type args"); |
- UNIMPLEMENTED(); // TODO(regis): Not yet supported. |
+ __ CheckFunctionTypeArgs(function.NumTypeParameters(), |
+ -parsed_function().first_stack_local_index() - 1); |
} |
+ |
+ // TODO(regis): Verify that no vector is passed if not generic, unless already |
+ // checked during resolution. |
} |
void FlowGraphCompiler::CompileGraph() { |