R=bmeurer@chromium.org
Review URL: https://codereview.chromium.org/
1289553002
Cr-Commit-Position: refs/heads/master@{#30126}
#include "src/d8.h"
-#ifndef V8_SHARED
-#include "src/list-inl.h"
-#endif
-
#if !V8_OS_NACL
#include <sys/select.h>
#endif
}
-template <typename T, class P>
-void List<T, P>::Initialize(int capacity, P allocator) {
- DCHECK(capacity >= 0);
- data_ = (capacity > 0) ? NewData(capacity, allocator) : NULL;
- capacity_ = capacity;
- length_ = 0;
-}
-
-
template <typename T, typename P>
int SortedListBSearch(const List<T>& list, P cmp) {
int low = 0;
void StableSort();
INLINE(void Initialize(int capacity,
- AllocationPolicy allocator = AllocationPolicy()));
+ AllocationPolicy allocator = AllocationPolicy())) {
+ DCHECK(capacity >= 0);
+ data_ = (capacity > 0) ? NewData(capacity, allocator) : NULL;
+ capacity_ = capacity;
+ length_ = 0;
+ }
private:
T* data_;