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

Unified Diff: runtime/vm/regexp.h

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/program_visitor.cc ('k') | runtime/vm/regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp.h
diff --git a/runtime/vm/regexp.h b/runtime/vm/regexp.h
index a9dbe09a7a571a041913ad2590378f72b1e7163e..8d49edeb210e78f6159ff144dd524428e4c47805 100644
--- a/runtime/vm/regexp.h
+++ b/runtime/vm/regexp.h
@@ -1350,51 +1350,61 @@ class RegExpEngine : public AllStatic {
public:
struct CompilationResult {
explicit CompilationResult(const char* error_message)
- : backtrack_goto(NULL),
+ : error_message(error_message),
+#if !defined(DART_PRECOMPILED_RUNTIME)
+ backtrack_goto(NULL),
graph_entry(NULL),
num_blocks(-1),
num_stack_locals(-1),
- error_message(error_message),
+#endif
bytecode(NULL),
- num_registers(-1) {}
+ num_registers(-1) {
+ }
CompilationResult(TypedData* bytecode, intptr_t num_registers)
- : backtrack_goto(NULL),
+ : error_message(NULL),
+#if !defined(DART_PRECOMPILED_RUNTIME)
+ backtrack_goto(NULL),
graph_entry(NULL),
num_blocks(-1),
num_stack_locals(-1),
- error_message(NULL),
+#endif
bytecode(bytecode),
- num_registers(num_registers) {}
+ num_registers(num_registers) {
+ }
+#if !defined(DART_PRECOMPILED_RUNTIME)
CompilationResult(IndirectGotoInstr* backtrack_goto,
GraphEntryInstr* graph_entry,
intptr_t num_blocks,
intptr_t num_stack_locals,
intptr_t num_registers)
- : backtrack_goto(backtrack_goto),
+ : error_message(NULL),
+ backtrack_goto(backtrack_goto),
graph_entry(graph_entry),
num_blocks(num_blocks),
num_stack_locals(num_stack_locals),
- error_message(NULL),
bytecode(NULL) {}
-
- IndirectGotoInstr* backtrack_goto;
- GraphEntryInstr* graph_entry;
- const intptr_t num_blocks;
- const intptr_t num_stack_locals;
+#endif
const char* error_message;
+ NOT_IN_PRECOMPILED(IndirectGotoInstr* backtrack_goto);
+ NOT_IN_PRECOMPILED(GraphEntryInstr* graph_entry);
+ NOT_IN_PRECOMPILED(const intptr_t num_blocks);
+ NOT_IN_PRECOMPILED(const intptr_t num_stack_locals);
+
TypedData* bytecode;
intptr_t num_registers;
};
+#if !defined(DART_PRECOMPILED_RUNTIME)
static CompilationResult CompileIR(
RegExpCompileData* input,
const ParsedFunction* parsed_function,
const ZoneGrowableArray<const ICData*>& ic_data_array,
intptr_t osr_id);
+#endif
static CompilationResult CompileBytecode(RegExpCompileData* data,
const RegExp& regexp,
« no previous file with comments | « runtime/vm/program_visitor.cc ('k') | runtime/vm/regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698