Lines Matching refs:this

2 // Use of this source code is governed by a BSD-style license that can be
407 // VS 2017 on official builds gives this spurious warning:
480 if (other == *this) return true;
481 if (this->IsInternalizedString() && other.IsInternalizedString()) {
498 DCHECK(!SharedStringAccessGuardIfNeeded::IsNeeded(*this));
505 DCHECK(!SharedStringAccessGuardIfNeeded::IsNeeded(*this));
506 return IsEqualToImpl<kEqType>(str, GetPtrComprCageBase(*this),
537 String string = *this;
598 // this is a prefix check.
628 DCHECK(!SharedStringAccessGuardIfNeeded::IsNeeded(*this));
629 return StringShape(*this, cage_base).IsExternal()
630 ? CharTraits<Char>::ExternalString::cast(*this).GetChars(cage_base)
631 : CharTraits<Char>::String::cast(*this).GetChars(no_gc);
638 return StringShape(*this, cage_base).IsExternal()
639 ? CharTraits<Char>::ExternalString::cast(*this).GetChars(cage_base)
640 : CharTraits<Char>::String::cast(*this).GetChars(no_gc,
716 // Check that this method is called only from the main thread.
723 DCHECK_IMPLIES(GetIsolateFromHeapObject(*this, &isolate) && !InSharedHeap(),
752 // If you crashed here, it means something changed the character data of this
779 PtrComprCageBase cage_base = GetPtrComprCageBase(*this);
781 cage_base, no_gc, *this, 0, length(), access_guard);
794 // A relaxed write is sufficient here, because at this point the string
805 DCHECK(!SharedStringAccessGuardIfNeeded::IsNeeded(*this));
806 return GetImpl(index, GetPtrComprCageBase(*this),
848 return StringShape(*this)
850 *this, index, cage_base, access_guard);
855 DCHECK(StringShape(*this).IsSequential());
858 ? SeqOneByteString::cast(*this).SeqOneByteStringSet(index, value)
859 : SeqTwoByteString::cast(*this).SeqTwoByteStringSet(index, value);
862 bool String::IsFlat() const { return IsFlat(GetPtrComprCageBase(*this)); }
865 if (!StringShape(*this, cage_base).IsCons()) return true;
866 return ConsString::cast(*this).IsFlat(cage_base);
869 bool String::IsShared() const { return IsShared(GetPtrComprCageBase(*this)); }
872 const bool result = StringShape(*this, cage_base).IsShared();
881 DCHECK(StringShape(*this).IsIndirect());
887 return TaggedField<String, kUnderlyingOffset>::load(*this);
979 DCHECK(!SharedStringAccessGuardIfNeeded::IsNeeded(*this));
980 return Get(index, GetPtrComprCageBase(*this),
1016 DCHECK(!SharedStringAccessGuardIfNeeded::IsNeeded(*this));
1035 DCHECK(!SharedStringAccessGuardIfNeeded::IsNeeded(*this));
1086 return TaggedField<Object, kFirstOffset>::load(*this);
1090 return RELAXED_READ_FIELD(*this, kSecondOffset);
1098 return TaggedField<HeapObject, kActualOffset>::load(cage_base, *this);
1115 Isolate* isolate = GetIsolateForSandbox(*this);
1124 ExternalOneByteString::cast(*this).update_data_cache(isolate);
1126 ExternalTwoByteString::cast(*this).update_data_cache(isolate);
1185 isolate->heap()->UpdateExternalString(*this, 0, new_payload);
1204 // avoid this call.
1208 // Check that this method is called only from the main thread if we have an
1212 DCHECK_IMPLIES(GetIsolateFromHeapObject(*this, &isolate),
1257 isolate->heap()->UpdateExternalString(*this, 0, new_payload);
1276 // avoid this call.
1280 // Check that this method is called only from the main thread if we have an
1284 DCHECK_IMPLIES(GetIsolateFromHeapObject(*this, &isolate),
1303 return GetChars(GetPtrComprCageBase(*this)) + start;
1370 String::VisitFlat(this, string, offset, access_guard_);
1375 String::VisitFlat(this, string, offset, access_guard_);
1385 String::VisitFlat(this, string, 0, access_guard_);
1456 return *this;