v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Data Structures | |
class | FlatContent |
class | ReadBlockBuffer |
Static Public Member Functions | |
static uint32_t | ComputeHashField (unibrow::CharacterStream *buffer, int length, uint32_t seed) |
static bool | ComputeArrayIndex (unibrow::CharacterStream *buffer, uint32_t *index, int length) |
static String * | cast (Object *obj) |
static const unibrow::byte * | ReadBlock (String *input, unibrow::byte *util_buffer, unsigned capacity, unsigned *remaining, unsigned *offset) |
static const unibrow::byte * | ReadBlock (String **input, unibrow::byte *util_buffer, unsigned capacity, unsigned *remaining, unsigned *offset) |
template<typename sinkchar > | |
static void | WriteToFlat (String *source, sinkchar *sink, int from, int to) |
static int | NonAsciiStart (const char *chars, int length) |
static bool | IsAscii (const char *chars, int length) |
static int | NonAsciiStart (const uc16 *chars, int length) |
static bool | IsAscii (const uc16 *chars, int length) |
Static Public Member Functions inherited from HeapObject | |
static HeapObject * | FromAddress (Address address) |
static Object ** | RawField (HeapObject *obj, int offset) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< String > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Handle< Object > object, uint32_t index) |
static Object * | cast (Object *value) |
Static Public Attributes | |
static const int | kLengthOffset = HeapObject::kHeaderSize |
static const int | kHashFieldOffset = kLengthOffset + kPointerSize |
static const int | kSize = kHashFieldOffset + kPointerSize |
static const int | kMaxArrayIndexSize = 10 |
static const int | kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar |
static const unsigned | kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar |
static const int | kMaxUtf16CodeUnit = 0xffff |
static const int | kHashNotComputedMask = 1 |
static const int | kIsNotArrayIndexMask = 1 << 1 |
static const int | kNofHashBitFields = 2 |
static const int | kHashShift = kNofHashBitFields |
static const uint32_t | kHashBitMask = 0xffffffffu >> kHashShift |
static const int | kMaxCachedArrayIndexLength = 7 |
static const int | kArrayIndexValueBits = 24 |
static const int | kArrayIndexLengthBits |
static const int | kArrayIndexHashLengthShift |
static const int | kArrayIndexHashMask = (1 << kArrayIndexHashLengthShift) - 1 |
static const int | kArrayIndexValueMask |
static const int | kContainsCachedArrayIndexMask |
static const int | kEmptyHashField |
static const int | kEmptyStringHash = kIsNotArrayIndexMask |
static const int | kMaxLength = (1 << (32 - 2)) - 1 |
static const int | kMaxHashCalcLength = 16383 |
static const int | kMaxShortPrintLength = 1024 |
Static Public Attributes inherited from HeapObject | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
Static Public Attributes inherited from Object | |
static const int | kHeaderSize = 0 |
Static Protected Member Functions | |
static const unibrow::byte * | ReadBlock (String *input, ReadBlockBuffer *buffer, unsigned *offset, unsigned max_chars) |
static void | ReadBlockIntoBuffer (String *input, ReadBlockBuffer *buffer, unsigned *offset_ptr, unsigned max_chars) |
Additional Inherited Members | |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
|
inline |
Definition at line 5028 of file objects-inl.h.
References String::hash_field(), and String::kIsNotArrayIndexMask.
Referenced by JSObject::DefineAccessor(), JSObject::DeleteProperty(), JSReceiver::GetLocalPropertyAttribute(), JSReceiver::GetPropertyAttributeWithReceiver(), Literal::IsPropertyName(), JSObject::LookupAccessor(), and v8::internal::RUNTIME_FUNCTION().
Referenced by Heap::AllocateAsciiSymbol(), Heap::AllocateInternalSymbol(), Heap::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), Heap::AllocateSubString(), Heap::AllocateTwoByteSymbol(), Logger::ApiNamedPropertyAccess(), Logger::ApiNamedSecurityCheck(), Map::AppendCallbackDescriptors(), RegExpImpl::AtomExecRaw(), JSReceiver::class_name(), ConsString::ConsStringGet(), ConsString::ConsStringReadBlockIntoBuffer(), JSReceiver::constructor_name(), ScopeInfo::ContextLocalName(), SharedFunctionInfo::DebugName(), JSObject::DefineAccessor(), Scope::DeserializeScopeChain(), Isolate::DoThrow(), RegExpResultsCache::Enter(), StringDictionary::FindEntry(), ConsString::first(), ScopeInfo::FunctionName(), V8HeapExplorer::GetConstructorName(), Runtime::GetElementOrCharAt(), Object::GetHash(), CodeCache::GetIndex(), TransitionArray::GetKey(), DescriptorArray::GetKey(), JSObject::GetLocalElementKeys(), Heap::GetNumberStringCache(), v8::internal::GetScriptLineNumberSafe(), SharedFunctionInfo::GetSourceCode(), SharedFunctionInfo::GetThisPropertyAssignmentName(), String::GetUnderlying(), StringDictionaryShape::HashForObject(), CodeCacheHashTableKey::HashForObject(), StringKey::HashForObject(), StringSharedKey::HashForObject(), RegExpKey::HashForObject(), Utf8SymbolKey::HashForObject(), SequentialSymbolKey< char >::HashForObject(), SubStringAsciiSymbolKey::HashForObject(), SymbolKey::HashForObject(), TwoCharHashTableKey::HashForObject(), SymbolsKey::HashForObject(), Script::HasValidSource(), HeapObject::HeapObjectShortPrint(), Runtime::InitializeIntrinsicFunctionNames(), v8::internal::InitScriptLineEnds(), StringDictionaryShape::IsMatch(), CodeCacheHashTableKey::IsMatch(), StringKey::IsMatch(), StringSharedKey::IsMatch(), RegExpKey::IsMatch(), Utf8SymbolKey::IsMatch(), AsciiSymbolKey::IsMatch(), SubStringAsciiSymbolKey::IsMatch(), TwoByteSymbolKey::IsMatch(), SymbolKey::IsMatch(), TwoCharHashTableKey::IsMatch(), Literal::IsPropertyName(), Object::IsStringObjectWithCharacterAt(), JSObject::JSObjectShortPrint(), LoadIC::Load(), ScopeInfo::LocalName(), Logger::LogAccessorCallbacks(), Logger::LogExistingFunction(), Logger::LogRuntime(), Context::Lookup(), Heap::LookupSingleCharacterStringFromCode(), SymbolTable::LookupSymbolIfExists(), SymbolTable::LookupTwoCharsSymbolIfExists(), FullCodeGenerator::MakeCode(), Heap::NumberToString(), ScopeInfo::ParameterName(), SlicedString::parent(), Parser::ParseLazy(), Parser::ParseProgram(), JSRegExp::Pattern(), LStoreNamedField::PrintDataTo(), LStoreNamedGeneric::PrintDataTo(), HLoadNamedFieldPolymorphic::PrintDataTo(), HLoadNamedGeneric::PrintDataTo(), HStoreNamedField::PrintDataTo(), HStoreNamedGeneric::PrintDataTo(), StringStream::PrintName(), StringStream::PrintPrototype(), JavaScriptFrame::PrintTop(), StringStream::PrintUsingMap(), ObjectLiteral::Property::Property(), ToBooleanStub::Types::Record(), Compiler::RecordFunctionCompilation(), CodeCache::RemoveByIndex(), v8::internal::RUNTIME_FUNCTION(), Object::SameValue(), ConsString::second(), Runtime::SetObjectProperty(), JSObject::SetPropertyForResult(), SlicedString::SlicedStringReadBlock(), SlicedString::SlicedStringReadBlockIntoBuffer(), SharedFunctionInfo::SourceCodePrint(), ScopeInfo::StackLocalName(), Value::StrictEquals(), SymbolKey::StringHash(), StringSharedKey::StringSharedHashHelper(), StringObject::StringValue(), V8HeapExplorer::TagGlobalObjects(), TEST(), Object::ToBoolean(), HConstant::ToBoolean(), StringDictionary::TransformPropertiesToFastFor(), String::TryFlattenGetString(), CallICBase::TryUpdateExtraICState(), Heap::VisitExternalResources(), and SymbolTableCleaner::VisitPointers().
|
static |
Definition at line 7245 of file objects.cc.
References CharacterStream::GetNext(), CharacterStream::has_more(), String::kMaxArrayIndexSize, and v8::internal::U.
|
static |
Definition at line 7336 of file objects.cc.
References StringHasher::AddCharacter(), StringHasher::AddCharacterNoIndex(), StringHasher::GetHashField(), CharacterStream::GetNext(), CharacterStream::has_more(), StringHasher::has_trivial_hash(), and StringHasher::is_array_index().
Referenced by Utf8SymbolKey::Hash().
|
inline |
Definition at line 2419 of file objects-inl.h.
Referenced by v8::internal::BinarySearch(), Map::FindAccessor(), StringDictionary::FindEntry(), FunctionExtension::GetNativeFunction(), StringDictionaryShape::IsMatch(), StringKey::IsMatch(), StringSharedKey::IsMatch(), RegExpKey::IsMatch(), SymbolKey::IsMatch(), v8::internal::LinearSearch(), JSReceiver::LocalLookup(), StringStream::PrintPrototype(), Map::PropertyIndexFor(), Object::SameValue(), TransitionArray::Search(), and Value::StrictEquals().
String::FlatContent GetFlatContent | ( | ) |
Definition at line 6191 of file objects.cc.
References ASSERT, SeqAsciiString::cast(), SeqTwoByteString::cast(), ConsString::cast(), SlicedString::cast(), ExternalAsciiString::cast(), ExternalTwoByteString::cast(), ConsString::first(), SeqAsciiString::GetChars(), SeqTwoByteString::GetChars(), ExternalAsciiString::GetChars(), ExternalTwoByteString::GetChars(), v8::internal::kAsciiStringTag, v8::internal::kConsStringTag, v8::internal::kSeqStringTag, v8::internal::kSlicedStringTag, v8::internal::kTwoByteStringTag, String::length(), SlicedString::offset(), SlicedString::parent(), and ConsString::second().
Referenced by RegExpImpl::AtomExecRaw(), v8::internal::FindStringIndicesDispatch(), String::IsAsciiEqualTo(), String::IsTwoByteEqualTo(), and v8::internal::Utf8LengthHelper().
const uc16 * GetTwoByteData | ( | ) |
Definition at line 6292 of file objects.cc.
Referenced by String::GetTwoByteData().
const uc16 * GetTwoByteData | ( | unsigned | start | ) |
Definition at line 6297 of file objects.cc.
References ASSERT, SeqTwoByteString::cast(), SlicedString::cast(), ExternalTwoByteString::cast(), String::GetTwoByteData(), v8::internal::kConsStringTag, v8::internal::kExternalStringTag, v8::internal::kSeqStringTag, v8::internal::kSlicedStringTag, v8::internal::NULL, SlicedString::offset(), SlicedString::parent(), SeqTwoByteString::SeqTwoByteStringGetData(), and UNREACHABLE.
|
inline |
Definition at line 2486 of file objects-inl.h.
References ASSERT, String::cast(), ConsString::kFirstOffset, SlicedString::kParentOffset, READ_FIELD, and v8::internal::STATIC_ASSERT().
Referenced by String::IsAsciiRepresentationUnderneath(), and String::IsTwoByteRepresentationUnderneath().
|
inline |
Definition at line 4921 of file objects-inl.h.
Referenced by DescriptorArray::Append(), v8::internal::BinarySearch(), RegExpResultsCache::Enter(), StringDictionary::FindEntry(), Object::GetHash(), StringDictionaryShape::Hash(), SymbolKey::Hash(), StringDictionaryShape::HashForObject(), StringKey::HashForObject(), Utf8SymbolKey::HashForObject(), SequentialSymbolKey< char >::HashForObject(), SubStringAsciiSymbolKey::HashForObject(), SymbolKey::HashForObject(), TwoCharHashTableKey::HashForObject(), StringDictionaryShape::IsMatch(), v8::internal::LinearSearch(), RegExpResultsCache::Lookup(), CodeCacheHashTableKey::NameFlagsHashHelper(), v8::internal::RUNTIME_FUNCTION(), SymbolKey::StringHash(), and StringSharedKey::StringSharedHashHelper().
|
inline |
Definition at line 2406 of file objects-inl.h.
References READ_UINT32_FIELD.
Referenced by String::AsArrayIndex(), SymbolKey::AsObject(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4916 of file objects-inl.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 334 of file objects-inl.h.
References Map::instance_type(), v8::internal::kAsciiDataHintMask, v8::internal::kAsciiDataHintTag, v8::internal::kAsciiStringTag, v8::internal::kStringEncodingMask, and HeapObject::map().
Referenced by Heap::AllocateConsString(), Logger::NameBuffer::AppendString(), and v8::internal::RUNTIME_FUNCTION().
INLINE | ( | uint16_t | Getint index | ) |
|
inlinestatic |
Definition at line 7443 of file objects.h.
Referenced by Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), Heap::AllocateStringFromTwoByte(), StringSearchBase::IsAsciiString(), and TEST().
|
inlinestatic |
bool IsAsciiEqualTo | ( | Vector< const char > | str | ) |
Definition at line 7184 of file objects.cc.
References v8::internal::CompareChars(), String::GetFlatContent(), String::FlatContent::IsAscii(), Vector< T >::length(), String::length(), Vector< T >::start(), and String::FlatContent::ToAsciiVector().
Referenced by AsciiSymbolKey::IsMatch(), and SubStringAsciiSymbolKey::IsMatch().
|
inline |
Definition at line 290 of file objects-inl.h.
References Map::instance_type(), v8::internal::kAsciiStringTag, v8::internal::kStringEncodingMask, and HeapObject::map().
Referenced by Heap::AllocateConsString(), Heap::AllocateSubString(), Script::HasValidSource(), String::IsAsciiRepresentationUnderneath(), String::MakeExternal(), NativeRegExpMacroAssembler::Match(), String::ReadBlock(), String::ReadBlockIntoBuffer(), NativeRegExpMacroAssembler::StringCharacterPosition(), and v8::internal::Utf8LengthHelper().
|
inline |
Definition at line 302 of file objects-inl.h.
References ASSERT, String::GetUnderlying(), Map::instance_type(), String::IsAsciiRepresentation(), String::IsFlat(), v8::internal::kAsciiStringTag, v8::internal::kIsIndirectStringMask, v8::internal::kIsIndirectStringTag, v8::internal::kStringEncodingMask, v8::internal::kTwoByteStringTag, HeapObject::map(), and v8::internal::STATIC_ASSERT().
bool IsEqualTo | ( | Vector< const char > | str | ) |
Definition at line 7163 of file objects.cc.
References HeapObject::GetIsolate(), Utf16::kMaxNonSurrogateCharCode, Utf16::LeadSurrogate(), Vector< T >::length(), String::length(), Vector< T >::start(), Utf16::TrailSurrogate(), Isolate::unicode_cache(), and UnicodeCache::utf8_decoder().
Referenced by Utf8SymbolKey::IsMatch(), BASE_EMBEDDED< Visitor >::Lookup(), and TestParserSync().
|
inline |
Definition at line 2480 of file objects-inl.h.
References ConsString::cast(), String::length(), and ConsString::second().
Referenced by Heap::AllocateConsString(), Heap::AllocateSubString(), RegExpImpl::AtomExecRaw(), String::IsAsciiRepresentationUnderneath(), String::IsTwoByteRepresentationUnderneath(), v8::internal::RUNTIME_FUNCTION(), and String::TryFlatten().
Definition at line 7199 of file objects.cc.
References v8::internal::CompareChars(), String::GetFlatContent(), String::FlatContent::IsTwoByte(), Vector< T >::length(), String::length(), Vector< T >::start(), and String::FlatContent::ToUC16Vector().
Referenced by TwoByteSymbolKey::IsMatch().
|
inline |
Definition at line 296 of file objects-inl.h.
References Map::instance_type(), v8::internal::kStringEncodingMask, v8::internal::kTwoByteStringTag, and HeapObject::map().
Referenced by Heap::AllocateSubString(), Script::HasValidSource(), String::IsTwoByteRepresentationUnderneath(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 318 of file objects-inl.h.
References ASSERT, String::GetUnderlying(), Map::instance_type(), String::IsFlat(), String::IsTwoByteRepresentation(), v8::internal::kAsciiStringTag, v8::internal::kIsIndirectStringMask, v8::internal::kIsIndirectStringTag, v8::internal::kStringEncodingMask, v8::internal::kTwoByteStringTag, HeapObject::map(), and v8::internal::STATIC_ASSERT().
|
inline |
Referenced by Heap::AllocateConsString(), Heap::AllocateSubString(), Logger::NameBuffer::AppendString(), SymbolKey::AsObject(), RegExpImpl::AtomExecRaw(), ConsString::ConsStringGet(), ConsString::ConsStringReadBlock(), ConsString::ConsStringReadBlockIntoBuffer(), JSReceiver::constructor_name(), SharedFunctionInfo::DebugName(), V8HeapExplorer::GetConstructorName(), String::GetFlatContent(), JSObject::GetLocalElementKeys(), StringsStorage::GetName(), v8::internal::GetScriptLineNumberSafe(), String::IsAsciiEqualTo(), String::IsEqualTo(), String::IsFlat(), TwoCharHashTableKey::IsMatch(), Object::IsStringObjectWithCharacterAt(), String::IsTwoByteEqualTo(), JSObject::JSObjectShortPrint(), LoadIC::Load(), String::MakeExternal(), NativeRegExpMacroAssembler::Match(), Heap::PrepareForCompare(), StringStream::PrintName(), String::PrintOn(), StringStream::PrintPrototype(), StringStream::PrintUsingMap(), StringStream::Put(), String::ReadBlock(), String::ReadBlockIntoBuffer(), ToBooleanStub::Types::Record(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetPropertyForResult(), NewSpace::ShrinkStringAtAllocationBoundary(), SharedFunctionInfo::SourceCodePrint(), String::StringShortPrint(), v8::internal::StringToDouble(), v8::internal::StringToInt(), String::SubString(), HConstant::ToBoolean(), CallICBase::TryUpdateExtraICState(), v8::internal::Utf8LengthHelper(), and String::WriteToFlat().
bool LooksValid | ( | ) |
Definition at line 6185 of file objects.cc.
Referenced by SharedFunctionInfo::SourceCodePrint(), and String::StringShortPrint().
bool MakeExternal | ( | v8::String::ExternalStringResource * | resource | ) |
Definition at line 924 of file objects.cc.
References HeapObject::address(), ASSERT, ExternalTwoByteString::cast(), Heap::CreateFillerObjectAt(), String::ExternalStringResource::data(), FLAG_enable_slow_asserts, HeapObject::GetHeap(), MemoryChunk::IncrementLiveBytesFromMutator(), String::IsAsciiRepresentation(), Marking::IsBlack(), ExternalString::kShortSize, ExternalString::kSize, String::ExternalStringResource::length(), String::length(), Marking::MarkBitFrom(), HeapObject::set_map_no_write_barrier(), HeapObject::Size(), and String::WriteToFlat().
bool MakeExternal | ( | v8::String::ExternalAsciiStringResource * | resource | ) |
Definition at line 979 of file objects.cc.
References HeapObject::address(), ASSERT, ExternalAsciiString::cast(), Heap::CreateFillerObjectAt(), String::ExternalAsciiStringResource::data(), FLAG_enable_slow_asserts, HeapObject::GetHeap(), MemoryChunk::IncrementLiveBytesFromMutator(), Marking::IsBlack(), ExternalString::kShortSize, ExternalString::kSize, String::ExternalAsciiStringResource::length(), String::length(), Marking::MarkBitFrom(), HeapObject::set_map_no_write_barrier(), HeapObject::Size(), and String::WriteToFlat().
bool MarkAsUndetectable | ( | ) |
Definition at line 7146 of file objects.cc.
References HeapObject::GetHeap(), HeapObject::map(), and HeapObject::set_map().
|
inlinestatic |
Definition at line 7421 of file objects.h.
References ASSERT, v8::internal::kMaxAsciiCharCode, v8::internal::kMaxAsciiCharCodeU, and v8::internal::kUintptrAllBitsSet.
Referenced by Heap::AllocateStringFromUtf8().
|
inlinestatic |
Definition at line 7447 of file objects.h.
References v8::internal::kMaxAsciiCharCodeU.
void PrintOn | ( | FILE * | out | ) |
Definition at line 7371 of file objects.cc.
References String::length().
|
static |
Definition at line 6740 of file objects.cc.
References ASSERT, String::length(), and String::ReadBlockBuffer::remaining.
Referenced by ConsString::ConsStringReadBlock(), and SlicedString::SlicedStringReadBlock().
|
static |
Definition at line 6755 of file objects.cc.
References ASSERT, String::ReadBlockIntoBuffer(), String::ReadBlockBuffer::remaining, and String::ReadBlockBuffer::util_buffer.
|
inlinestaticprotected |
Definition at line 6539 of file objects.cc.
References ASSERT, SeqAsciiString::cast(), SeqTwoByteString::cast(), ConsString::cast(), SlicedString::cast(), ExternalAsciiString::cast(), ExternalTwoByteString::cast(), ConsString::ConsStringReadBlock(), ExternalAsciiString::ExternalAsciiStringReadBlock(), String::IsAsciiRepresentation(), v8::internal::kConsStringTag, v8::internal::kExternalStringTag, v8::internal::kSeqStringTag, v8::internal::kSlicedStringTag, String::length(), v8::internal::NULL, String::ReadBlockBuffer::remaining, SeqAsciiString::SeqAsciiStringReadBlock(), SeqTwoByteString::SeqTwoByteStringReadBlockIntoBuffer(), SlicedString::SlicedStringReadBlock(), UNREACHABLE, and String::ReadBlockBuffer::util_buffer.
|
staticprotected |
Definition at line 6690 of file objects.cc.
References ASSERT, SeqAsciiString::cast(), SeqTwoByteString::cast(), ConsString::cast(), SlicedString::cast(), ExternalAsciiString::cast(), ExternalTwoByteString::cast(), ConsString::ConsStringReadBlockIntoBuffer(), String::IsAsciiRepresentation(), v8::internal::kConsStringTag, v8::internal::kExternalStringTag, v8::internal::kSeqStringTag, v8::internal::kSlicedStringTag, String::length(), SeqAsciiString::SeqAsciiStringReadBlockIntoBuffer(), SeqTwoByteString::SeqTwoByteStringReadBlockIntoBuffer(), SlicedString::SlicedStringReadBlockIntoBuffer(), and UNREACHABLE.
Referenced by ConsString::ConsStringReadBlockIntoBuffer(), String::ReadBlock(), and SlicedString::SlicedStringReadBlockIntoBuffer().
|
inline |
Definition at line 2470 of file objects-inl.h.
References ASSERT, SeqAsciiString::cast(), SeqTwoByteString::cast(), FixedArrayBase::length(), SeqAsciiString::SeqAsciiStringSet(), and SeqTwoByteString::SeqTwoByteStringSet().
Referenced by Heap::AllocateInternalSymbol(), Heap::LookupSingleCharacterStringFromCode(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 2411 of file objects-inl.h.
References v8::internal::kIntSize, and WRITE_UINT32_FIELD.
Referenced by Heap::AllocateAsciiSymbol(), Heap::AllocateConsString(), Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), Heap::AllocateInternalSymbol(), Heap::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), Heap::AllocateSubString(), Heap::AllocateTwoByteSymbol(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Referenced by Heap::AllocateAsciiSymbol(), Heap::AllocateConsString(), Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), Heap::AllocateInternalSymbol(), Heap::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), Heap::AllocateSubString(), and Heap::AllocateTwoByteSymbol().
STATIC_CHECK | ( | (kArrayIndexLengthBits > 0) | ) |
STATIC_CHECK | ( | ) |
STATIC_CHECK | ( | IS_POWER_OF_TWO(kMaxCachedArrayIndexLength+1) | ) |
void StringShortPrint | ( | StringStream * | accumulator | ) |
Definition at line 1024 of file objects.cc.
References StringStream::Add(), CharacterStream::GetNext(), String::kMaxShortPrintLength, String::length(), String::LooksValid(), StringStream::Put(), and InputBuffer< Reader, Input, kSize >::Reset().
Referenced by HeapObject::HeapObjectShortPrint().
MaybeObject * SubString | ( | int | from, |
int | to, | ||
PretenureFlag | pretenure = NOT_TENURED |
||
) |
Definition at line 7363 of file objects.cc.
References Heap::AllocateSubString(), HeapObject::GetHeap(), and String::length().
SmartArrayPointer< char > ToCString | ( | AllowNullsFlag | allow_nulls, |
RobustnessFlag | robustness_flag, | ||
int | offset, | ||
int | length, | ||
int * | length_output = 0 |
||
) |
Definition at line 6233 of file objects.cc.
References v8::internal::DISALLOW_NULLS, Utf8::Encode(), HeapObject::GetHeap(), CharacterStream::GetNext(), CharacterStream::has_more(), Heap::isolate(), v8::internal::kMaxInt, Utf16::kNoPreviousCharacter, Utf8::Length(), v8::internal::NULL, Isolate::objects_string_input_buffer(), CharacterStream::Rewind(), v8::internal::ROBUST_STRING_TRAVERSAL, and CharacterStream::Seek().
Referenced by Logger::ApiIndexedPropertyAccess(), Logger::ApiNamedPropertyAccess(), Logger::ApiNamedSecurityCheck(), Logger::ApiObjectAccess(), Logger::CallbackEvent(), Logger::CodeCreateEvent(), StringsStorage::GetName(), Deoptimizer::GetOutputInfo(), Logger::GetterCallbackEvent(), RegExpImpl::IrregexpExec(), Parser::ParseProgram(), JavaScriptFrame::PrintTop(), Logger::SetterCallbackEvent(), and TestParserSync().
SmartArrayPointer< char > ToCString | ( | AllowNullsFlag | allow_nulls = DISALLOW_NULLS , |
RobustnessFlag | robustness_flag = FAST_STRING_TRAVERSAL , |
||
int * | length_output = 0 |
||
) |
Definition at line 6285 of file objects.cc.
References ToCString().
SmartArrayPointer< uc16 > ToWideCString | ( | RobustnessFlag | robustness_flag = FAST_STRING_TRAVERSAL | ) |
Definition at line 6318 of file objects.cc.
References HeapObject::GetHeap(), CharacterStream::GetNext(), CharacterStream::has_more(), Heap::isolate(), Isolate::objects_string_input_buffer(), and v8::internal::ROBUST_STRING_TRAVERSAL.
|
inline |
Definition at line 2428 of file objects-inl.h.
References ConsString::cast(), ConsString::first(), and String::IsFlat().
Referenced by JSObject::DefineAccessor(), Heap::PrepareForCompare(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 2436 of file objects-inl.h.
References String::cast().
Referenced by Heap::AllocateSubString(), and SymbolKey::AsObject().
|
static |
Definition at line 6891 of file objects.cc.
References ASSERT, SeqAsciiString::cast(), SeqTwoByteString::cast(), ConsString::cast(), SlicedString::cast(), ExternalAsciiString::cast(), ExternalTwoByteString::cast(), v8::internal::CopyChars(), ConsString::first(), ExternalTwoByteString::GetChars(), v8::internal::kAsciiStringTag, v8::internal::kConsStringTag, v8::internal::kExternalStringTag, v8::internal::kSeqStringTag, v8::internal::kSlicedStringTag, v8::internal::kTwoByteStringTag, String::length(), SlicedString::offset(), SlicedString::parent(), and ConsString::second().
Referenced by Heap::AllocateConsString(), Heap::AllocateSubString(), Logger::NameBuffer::AppendString(), ExternalizeStringExtension::Externalize(), String::MakeExternal(), v8::internal::RUNTIME_FUNCTION(), THREADED_TEST(), String::Write(), String::WriteAscii(), and String::WriteUtf8().
|
static |
Definition at line 7361 of file objects.h.
Referenced by StringHasher::MakeArrayIndexHash().
|
static |
|
static |
|
static |
Definition at line 7354 of file objects.h.
Referenced by StringHasher::MakeArrayIndexHash().
|
static |
|
static |
Definition at line 7374 of file objects.h.
Referenced by StringHasher::MakeArrayIndexHash().
|
static |
Definition at line 7379 of file objects.h.
Referenced by Heap::AllocateConsString(), Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), Heap::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), Heap::AllocateSubString(), and check().
|
static |
|
static |
Definition at line 7345 of file objects.h.
Referenced by TwoCharHashTableKey::TwoCharHashTableKey().
|
static |
|
static |
Definition at line 7341 of file objects.h.
Referenced by StringHasher::GetHashField(), Utf8SymbolKey::Hash(), SequentialSymbolKey< char >::Hash(), SubStringAsciiSymbolKey::Hash(), and StringHasher::MakeArrayIndexHash().
|
static |
Definition at line 7337 of file objects.h.
Referenced by String::AsArrayIndex(), StringHasher::GetHashField(), and StringHasher::MakeArrayIndexHash().
|
static |
|
static |
Definition at line 7324 of file objects.h.
Referenced by String::ComputeArrayIndex(), StringHasher::MakeArrayIndexHash(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7327 of file objects.h.
Referenced by CharacterRange::AddCaseEquivalents(), BoyerMooreLookahead::BoyerMooreLookahead(), RegExpNode::EmitQuickCheck(), TextNode::FillInBMInfo(), TextNode::FilterASCII(), TextNode::GetQuickCheckDetails(), TextNode::GetSuccessorOfOmnivorousTextNode(), Heap::LookupSingleCharacterStringFromCode(), QuickCheckDetails::Rationalize(), v8::internal::RUNTIME_FUNCTION(), and TEST().
|
static |
Definition at line 7328 of file objects.h.
Referenced by Logger::NameBuffer::AppendString().
|
static |
Definition at line 7349 of file objects.h.
Referenced by StringHasher::MakeArrayIndexHash().
|
static |
Definition at line 7390 of file objects.h.
Referenced by StringHasher::GetHashField(), and StringHasher::has_trivial_hash().
|
static |
Definition at line 7386 of file objects.h.
Referenced by Heap::AllocateConsString(), Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), HStringLength::CalculateInferredType(), ReplacementStringBuilder::IncrementCharacterCount(), HStringLength::InferRange(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7393 of file objects.h.
Referenced by String::StringShortPrint().
|
static |
Definition at line 7329 of file objects.h.
Referenced by DispatchTableConstructor::AddInverse(), v8::internal::AddRange(), DispatchTable::AddRange(), BoyerMooreLookahead::BoyerMooreLookahead(), RegExpNode::EmitQuickCheck(), TextNode::GetQuickCheckDetails(), TextNode::GetSuccessorOfOmnivorousTextNode(), HStringCharCodeAt::InferRange(), CharacterRange::Negate(), and QuickCheckDetails::Rationalize().
|
static |