v8
3.25.30(node0.11.13)
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) |
Definition at line 477 of file utils.h.
Referenced by String::FlatContent::ToUC16Vector().
|
inline |
Definition at line 462 of file utils.h.
Referenced by DEPENDENT_TEST(), TEST(), FileByteSink::WriteSpaceUsed(), LiteralBuffer::~LiteralBuffer(), and ScriptDataImpl::~ScriptDataImpl().
|
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().
Definition at line 406 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Collector(), DEPENDENT_TEST(), 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 429 of file utils.h.
Referenced by Vector< const uint8_t >::at().
|
inlineprotected |
Definition at line 483 of file utils.h.
Referenced by EmbeddedVector< char, 128 >::EmbeddedVector(), and EmbeddedVector< char, 128 >::operator=().
|
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().
Definition at line 412 of file utils.h.
Referenced by RegExpBuilder::AddQuantifierToAtom(), CompleteParserRecorder::ExtractData(), ScriptDataImpl::GetFunctionEntry(), and JSFunction::PassesFilter().