| Index: src/list.h
|
| diff --git a/src/list.h b/src/list.h
|
| index e498ae162aaa3f6526f23f26e31496023cb59723..71aa821959faa7c9a6948c336fc02cf3271c8d9d 100644
|
| --- a/src/list.h
|
| +++ b/src/list.h
|
| @@ -91,6 +91,10 @@ class List {
|
| inline T& last() const { return at(length_ - 1); }
|
| inline T& first() const { return at(0); }
|
|
|
| + typedef T* iterator;
|
| + inline iterator begin() const { return &data_[0]; }
|
| + inline iterator end() const { return &data_[length_]; }
|
| +
|
| INLINE(bool is_empty() const) { return length_ == 0; }
|
| INLINE(int length() const) { return length_; }
|
| INLINE(int capacity() const) { return capacity_; }
|
| @@ -206,13 +210,13 @@ size_t GetMemoryUsedByList(const List<T, P>& list) {
|
| class Map;
|
| template<class> class TypeImpl;
|
| struct HeapTypeConfig;
|
| -typedef TypeImpl<HeapTypeConfig> Type;
|
| +typedef TypeImpl<HeapTypeConfig> HeapType;
|
| class Code;
|
| template<typename T> class Handle;
|
| typedef List<Map*> MapList;
|
| typedef List<Code*> CodeList;
|
| typedef List<Handle<Map> > MapHandleList;
|
| -typedef List<Handle<Type> > TypeHandleList;
|
| +typedef List<Handle<HeapType> > TypeHandleList;
|
| typedef List<Handle<Code> > CodeHandleList;
|
|
|
| // Perform binary search for an element in an already sorted
|
|
|