v8  3.25.30(node0.11.13)
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 399 of file utils.h.

Constructor & Destructor Documentation

Vector ( )
inline

Definition at line 401 of file utils.h.

Vector ( T data,
int  length 
)
inline

Definition at line 402 of file utils.h.

Member Function Documentation

const T& at ( int  index) const
inline

Definition at line 434 of file utils.h.

static Vector<T> cast ( Vector< S input)
inlinestatic

Definition at line 477 of file utils.h.

Referenced by String::FlatContent::ToUC16Vector().

Vector<T> Clone ( ) const
inline

Definition at line 441 of file utils.h.

static Vector<T> empty ( )
inlinestatic

Definition at line 474 of file utils.h.

T& first ( )
inline

Definition at line 436 of file utils.h.

bool is_empty ( ) const
inline

Definition at line 423 of file utils.h.

T& last ( )
inline

Definition at line 438 of file utils.h.

int length ( ) const
inline

Definition at line 420 of file utils.h.

Referenced by StringStream::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), SimpleStringBuilder::AddCharacter(), StringBuilder::AddFormattedList(), DuplicateFinder::AddNumber(), AllocationTraceTree::AddPathFromEnd(), ProfileTree::AddPathFromEnd(), ProfileTree::AddPathFromStart(), RegExpBuilder::AddQuantifierToAtom(), SimpleStringBuilder::AddSubstring(), Heap::AllocateOneByteInternalizedString(), Heap::AllocateStringFromUtf8(), Heap::AllocateTwoByteInternalizedString(), Bignum::AssignDecimalString(), Bignum::AssignHexString(), Vector< const uint8_t >::cast(), StringHasher::ComputeUtf8Hash(), Heap::CopyCode(), Logger::DebugEvent(), v8::internal::DoubleToCString(), TextNode::FilterASCII(), SimpleStringBuilder::Finalize(), v8::internal::FindAsciiStringIndices(), v8::internal::FindStringIndices(), v8::internal::FindStringIndicesDispatch(), v8::internal::FindTwoByteStringIndices(), FormatMessage(), V8::GetCompressedStartupData(), ScriptDataImpl::GetFunctionEntry(), TextNode::GetQuickCheckDetails(), SequentialStringKey< uc16 >::Hash(), ScriptDataImpl::Initialize(), LiteralBuffer::INLINE(), v8::internal::IntToCString(), LiteralBuffer::is_contextual_keyword(), Heap::IsOneByte(), String::IsOneByteEqualTo(), String::IsTwoByteEqualTo(), String::IsUtf8EqualTo(), ScriptDataImpl::Length(), AsciiStringAdapter::length(), AsciiVectorResource::length(), UC16VectorResource::length(), Logger::LogRuntime(), Bootstrapper::NativesSourceLookup(), Vector< const uint8_t >::New(), V8_FINAL< kOperandKind, kNumCachedOperands >::New(), Parser::Parse(), JSFunction::PassesFilter(), ProfileGenerator::RecordTickSample(), ParserTraits::ReportMessageAt(), PreParserTraits::ReportMessageAt(), ScriptDataImpl::SanityCheck(), SimpleStringBuilder::size(), Vector< const uint8_t >::Sort(), CharacterRange::Split(), StringSearch< PatternChar, SubjectChar >::StringSearch(), v8::internal::StringToDouble(), v8::internal::Strtod(), ScriptDataImpl::symbol_count(), TEST(), Vector< const uint8_t >::Truncate(), OS::VSNPrintF(), Collector< unsigned char, growth_factor, max_growth >::WriteTo(), and LiteralBuffer::~LiteralBuffer().

Vector<T> operator+ ( int  offset)
inline

Definition at line 468 of file utils.h.

T& operator[] ( int  index) const
inline

Definition at line 429 of file utils.h.

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

void set_start ( T start)
inlineprotected
void Sort ( int(*)(const T *, const T *)  cmp)
inline

Definition at line 447 of file utils.h.

Referenced by TEST().

void Sort ( )
inline

Definition at line 451 of file utils.h.

T* start ( ) const
inline

Definition at line 426 of file utils.h.

Referenced by StringStream::Add(), AllocationTraceTree::AddPathFromEnd(), ProfileTree::AddPathFromEnd(), ProfileTree::AddPathFromStart(), OutputStreamWriter::AddSubstring(), Heap::AllocateOneByteInternalizedString(), Heap::AllocateStringFromUtf8(), Heap::AllocateTwoByteInternalizedString(), Vector< const uint8_t >::cast(), CheckCorrectThrow(), StringHasher::ComputeUtf8Hash(), Heap::CopyCode(), CreateCode(), ScriptDataImpl::Data(), AsciiStringAdapter::data(), AsciiVectorResource::data(), UC16VectorResource::data(), DEPENDENT_TEST(), DisassembleAndCompare(), v8::internal::DoubleToCString(), CompleteParserRecorder::ExtractData(), TextNode::FilterASCII(), SimpleStringBuilder::Finalize(), v8::internal::FindAsciiStringIndices(), v8::internal::FindTwoByteStringIndices(), FormatMessage(), V8::GetCompressedStartupData(), StringsStorage::GetCopy(), StringsStorage::GetVFormatted(), SequentialStringKey< uc16 >::Hash(), HeapNumber::HeapNumberPrint(), v8::internal::IntToCString(), LiteralBuffer::is_contextual_keyword(), Scanner::IsGetOrSet(), String::IsOneByteEqualTo(), String::IsTwoByteEqualTo(), String::IsUtf8EqualTo(), Logger::LogCompiledFunctions(), LowLevelLogger::LowLevelLogger(), String::MakeExternal(), Bootstrapper::NativesSourceLookup(), Object::ObjectProtoToString(), LiteralBuffer::one_byte_literal(), Parser::Parse(), PerfBasicLogger::PerfBasicLogger(), PerfJitLogger::PerfJitLogger(), FlatStringReader::PostGarbageCollection(), ProfileGenerator::RecordTickSample(), RecursiveCall(), ApiCallOptimizationChecker::Run(), RunParserSyncTest(), v8::internal::RUNTIME_FUNCTION(), Vector< const uint8_t >::set_start(), Vector< const uint8_t >::Sort(), v8::internal::StringToDouble(), OS::StrNCpy(), Vector< const uint8_t >::SubVector(), TEST(), THREADED_TEST(), LiteralBuffer::two_byte_literal(), TypedArrayTestHelper(), Scanner::UnescapedLiteralMatches(), OS::VSNPrintF(), FileByteSink::WriteSpaceUsed(), and ScopedVector< char >::~ScopedVector().

Vector<T> SubVector ( int  from,
int  to 
)
inline
void Truncate ( int  length)
inline

Definition at line 455 of file utils.h.


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