Lines Matching refs:cage_base

122 StringShape::StringShape(const String str, PtrComprCageBase cage_base)
123 : type_(str.map(cage_base, kAcquireLoad).instance_type()) {
312 uint32_t type = map(cage_base).instance_type();
317 uint32_t type = map(cage_base).instance_type();
519 base::Vector<const Char> str, PtrComprCageBase cage_base,
540 int32_t type = string.map(cage_base).instance_type();
554 ExternalOneByteString::cast(string).GetChars(cage_base) +
559 ExternalTwoByteString::cast(string).GetChars(cage_base) +
567 string = slicedString.parent(cage_base);
576 slice_offset, str, cage_base,
582 string = ThinString::cast(string).actual(cage_base);
595 PtrComprCageBase cage_base,
609 if (!segment.IsEqualToImpl<EqualityType::kNoLengthCheck>(sub_str, cage_base,
626 const Char* String::GetChars(PtrComprCageBase cage_base,
629 return StringShape(*this, cage_base).IsExternal()
630 ? CharTraits<Char>::ExternalString::cast(*this).GetChars(cage_base)
636 PtrComprCageBase cage_base, const DisallowGarbageCollection& no_gc,
638 return StringShape(*this, cage_base).IsExternal()
639 ? CharTraits<Char>::ExternalString::cast(*this).GetChars(cage_base)
648 PtrComprCageBase cage_base(isolate);
650 StringShape shape(s, cage_base);
662 s = cons.first(cage_base);
663 shape = StringShape(s, cage_base);
667 s = ThinString::cast(s).actual(cage_base);
684 PtrComprCageBase cage_base, const DisallowGarbageCollection& no_gc,
690 switch (StringShape{string, cage_base}.representation_and_encoding_tag()) {
701 ExternalOneByteString::cast(string).GetChars(cage_base) + offset,
705 ExternalTwoByteString::cast(string).GetChars(cage_base) + offset,
779 PtrComprCageBase cage_base = GetPtrComprCageBase(*this);
781 cage_base, no_gc, *this, 0, length(), access_guard);
821 int index, PtrComprCageBase cage_base,
823 return GetImpl(index, cage_base, access_guard);
827 int index, PtrComprCageBase cage_base,
835 Type str, int index, PtrComprCageBase cage_base, \
837 return str.Get(index, cage_base, access_guard); \
842 String str, int index, PtrComprCageBase cage_base,
850 *this, index, cage_base, access_guard);
864 bool String::IsFlat(PtrComprCageBase cage_base) const {
865 if (!StringShape(*this, cage_base).IsCons()) return true;
866 return ConsString::cast(*this).IsFlat(cage_base);
871 bool String::IsShared(PtrComprCageBase cage_base) const {
872 const bool result = StringShape(*this, cage_base).IsShared();
906 PtrComprCageBase cage_base = GetPtrComprCageBase(string);
909 StringShape(string, cage_base).representation_and_encoding_tag();
927 ExternalOneByteString::cast(string).GetChars(cage_base) +
934 ExternalTwoByteString::cast(string).GetChars(cage_base) +
943 string = slicedString.parent(cage_base);
953 string = ThinString::cast(string).actual(cage_base);
985 int index, PtrComprCageBase cage_base,
1048 int index, PtrComprCageBase cage_base,
1093 bool ConsString::IsFlat(PtrComprCageBase cage_base) const {
1094 return second(cage_base).length() == 0;
1098 return TaggedField<HeapObject, kActualOffset>::load(cage_base, *this);
1164 return reinterpret_cast<Resource*>(resource_as_address(cage_base));
1198 PtrComprCageBase cage_base) const {
1200 auto res = resource(cage_base);
1222 int index, PtrComprCageBase cage_base,
1226 return GetChars(cage_base)[index];
1236 return reinterpret_cast<Resource*>(resource_as_address(cage_base));
1270 PtrComprCageBase cage_base) const {
1272 auto res = resource(cage_base);
1294 int index, PtrComprCageBase cage_base,
1298 return GetChars(cage_base)[index];