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

Unified Diff: runtime/vm/intermediate_language.cc

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/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index cfb7622d3a7f58b48206093d101e2b65f94acd93..fee69357b60a47973a05afb837908085c656d519 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -2066,6 +2066,17 @@ Definition* RedefinitionInstr::Canonicalize(FlowGraph* flow_graph) {
}
+Instruction* CheckStackOverflowInstr::Canonicalize(FlowGraph* flow_graph) {
+ switch (kind_) {
+ case kFull:
+ return this;
+ case kOsrEntry:
+ // Don't need OSR entries in the optimized code.
+ return NULL;
+ }
+}
+
+
bool LoadFieldInstr::IsImmutableLengthLoad() const {
switch (recognized_kind()) {
case MethodRecognizer::kObjectArrayLength:

Powered by Google App Engine
This is Rietveld 408576698