Index: runtime/vm/flow_graph_compiler_mips.cc |
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc |
index 8ed3f907c19170adc7705b5cda681125b59f1aa1..ff5595c1e114830fd61dcd1a8d68a7af34c0ea88 100644 |
--- a/runtime/vm/flow_graph_compiler_mips.cc |
+++ b/runtime/vm/flow_graph_compiler_mips.cc |
@@ -1074,10 +1074,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:14
Is this necessary? IsClosureFunction implies !IsIr
jgruber1
2014/10/03 18:59:53
Done.
|
#else |
const bool check_arguments = |
- function.IsClosureFunction() && !flow_graph().IsCompiledForOsr(); |
+ function.IsClosureFunction() && !flow_graph().IsCompiledForOsr() && |
+ !function.IsIrregexpFunction(); |
#endif |
if (check_arguments) { |
__ TraceSimMsg("Check argument count"); |