Chromium Code Reviews| 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 051dc85839cd38efc691ee13e186abfab5351653..c7f65e2f0fdd3d473c4d24c95f5b239acb4eeb2e 100644 |
| --- a/runtime/vm/flow_graph_compiler_x64.cc |
| +++ b/runtime/vm/flow_graph_compiler_x64.cc |
| @@ -1081,10 +1081,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(); |
|
Florian Schneider
2014/10/01 17:04:15
Is this necessary? IsClosureFunction implies !IsIr
jgruber1
2014/10/03 18:59:54
Done.
|
| #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"); |