summaryrefslogtreecommitdiff
path: root/deps/v8/src/utils.h
diff options
context:
space:
mode:
authorRyan <ry@tinyclouds.org>2009-06-17 18:15:28 +0200
committerRyan <ry@tinyclouds.org>2009-06-17 18:15:28 +0200
commit84f9178e664e7a779cff10656848f89eb6795a73 (patch)
treeb54759addaf2224bc1052a815abc964260612a5a /deps/v8/src/utils.h
parent27b268b8c13d4ca27a0755cc02446fb78886a3bf (diff)
downloadnode-new-84f9178e664e7a779cff10656848f89eb6795a73.tar.gz
upgrade v8 to 1.2.8
Diffstat (limited to 'deps/v8/src/utils.h')
-rw-r--r--deps/v8/src/utils.h5
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() {