| 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 4ec82608aa6cb04b0300ea4a73bf34610b1ed813..3bc6b568941874510490164009f2cf5965c3370d 100644
|
| --- a/runtime/vm/flow_graph_compiler_arm64.cc
|
| +++ b/runtime/vm/flow_graph_compiler_arm64.cc
|
| @@ -1048,10 +1048,12 @@ void FlowGraphCompiler::CompileGraph() {
|
| if (num_copied_params == 0) {
|
| #ifdef DEBUG
|
| ASSERT(!parsed_function().function().HasOptionalParameters());
|
| - const bool check_arguments = !flow_graph().IsCompiledForOsr();
|
| + const bool check_arguments = !flow_graph().IsCompiledForOsr() &&
|
| + !function.IsIrregexpFunction();
|
| #else
|
| const bool check_arguments =
|
| - function.IsClosureFunction() && !flow_graph().IsCompiledForOsr();
|
| + function.IsClosureFunction() && !flow_graph().IsCompiledForOsr() &&
|
| + !function.IsIrregexpFunction();
|
| #endif
|
| if (check_arguments) {
|
| __ Comment("Check argument count");
|
|
|