v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <utils.h>
Public Member Functions | |
Vector () | |
Vector (T *data, int length) | |
Vector< T > | SubVector (int from, int to) |
int | length () const |
bool | is_empty () const |
T * | start () const |
T & | operator[] (int index) const |
const T & | at (int index) const |
T & | first () |
T & | last () |
Vector< T > | Clone () const |
void | Sort (int(*cmp)(const T *, const T *)) |
void | Sort () |
void | Truncate (int length) |
void | Dispose () |
Vector< T > | operator+ (int offset) |
Static Public Member Functions | |
static Vector< T > | New (int length) |
static Vector< T > | empty () |
template<typename S > | |
static Vector< T > | cast (Vector< S > input) |
Protected Member Functions | |
void | set_start (T *start) |
|
inline |
Definition at line 397 of file utils.h.
Referenced by HTracer::TraceLiveRanges().
Definition at line 444 of file utils.h.
Referenced by String::FlatContent::ToAsciiVector(), and String::FlatContent::ToUC16Vector().
|
inline |
Definition at line 429 of file utils.h.
Referenced by DEPENDENT_TEST(), TEST(), FileByteSink::WriteSpaceUsed(), LiteralBuffer::~LiteralBuffer(), and ScriptDataImpl::~ScriptDataImpl().
|
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().
Definition at line 369 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Collector(), DEPENDENT_TEST(), PartialParserRecorder::ExtractData(), CompleteParserRecorder::ExtractData(), StringsStorage::GetCopy(), StringsStorage::GetVFormatted(), Collector< unsigned char, growth_factor, max_growth >::NewChunk(), SimpleStringBuilder::SimpleStringBuilder(), TEST(), Collector< unsigned char, growth_factor, max_growth >::ToVector(), and FileByteSink::WriteSpaceUsed().
|
inline |
Definition at line 392 of file utils.h.
Referenced by Vector< const SubjectChar >::at().
|
inlineprotected |
|
inline |
Definition at line 418 of file utils.h.
Referenced by Vector< const SubjectChar >::Sort().
|
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().
Definition at line 375 of file utils.h.
Referenced by RegExpBuilder::AddQuantifierToAtom(), PartialParserRecorder::ExtractData(), CompleteParserRecorder::ExtractData(), and ScriptDataImpl::GetFunctionEntry().