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

Unified Diff: runtime/vm/regexp_parser.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 | « runtime/vm/regexp_parser.h ('k') | runtime/vm/runtime_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_parser.cc
diff --git a/runtime/vm/regexp_parser.cc b/runtime/vm/regexp_parser.cc
index f75b30f6549d59fb2ca28e2c5a9e3444a2796bd6..257f0fee247c9e8176be7103073c990d22c1e5a2 100644
--- a/runtime/vm/regexp_parser.cc
+++ b/runtime/vm/regexp_parser.cc
@@ -216,34 +216,6 @@ RegExpParser::RegExpParser(const String& in, String* error, bool multiline)
}
-bool RegExpParser::ParseFunction(ParsedFunction* parsed_function) {
- VMTagScope tagScope(parsed_function->thread(),
- VMTag::kCompileParseRegExpTagId);
- Zone* zone = parsed_function->zone();
- RegExp& regexp = RegExp::Handle(parsed_function->function().regexp());
-
- const String& pattern = String::Handle(regexp.pattern());
- const bool multiline = regexp.is_multi_line();
-
- RegExpCompileData* compile_data = new (zone) RegExpCompileData();
- if (!RegExpParser::ParseRegExp(pattern, multiline, compile_data)) {
- // Parsing failures are handled in the RegExp factory constructor.
- UNREACHABLE();
- }
-
- regexp.set_num_bracket_expressions(compile_data->capture_count);
- if (compile_data->simple) {
- regexp.set_is_simple();
- } else {
- regexp.set_is_complex();
- }
-
- parsed_function->SetRegExpCompileData(compile_data);
-
- return true;
-}
-
-
uint32_t RegExpParser::Next() {
if (has_next()) {
return in().CharAt(next_pos_);
« no previous file with comments | « runtime/vm/regexp_parser.h ('k') | runtime/vm/runtime_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698