diff options
author | Feng Qian <fqian@google.com> | 2009-06-30 15:26:06 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-06-30 15:26:06 -0700 |
commit | cedffe365f5cf0dfb63dc9d9c592a6ab6620bdcc (patch) | |
tree | a96ddd4a13a1ba4dbbc4693bceced74203f6dab7 /V8Binding/v8/src/utils.h | |
parent | 67bf3b454483a7d8c1636969f4bb26c90c1ca8a2 (diff) | |
download | external_webkit-cedffe365f5cf0dfb63dc9d9c592a6ab6620bdcc.zip external_webkit-cedffe365f5cf0dfb63dc9d9c592a6ab6620bdcc.tar.gz external_webkit-cedffe365f5cf0dfb63dc9d9c592a6ab6620bdcc.tar.bz2 |
Pickup the latest V8 revision, prepare for snapshotting.
http://v8.googlecode.com/svn/branches/bleeding_edge@2313
Diffstat (limited to 'V8Binding/v8/src/utils.h')
-rw-r--r-- | V8Binding/v8/src/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/V8Binding/v8/src/utils.h b/V8Binding/v8/src/utils.h index 137e2c4..91662ee 100644 --- a/V8Binding/v8/src/utils.h +++ b/V8Binding/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() { |