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

Unified Diff: src/runtime/runtime-regexp.cc

Issue 2384403006: Remove unnecessary statics (Closed)
Patch Set: Remove unnecessary statics Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-regexp.cc
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc
index 27e01ecb0cde56648b8eca4850da329286c4eeff..f6e1daf288cb54763a9209256ca84e56b646c9b6 100644
--- a/src/runtime/runtime-regexp.cc
+++ b/src/runtime/runtime-regexp.cc
@@ -381,15 +381,15 @@ void FindStringIndicesDispatch(Isolate* isolate, String* subject,
}
namespace {
-static List<int>* GetRewindedRegexpIndicesList(Isolate* isolate) {
+List<int>* GetRewindedRegexpIndicesList(Isolate* isolate) {
List<int>* list = isolate->regexp_indices();
list->Rewind(0);
return list;
}
-static void TruncateRegexpIndicesList(Isolate* isolate) {
- // Same size as smallest zone segment, preserving behavior from the runtime
- // zone.
+void TruncateRegexpIndicesList(Isolate* isolate) {
+ // Same size as smallest zone segment, preserving behavior from the
+ // runtime zone.
static const size_t kMaxRegexpIndicesListCapacity = 8 * KB;
if (isolate->regexp_indices()->capacity() > kMaxRegexpIndicesListCapacity) {
isolate->regexp_indices()->Clear(); // Throw away backing storage
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698