Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Unified Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 539153002: Port and integrate the irregexp engine from V8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Port remaining V8 regexp tests and fix exposed bugs. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
Florian Schneider 2014/10/01 17:04:13 Is this necessary? IsClosureFunction implies !IsIr
jgruber1 2014/10/03 18:59:51 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");

Powered by Google App Engine
This is Rietveld 408576698