Home
last modified time | relevance | path

Searched refs:StringShape (Results 1 – 15 of 15) sorted by relevance

/third_party/node/deps/v8/src/objects/
Dstring-inl.h116 StringShape::StringShape(const String str) in TQ_OBJECT_CONSTRUCTORS_IMPL()
122 StringShape::StringShape(const String str, PtrComprCageBase cage_base) in StringShape() function
128 StringShape::StringShape(Map map) : type_(map.instance_type()) { in StringShape() function
133 StringShape::StringShape(InstanceType t) : type_(static_cast<uint32_t>(t)) { in StringShape() function
138 bool StringShape::IsInternalized() const { in IsInternalized()
145 bool StringShape::IsCons() const { in IsCons()
149 bool StringShape::IsThin() const { in IsThin()
153 bool StringShape::IsSliced() const { in IsSliced()
157 bool StringShape::IsIndirect() const { in IsIndirect()
161 bool StringShape::IsDirect() const { return !IsIndirect(); } in IsDirect()
[all …]
Dstring.cc157 Map ComputeThinStringMap(IsolateT* isolate, StringShape from_string_shape, in ComputeThinStringMap()
230 StringShape initial_shape(initial_type); in MigrateStringMapUnderLockIfNeeded()
309 StringShape initial_shape(initial_map); in MakeThin()
324 [=](IsolateT* isolate, String string, StringShape initial_shape) { in MakeThin()
392 bool has_pointers = StringShape(*this).IsIndirect(); in MakeExternal()
476 bool has_pointers = StringShape(*this).IsIndirect(); in MakeExternal()
540 if (StringShape(*this).IsExternal()) { in SupportsExternalization()
560 StringShape shape(*this); in PrefixForDebugPrint()
590 StringShape shape(*this); in SuffixForDebugPrint()
754 StringShape shape(string, cage_base); in SlowGetFlatContent()
[all …]
Dobjects-inl.h240 return StringShape(String::cast(*this).map(cage_base)).IsCons(); in DEF_GETTER()
245 return StringShape(String::cast(*this).map(cage_base)).IsThin(); in DEF_GETTER()
250 return StringShape(String::cast(*this).map(cage_base)).IsSliced(); in DEF_GETTER()
255 return StringShape(String::cast(*this).map(cage_base)).IsSequential(); in DEF_GETTER()
260 return StringShape(String::cast(*this).map(cage_base)).IsSequential() && in DEF_GETTER()
266 return StringShape(String::cast(*this).map(cage_base)).IsSequential() && in DEF_GETTER()
272 return StringShape(String::cast(*this).map(cage_base)).IsExternal() && in DEF_GETTER()
278 return StringShape(String::cast(*this).map(cage_base)).IsExternal() && in DEF_GETTER()
Dstring.h44 class StringShape {
46 V8_INLINE explicit StringShape(const String s);
47 V8_INLINE explicit StringShape(const String s, PtrComprCageBase cage_base);
48 V8_INLINE explicit StringShape(Map s);
49 V8_INLINE explicit StringShape(InstanceType t);
Dscript-inl.h169 if (!StringShape(src_str).IsExternal()) return true; in HasValidSource()
Dstring-table.cc384 StringShape shape(*string_); in PrepareForInsertion()
Dobjects.cc4666 StringShape(separator).IsSequentialOneByte(); in WriteFixedArrayToFlat()
4669 CHECK(StringShape(separator).IsSequentialOneByte()); in WriteFixedArrayToFlat()
4744 DCHECK(StringShape(dest).IsSequentialOneByte() || in ArrayJoinConcatToSequentialString()
4745 StringShape(dest).IsSequentialTwoByte()); in ArrayJoinConcatToSequentialString()
4747 if (StringShape(dest).IsSequentialOneByte()) { in ArrayJoinConcatToSequentialString()
4752 DCHECK(StringShape(dest).IsSequentialTwoByte()); in ArrayJoinConcatToSequentialString()
/third_party/node/deps/v8/src/regexp/
Dregexp-macro-assembler.cc389 if (StringShape(subject_ptr).IsCons()) { in Match()
392 } else if (StringShape(subject_ptr).IsSliced()) { in Match()
397 if (StringShape(subject_ptr).IsThin()) { in Match()
/third_party/node/deps/v8/src/logging/
Dlog-utils.cc215 if (StringShape(str).IsExternal()) os << 'e'; in AppendSymbolNameDetails()
216 if (StringShape(str).IsInternalized()) os << '#'; in AppendSymbolNameDetails()
/third_party/node/deps/v8/src/json/
Djson-parser.cc227 if (StringShape(*source_, cage_base).IsExternal()) { in JsonParser()
312 if (StringShape(*source_).IsExternal()) { in ~JsonParser()
/third_party/node/deps/v8/tools/debug_helper/
Dget-object-properties.cc100 return i::StringShape(type) in GetTypedObjectForString()
/third_party/node/deps/v8/src/api/
Dapi.cc5737 return i::StringShape(*str).IsExternal(); in IsExternal()
5742 return i::StringShape(*str).IsExternalTwoByte(); in IsExternalTwoByte()
5747 return i::StringShape(*str).IsExternalOneByte(); in IsExternalOneByte()
5760 if (i::StringShape(str).IsExternalTwoByte()) { in VerifyExternalStringResource()
5780 if (i::StringShape(str).IsExternalOneByte()) { in VerifyExternalStringResourceBase()
5784 } else if (i::StringShape(str).IsExternalTwoByte()) { in VerifyExternalStringResourceBase()
5806 if (i::StringShape(str).IsExternalTwoByte()) { in GetExternalStringResourceSlow()
5849 if (i::StringShape(str).IsExternalOneByte() || in GetExternalStringResourceBaseSlow()
5850 i::StringShape(str).IsExternalTwoByte()) { in GetExternalStringResourceBaseSlow()
5864 if (i::StringShape(str).IsExternalOneByte()) { in GetExternalOneByteStringResource()
[all …]
/third_party/node/deps/v8/src/heap/
Dfactory-base.cc652 DCHECK_IMPLIES(!StringShape(map).IsShared(), in NewRawStringWithMap()
Dsetup-heap-internal.cc406 if (StringShape(entry.type).IsCons()) map.mark_unstable(); in CreateInitialMaps()
Dfactory.cc931 if (StringShape(instance_type).IsShared()) { in ComputeSharingStrategyForString()