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

Unified Diff: runtime/vm/intermediate_language_x64.cc

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/intermediate_language_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index b947742092ea4131014fc362e4f07c3fb82019ec..6cff06c7fa2b8ab5927f66dc255cc2e656731b75 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -6648,30 +6648,6 @@ void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
}
-LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(Zone* zone,
- bool opt) const {
- const intptr_t kNumInputs = 1;
- const intptr_t kNumTemps = 0;
- LocationSummary* locs = new (zone)
- LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall);
- locs->set_in(0, Location::RegisterLocation(RAX));
- locs->set_out(0, Location::RegisterLocation(RAX));
- return locs;
-}
-
-
-void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
- const Register typed_data = locs()->in(0).reg();
- const Register result = locs()->out(0).reg();
- __ PushObject(Object::null_object());
- __ pushq(typed_data);
- compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
- kGrowRegExpStackRuntimeEntry, 1, locs());
- __ Drop(1);
- __ popq(result);
-}
-
-
} // namespace dart
#undef __

Powered by Google App Engine
This is Rietveld 408576698