Index: runtime/vm/flow_graph_compiler_ia32.cc |
diff --git a/runtime/vm/flow_graph_compiler_ia32.cc b/runtime/vm/flow_graph_compiler_ia32.cc |
index 6236d5c8b4b54fd7d5662c0bbd04c395aa745a26..9bc273cc1a7ff2b0cc6284fae17a470495d9edd5 100644 |
--- a/runtime/vm/flow_graph_compiler_ia32.cc |
+++ b/runtime/vm/flow_graph_compiler_ia32.cc |
@@ -1043,10 +1043,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:52
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"); |