Index: runtime/vm/flow_graph_compiler_x64.cc |
=================================================================== |
--- runtime/vm/flow_graph_compiler_x64.cc (revision 24876) |
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy) |
@@ -1126,8 +1126,7 @@ |
const bool check_arguments = !flow_graph().IsCompiledForOsr(); |
#else |
const bool check_arguments = |
- (function.IsClosureFunction() || function.IsNoSuchMethodDispatcher()) && |
- !flow_graph().IsCompiledForOsr(); |
+ function.IsClosureFunction() && !flow_graph().IsCompiledForOsr(); |
#endif |
if (check_arguments) { |
__ Comment("Check argument count"); |
@@ -1142,7 +1141,7 @@ |
__ j(EQUAL, &correct_num_arguments, Assembler::kNearJump); |
__ Bind(&wrong_num_arguments); |
- if (function.IsClosureFunction() || function.IsNoSuchMethodDispatcher()) { |
+ if (function.IsClosureFunction()) { |
// Invoke noSuchMethod function passing the original function name. |
// For closure functions, use "call" as the original name. |
const String& name = |