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

Unified Diff: src/list.h

Issue 1204123003: Reland Extend big-disjunction optimization to case-independent regexps (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Skip slow architecture-independent tests on slower CPUs and simulators Created 5 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
« no previous file with comments | « src/jsregexp.cc ('k') | src/list-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/list.h
diff --git a/src/list.h b/src/list.h
index 00cbd40312025ad8ba2fcc40a1f17b2a8409cd22..b636449c423b9d9ea7a184de78a3580a49c5780e 100644
--- a/src/list.h
+++ b/src/list.h
@@ -149,12 +149,15 @@ class List {
void Iterate(Visitor* visitor);
// Sort all list entries (using QuickSort)
- void Sort(int (*cmp)(const T* x, const T* y), size_t start, size_t length);
- void Sort(int (*cmp)(const T* x, const T* y));
+ template <typename CompareFunction>
+ void Sort(CompareFunction cmp, size_t start, size_t length);
+ template <typename CompareFunction>
+ void Sort(CompareFunction cmp);
void Sort();
- void StableSort(int (*cmp)(const T* x, const T* y), size_t start,
- size_t length);
- void StableSort(int (*cmp)(const T* x, const T* y));
+ template <typename CompareFunction>
+ void StableSort(CompareFunction cmp, size_t start, size_t length);
+ template <typename CompareFunction>
+ void StableSort(CompareFunction cmp);
void StableSort();
INLINE(void Initialize(int capacity,
« no previous file with comments | « src/jsregexp.cc ('k') | src/list-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698