diff options
Diffstat (limited to 'deps/v8/src/list.h')
-rw-r--r-- | deps/v8/src/list.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/deps/v8/src/list.h b/deps/v8/src/list.h index a210dfb1b8..adddea41f0 100644 --- a/deps/v8/src/list.h +++ b/deps/v8/src/list.h @@ -173,11 +173,9 @@ typedef List<Handle<Code> > CodeHandleList; // Perform binary search for an element in an already sorted // list. Returns the index of the element of -1 if it was not found. -// |cmp| is a predicate that takes a pointer to an element of the List -// and returns +1 if it is greater, -1 if it is less than the element -// being searched. -template <typename T, class P> -int SortedListBSearch(const List<T>& list, P cmp); +template <typename T> +int SortedListBSearch( + const List<T>& list, T elem, int (*cmp)(const T* x, const T* y)); template <typename T> int SortedListBSearch(const List<T>& list, T elem); |