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

Unified Diff: runtime/vm/regexp_assembler_ir.h

Issue 2950783003: VM(RegExp): Allow OSR optimization of RegExp :matcher functions. (Closed)
Patch Set: Created 3 years, 6 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/regexp_assembler_ir.h
diff --git a/runtime/vm/regexp_assembler_ir.h b/runtime/vm/regexp_assembler_ir.h
index 8dbb4abe99251661fa058fe818ad2fd3be49ffc9..2d449241f581bc39b9b7462b5cc5caebe83e975b 100644
--- a/runtime/vm/regexp_assembler_ir.h
+++ b/runtime/vm/regexp_assembler_ir.h
@@ -32,6 +32,7 @@ class IRRegExpMacroAssembler : public RegExpMacroAssembler {
intptr_t capture_count,
const ParsedFunction* parsed_function,
const ZoneGrowableArray<const ICData*>& ic_data_array,
+ intptr_t osr_id,
Zone* zone);
virtual ~IRRegExpMacroAssembler();
@@ -284,8 +285,8 @@ class IRRegExpMacroAssembler : public RegExpMacroAssembler {
// Load a number of characters starting from index in the pattern string.
Value* LoadCodeUnitsAt(LocalVariable* index, intptr_t character_count);
- // Check whether preemption has been requested.
- void CheckPreemption();
+ // Check whether preemption has been requested. Also serves as an OSR entry.
+ void CheckPreemption(bool is_backtrack);
// Byte size of chars in the string to match (decided by the Mode argument)
inline intptr_t char_size() { return static_cast<int>(mode_); }

Powered by Google App Engine
This is Rietveld 408576698