v8
3.14.5(node0.10.28)
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 398 of file utils.h.
Referenced by HTracer::TraceLiveRanges().
Definition at line 445 of file utils.h.
Referenced by String::FlatContent::ToAsciiVector(), and String::FlatContent::ToUC16Vector().
|
inline |
Definition at line 430 of file utils.h.
Referenced by DEPENDENT_TEST(), TEST(), FileByteSink::WriteSpaceUsed(), LiteralBuffer::~LiteralBuffer(), and ScriptDataImpl::~ScriptDataImpl().
|
inline |
Definition at line 384 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(), OptimizingCompiler::CreateGraph(), 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(), Utf8SymbolKey::Hash(), SequentialSymbolKey< char >::Hash(), ScriptDataImpl::Initialize(), LiteralBuffer::INLINE(), v8::internal::IntToCString(), 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 370 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 393 of file utils.h.
Referenced by Vector< const SubjectChar >::at().
|
inlineprotected |
|
inline |
Definition at line 419 of file utils.h.
Referenced by Vector< const SubjectChar >::Sort().
|
inline |
Definition at line 390 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(), Utf8SymbolKey::Hash(), HeapNumber::HeapNumberPrint(), v8::internal::IntToCString(), 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(), FlagList::SetFlagsFromString(), 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 376 of file utils.h.
Referenced by RegExpBuilder::AddQuantifierToAtom(), OptimizingCompiler::CreateGraph(), PartialParserRecorder::ExtractData(), CompleteParserRecorder::ExtractData(), and ScriptDataImpl::GetFunctionEntry().