diff options
Diffstat (limited to 'deps/v8/src/utils.h')
-rw-r--r-- | deps/v8/src/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/utils.h b/deps/v8/src/utils.h index 137e2c4f0c..91662eea6c 100644 --- a/deps/v8/src/utils.h +++ b/deps/v8/src/utils.h @@ -362,6 +362,11 @@ class Vector { Sort(PointerValueCompare<T>); } + void Truncate(int length) { + ASSERT(length <= length_); + length_ = length; + } + // Releases the array underlying this vector. Once disposed the // vector is empty. void Dispose() { |