Chromium Code Reviews| Index: runtime/vm/flow_graph_compiler_arm.cc |
| diff --git a/runtime/vm/flow_graph_compiler_arm.cc b/runtime/vm/flow_graph_compiler_arm.cc |
| index 67c26edb1ab0d63f7f0666645d37b85e4d5c8fa9..d971e239da75d786954a7892ad78a3444f5493f5 100644 |
| --- a/runtime/vm/flow_graph_compiler_arm.cc |
| +++ b/runtime/vm/flow_graph_compiler_arm.cc |
| @@ -1040,10 +1040,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(); |
|
Florian Schneider
2014/10/01 17:04:14
Is this necessary? IsClosureFunction implies !IsIr
jgruber1
2014/10/03 18:59:52
Done.
|
| #endif |
| if (check_arguments) { |
| __ Comment("Check argument count"); |