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

Unified Diff: src/list.h

Issue 8188: Some new regexp infrastructure. (Closed)
Patch Set: Created 12 years, 2 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
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);

Powered by Google App Engine
This is Rietveld 408576698