| Index: src/list.h
|
| diff --git a/src/list.h b/src/list.h
|
| index 34b18fbe98662c4c6956bea3700cade7760d7e1c..1fe9067631c972e1afeb79767bfbcf1214140626 100644
|
| --- a/src/list.h
|
| +++ b/src/list.h
|
| @@ -46,6 +46,7 @@ namespace v8 { namespace internal {
|
| template <typename T, class P>
|
| class List {
|
| public:
|
| +
|
| INLINE(explicit List(int capacity)) { Initialize(capacity); }
|
| INLINE(~List()) { DeleteData(data_); }
|
|
|
| @@ -67,6 +68,8 @@ class List {
|
|
|
| Vector<T> ToVector() { return Vector<T>(data_, length_); }
|
|
|
| + Vector<const T> ToConstVector() { return Vector<const T>(data_, length_); }
|
| +
|
| // Adds a copy of the given 'element' to the end of the list,
|
| // expanding the list if necessary.
|
| T& Add(const T& element);
|
|
|