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

Unified Diff: runtime/lib/regexp.cc

Issue 2960413002: Omit JIT compiler from precompiled runtime on ARM, ARM64 and IA32. (Closed)
Patch Set: Moved trace_irregexp flag to flag_list.h Created 3 years, 5 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
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/regexp.cc
diff --git a/runtime/lib/regexp.cc b/runtime/lib/regexp.cc
index 87795731c57db2a2461f537c3fa7cacf6ea594dc..1579374760a39104c391a805676f87693fc21101 100644
--- a/runtime/lib/regexp.cc
+++ b/runtime/lib/regexp.cc
@@ -14,9 +14,6 @@
namespace dart {
-DECLARE_FLAG(bool, trace_irregexp);
-
-
DEFINE_NATIVE_ENTRY(RegExp_factory, 4) {
ASSERT(TypeArguments::CheckedHandle(arguments->NativeArgAt(0)).IsNull());
GET_NON_NULL_NATIVE_ARGUMENT(String, pattern, arguments->NativeArgAt(1));
@@ -86,13 +83,14 @@ static RawObject* ExecuteMatch(Zone* zone,
GET_NON_NULL_NATIVE_ARGUMENT(String, subject, arguments->NativeArgAt(1));
GET_NON_NULL_NATIVE_ARGUMENT(Smi, start_index, arguments->NativeArgAt(2));
- if (FLAG_interpret_irregexp) {
- return BytecodeRegExpMacroAssembler::Interpret(regexp, subject, start_index,
- /*sticky=*/sticky, zone);
+#if !defined(DART_PRECOMPILED_RUNTIME)
+ if (!FLAG_interpret_irregexp) {
+ return IRRegExpMacroAssembler::Execute(regexp, subject, start_index,
+ /*sticky=*/sticky, zone);
}
-
- return IRRegExpMacroAssembler::Execute(regexp, subject, start_index,
- /*sticky=*/sticky, zone);
+#endif
+ return BytecodeRegExpMacroAssembler::Interpret(regexp, subject, start_index,
+ /*sticky=*/sticky, zone);
}
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698