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

Unified Diff: runtime/vm/regexp_assembler.h

Issue 2951053003: VM(RegExp): Allow OSR optimization of RegExp :matcher functions. (Closed)
Patch Set: Fix bugs with stack growing and block pruning 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.h
diff --git a/runtime/vm/regexp_assembler.h b/runtime/vm/regexp_assembler.h
index 1a12789dbf18dedc83e6fd2593de224d87ba83b7..929405be083f23dd37b29b042d197e0da475c7b3 100644
--- a/runtime/vm/regexp_assembler.h
+++ b/runtime/vm/regexp_assembler.h
@@ -153,6 +153,9 @@ class RegExpMacroAssembler : public ZoneAllocated {
virtual void CheckBitInTable(const TypedData& table,
BlockLabel* on_bit_set) = 0;
+ // Checks for pre-emption and serves as an OSR entry.
erikcorry 2017/06/22 13:08:06 preemption with no hypen
Vyacheslav Egorov (Google) 2017/06/22 14:58:48 Done.
+ virtual void CheckPreemption(bool is_backtrack) {}
+
// Checks whether the given offset from the current position is before
// the end of the string. May overwrite the current character.
virtual void CheckPosition(intptr_t cp_offset, BlockLabel* on_outside_input) {

Powered by Google App Engine
This is Rietveld 408576698