v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Vector< T > Class Template Reference

#include <utils.h>

Inheritance diagram for Vector< T >:

Public Member Functions

 Vector ()
 
 Vector (T *data, int length)
 
Vector< TSubVector (int from, int to)
 
int length () const
 
bool is_empty () const
 
Tstart () const
 
Toperator[] (int index) const
 
const Tat (int index) const
 
Tfirst ()
 
Tlast ()
 
Vector< TClone () const
 
void Sort (int(*cmp)(const T *, const T *))
 
void Sort ()
 
void Truncate (int length)
 
void Dispose ()
 
Vector< Toperator+ (int offset)
 

Static Public Member Functions

static Vector< TNew (int length)
 
static Vector< Tempty ()
 
template<typename S >
static Vector< Tcast (Vector< S > input)
 

Protected Member Functions

void set_start (T *start)
 

Detailed Description

template<typename T>
class v8::internal::Vector< T >

Definition at line 362 of file utils.h.

Constructor & Destructor Documentation

Vector ( )
inline

Definition at line 364 of file utils.h.

Vector ( T data,
int  length 
)
inline

Definition at line 365 of file utils.h.

Member Function Documentation

const T& at ( int  index) const
inline

Definition at line 397 of file utils.h.

Referenced by HTracer::TraceLiveRanges().

static Vector<T> cast ( Vector< S input)
inlinestatic
Vector<T> Clone ( ) const
inline

Definition at line 404 of file utils.h.

static Vector<T> empty ( )
inlinestatic

Definition at line 441 of file utils.h.

T& first ( )
inline

Definition at line 399 of file utils.h.

bool is_empty ( ) const
inline

Definition at line 386 of file utils.h.

T& last ( )
inline

Definition at line 401 of file utils.h.

int length ( ) const
inline

Definition at line 383 of file utils.h.

Referenced by StringStream::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), SimpleStringBuilder::AddCharacter(), StringBuilder::AddFormattedList(), DuplicateFinder::AddNumber(), ProfileTree::AddPathFromEnd(), ProfileTree::AddPathFromStart(), RegExpBuilder::AddQuantifierToAtom(), SimpleStringBuilder::AddSubstring(), Heap::AllocateAsciiSymbol(), Heap::AllocateStringFromUtf8(), Heap::AllocateSymbol(), Heap::AllocateTwoByteSymbol(), Bignum::AssignDecimalString(), Bignum::AssignHexString(), TextNode::CalculateOffsets(), Vector< const SubjectChar >::cast(), RegExpMacroAssemblerTracer::CheckCharacters(), Heap::CopyCode(), Logger::DebugEvent(), v8::internal::DoubleToCString(), TextNode::FilterASCII(), SimpleStringBuilder::Finalize(), v8::internal::FindAsciiStringIndices(), v8::internal::FindStringIndices(), v8::internal::FindStringIndicesDispatch(), V8::GetCompressedStartupData(), ScriptDataImpl::GetFunctionEntry(), TextNode::GetQuickCheckDetails(), TextNode::GreedyLoopTextLength(), ScriptDataImpl::Initialize(), LiteralBuffer::INLINE(), v8::internal::IntToCString(), RegExpImpl::IrregexpExecRaw(), String::IsAsciiEqualTo(), String::IsEqualTo(), String::IsTwoByteEqualTo(), ScriptDataImpl::Length(), AsciiStringAdapter::length(), AsciiVectorResource::length(), UC16VectorResource::length(), Logger::LogRuntime(), Bootstrapper::NativesSourceLookup(), Vector< const SubjectChar >::New(), ParserApi::Parse(), v8::Preparse(), ProfileGenerator::RecordTickSample(), Parser::ReportMessageAt(), PreallocatedMemoryThread::Run(), ScriptDataImpl::SanityCheck(), SimpleStringBuilder::size(), Vector< const SubjectChar >::Sort(), CharacterRange::Split(), StringSearch< PatternChar, SubjectChar >::StringSearch(), v8::internal::StringToDouble(), v8::internal::Strtod(), ScriptDataImpl::symbol_count(), TEST(), TestMemCopy(), HTracer::TraceLiveRanges(), Vector< const SubjectChar >::Truncate(), FunctionLoggingParserRecorder::WriteString(), Collector< unsigned char, growth_factor, max_growth >::WriteTo(), LiteralBuffer::~LiteralBuffer(), and ParserMessage::~ParserMessage().

Vector<T> operator+ ( int  offset)
inline

Definition at line 435 of file utils.h.

T& operator[] ( int  index) const
inline

Definition at line 392 of file utils.h.

Referenced by Vector< const SubjectChar >::at().

void Sort ( int(*)(const T *, const T *)  cmp)
inline

Definition at line 410 of file utils.h.

Referenced by TEST().

void Sort ( )
inline

Definition at line 418 of file utils.h.

Referenced by Vector< const SubjectChar >::Sort().

T* start ( ) const
inline

Definition at line 389 of file utils.h.

Referenced by StringStream::Add(), ProfileTree::AddPathFromEnd(), ProfileTree::AddPathFromStart(), OutputStreamWriter::AddSubstring(), Heap::AllocateAsciiSymbol(), Heap::AllocateStringFromUtf8(), Heap::AllocateSymbol(), Heap::AllocateTwoByteSymbol(), LiteralBuffer::ascii_literal(), Vector< const SubjectChar >::cast(), Heap::CopyCode(), ScriptDataImpl::Data(), AsciiStringAdapter::data(), AsciiVectorResource::data(), UC16VectorResource::data(), DEPENDENT_TEST(), DisassembleAndCompare(), v8::internal::DoubleToCString(), PartialParserRecorder::ExtractData(), CompleteParserRecorder::ExtractData(), v8::internal::FindAsciiStringIndices(), V8::GetCompressedStartupData(), StringsStorage::GetCopy(), StringsStorage::GetVFormatted(), HeapNumber::HeapNumberPrint(), v8::internal::IntToCString(), RegExpImpl::IrregexpExecRaw(), String::IsAsciiEqualTo(), String::IsEqualTo(), String::IsTwoByteEqualTo(), Logger::LogCompiledFunctions(), Bootstrapper::NativesSourceLookup(), Object::ObjectProtoToString(), ParserApi::Parse(), v8::Preparse(), ProfileGenerator::RecordTickSample(), RecursiveCall(), PreallocatedMemoryThread::Run(), v8::internal::RUNTIME_FUNCTION(), Vector< const SubjectChar >::set_start(), Vector< const SubjectChar >::Sort(), v8::internal::StringToDouble(), OS::StrNCpy(), Vector< const SubjectChar >::SubVector(), TEST(), TestMemCopy(), THREADED_TEST(), LiteralBuffer::utf16_literal(), v8::internal::Utf8LengthHelper(), FileByteSink::WriteSpaceUsed(), and ScopedVector< char >::~ScopedVector().

void Truncate ( int  length)
inline

Definition at line 422 of file utils.h.


The documentation for this class was generated from the following file: