Remove unnecessary statics
In an anonymous namespace, all methods are already treated like being static, so no need for these keywords. Review-Url: https://codereview.chromium.org/2384403006 Cr-Commit-Position: refs/heads/master@{#40032}
This commit is contained in:
parent
23644ddffd
commit
94c8170a88
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user