Index: src/list.h |
=================================================================== |
--- src/list.h (revision 1640) |
+++ src/list.h (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright 2006-2008 the V8 project authors. All rights reserved. |
+// Copyright 2006-2009 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -67,6 +67,7 @@ |
INLINE(bool is_empty() const) { return length_ == 0; } |
INLINE(int length() const) { return length_; } |
+ INLINE(int capacity() const) { return capacity_; } |
Vector<T> ToVector() { return Vector<T>(data_, length_); } |