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

Unified Diff: runtime/vm/runtime_entry.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/runtime_entry.cc
diff --git a/runtime/vm/runtime_entry.cc b/runtime/vm/runtime_entry.cc
index eb14e4031499a76d0781ea9ef422f75f6b61f8f2..6859c52358bd92a7d102fb39edfae403535260a6 100644
--- a/runtime/vm/runtime_entry.cc
+++ b/runtime/vm/runtime_entry.cc
@@ -2343,21 +2343,4 @@ DEFINE_RUNTIME_ENTRY(InitStaticField, 1) {
field.EvaluateInitializer();
}
-
-DEFINE_RUNTIME_ENTRY(GrowRegExpStack, 1) {
- const Array& typed_data_cell = Array::CheckedHandle(arguments.ArgAt(0));
- ASSERT(!typed_data_cell.IsNull() && typed_data_cell.Length() == 1);
- const TypedData& old_data = TypedData::CheckedHandle(typed_data_cell.At(0));
- ASSERT(!old_data.IsNull());
- const intptr_t cid = old_data.GetClassId();
- const intptr_t old_size = old_data.Length();
- const intptr_t new_size = 2 * old_size;
- const intptr_t elm_size = old_data.ElementSizeInBytes();
- const TypedData& new_data =
- TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld));
- TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size);
- typed_data_cell.SetAt(0, new_data);
- arguments.SetReturn(new_data);
-}
-
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698