Lines Matching defs:const
46 V8_INLINE explicit StringShape(const String s);
47 V8_INLINE explicit StringShape(const String s, PtrComprCageBase cage_base);
50 V8_INLINE bool IsSequential() const;
51 V8_INLINE bool IsExternal() const;
52 V8_INLINE bool IsCons() const;
53 V8_INLINE bool IsSliced() const;
54 V8_INLINE bool IsThin() const;
55 V8_INLINE bool IsDirect() const;
56 V8_INLINE bool IsIndirect() const;
57 V8_INLINE bool IsUncachedExternal() const;
58 V8_INLINE bool IsExternalOneByte() const;
59 V8_INLINE bool IsExternalTwoByte() const;
60 V8_INLINE bool IsSequentialOneByte() const;
61 V8_INLINE bool IsSequentialTwoByte() const;
62 V8_INLINE bool IsInternalized() const;
63 V8_INLINE bool IsShared() const;
64 V8_INLINE bool CanMigrateInParallel() const;
65 V8_INLINE StringRepresentationTag representation_tag() const;
66 V8_INLINE uint32_t encoding_tag() const;
67 V8_INLINE uint32_t representation_and_encoding_tag() const;
68 V8_INLINE uint32_t representation_encoding_and_shared_tag() const;
70 inline uint32_t type() const { return type_; }
72 inline bool valid() const { return valid_; }
122 bool IsFlat() const { return state_ != NON_FLAT; }
124 bool IsOneByte() const { return state_ == ONE_BYTE; }
126 bool IsTwoByte() const { return state_ == TWO_BYTE; }
130 base::Vector<const uint8_t> ToOneByteVector() const {
132 return base::Vector<const uint8_t>(onebyte_start, length_);
136 base::Vector<const base::uc16> ToUC16Vector() const {
138 return base::Vector<const base::uc16>(twobyte_start, length_);
141 base::uc16 Get(int i) const {
148 bool UsesSameString(const FlatContent& other) const {
163 int length() const { return length_; }
169 inline FlatContent(const uint8_t* start, int length,
170 const DisallowGarbageCollection& no_gc);
171 inline FlatContent(const base::uc16* start, int length,
172 const DisallowGarbageCollection& no_gc);
173 explicit FlatContent(const DisallowGarbageCollection& no_gc)
177 const uint8_t* onebyte_start;
178 const base::uc16* twobyte_start;
182 const DisallowGarbageCollection& no_gc_;
187 inline uint32_t ComputeChecksum() const;
201 V8_INLINE base::Vector<const Char> GetCharVector(
202 const DisallowGarbageCollection& no_gc);
208 inline const Char* GetChars(PtrComprCageBase cage_base,
209 const DisallowGarbageCollection& no_gc) const;
213 inline const Char* GetChars(
214 PtrComprCageBase cage_base, const DisallowGarbageCollection& no_gc,
215 const SharedStringAccessGuardIfNeeded& access_guard) const;
219 const byte* AddressOfCharacterAt(int start_index,
220 const DisallowGarbageCollection& no_gc);
246 V8_INLINE uint16_t Get(int index) const;
247 V8_INLINE uint16_t Get(int index, Isolate* isolate) const;
248 V8_INLINE uint16_t Get(int index, LocalIsolate* local_isolate) const;
254 const SharedStringAccessGuardIfNeeded& access_guard) const;
287 GetFlatContent(const DisallowGarbageCollection& no_gc);
289 GetFlatContent(const DisallowGarbageCollection& no_gc,
290 const SharedStringAccessGuardIfNeeded&);
294 inline String GetUnderlying() const;
360 inline bool Equals(String other) const;
372 inline bool IsEqualTo(base::Vector<const Char> str, Isolate* isolate) const;
380 inline bool IsEqualTo(base::Vector<const Char> str) const;
388 inline bool IsEqualTo(base::Vector<const Char> str,
389 LocalIsolate* isolate) const;
391 V8_EXPORT_PRIVATE bool HasOneBytePrefix(base::Vector<const char> str);
392 V8_EXPORT_PRIVATE inline bool IsOneByteEqualTo(base::Vector<const char> str);
456 const char* PrefixForDebugPrint() const;
457 const char* SuffixForDebugPrint() const;
469 inline bool IsFlat() const;
470 inline bool IsFlat(PtrComprCageBase cage_base) const;
472 inline bool IsShared() const;
473 inline bool IsShared(PtrComprCageBase cage_base) const;
476 static const int32_t kMaxOneByteCharCode = unibrow::Latin1::kMaxChar;
477 static const uint32_t kMaxOneByteCharCodeU = unibrow::Latin1::kMaxChar;
478 static const int kMaxUtf16CodeUnit = 0xffff;
479 static const uint32_t kMaxUtf16CodeUnitU = kMaxUtf16CodeUnit;
480 static const base::uc32 kMaxCodePoint = 0x10ffff;
487 static const int kMaxLength = v8::String::kMaxLength;
508 static const int kMaxHashCalcLength = 16383;
511 static const int kMaxShortPrintLength = 1024;
520 const SharedStringAccessGuardIfNeeded&);
522 static inline bool IsAscii(const char* chars, int length) {
523 return IsAscii(reinterpret_cast<const uint8_t*>(chars), length);
526 static inline bool IsAscii(const uint8_t* chars, int length) {
530 static inline int NonOneByteStart(const base::uc16* chars, int length) {
532 const uint16_t* start = chars;
533 const uint16_t* limit = chars + length;
547 const uintptr_t non_one_byte_mask = kUintptrAllBitsSet / 0xFFFF * 0xFF00;
549 const uintptr_t non_one_byte_mask = kUintptrAllBitsSet / 0xFFFF * 0x00FF;
552 if (*reinterpret_cast<const uintptr_t*>(chars) & non_one_byte_mask) {
570 static inline bool IsOneByte(const base::uc16* chars, int length) {
583 const SharedStringAccessGuardIfNeeded& access_guard);
608 const SharedStringAccessGuardIfNeeded& access_guard) const;
613 base::Vector<const Char> str, PtrComprCageBase cage_base,
614 const SharedStringAccessGuardIfNeeded& access_guard) const;
619 ConsString string, int slice_offset, base::Vector<const Char> str,
621 const SharedStringAccessGuardIfNeeded& access_guard);
628 const DisallowGarbageCollection& no_gc,
630 const SharedStringAccessGuardIfNeeded&);
632 SlowGetFlatContent(const DisallowGarbageCollection& no_gc,
633 const SharedStringAccessGuardIfNeeded&);
640 V8_EXPORT_PRIVATE bool SlowEquals(String other) const;
642 String other, const SharedStringAccessGuardIfNeeded&) const;
654 ComputeAndSetHash(const SharedStringAccessGuardIfNeeded&);
667 const SharedStringAccessGuardIfNeeded&);
671 const SharedStringAccessGuardIfNeeded&);
676 inline SubStringRange(String string, const DisallowGarbageCollection& no_gc,
686 const DisallowGarbageCollection& no_gc_;
714 static const bool kHasOneByteEncoding = true;
720 inline uint8_t Get(int index) const;
722 const SharedStringAccessGuardIfNeeded& access_guard) const;
724 inline void SeqOneByteStringSetChars(int index, const uint8_t* string,
728 inline Address GetCharsAddress() const;
733 inline uint8_t* GetChars(const DisallowGarbageCollection& no_gc) const;
737 const DisallowGarbageCollection& no_gc,
738 const SharedStringAccessGuardIfNeeded& access_guard) const;
745 static const int kMaxCharsSize = kMaxLength;
746 static const int kMaxSize = OBJECT_POINTER_ALIGN(kMaxCharsSize + kHeaderSize);
764 static const bool kHasOneByteEncoding = false;
770 const SharedStringAccessGuardIfNeeded& access_guard) const;
774 inline Address GetCharsAddress() const;
779 inline base::uc16* GetChars(const DisallowGarbageCollection& no_gc) const;
783 const DisallowGarbageCollection& no_gc,
784 const SharedStringAccessGuardIfNeeded& access_guard) const;
791 static const int kMaxCharsSize = kMaxLength * 2;
792 static const int kMaxSize = OBJECT_POINTER_ALIGN(kMaxCharsSize + kHeaderSize);
818 inline Object unchecked_first() const;
822 inline Object unchecked_second() const;
824 V8_INLINE bool IsFlat(PtrComprCageBase cage_base) const;
829 const SharedStringAccessGuardIfNeeded& access_guard) const;
832 static const int kMinLength = 13;
854 const SharedStringAccessGuardIfNeeded& access_guard) const;
880 const SharedStringAccessGuardIfNeeded& access_guard) const;
883 static const int kMinLength = 13;
907 static const int kUncachedSize =
913 inline bool is_uncached() const;
915 int ExternalPayloadSize() const;
927 static const int kSizeOfAllExternalStrings = kHeaderSize;
943 static const bool kHasOneByteEncoding = true;
948 DECL_GETTER(resource, const Resource*)
952 inline void SetResource(Isolate* isolate, const Resource* buffer);
955 inline void set_resource(Isolate* isolate, const Resource* buffer);
963 inline const uint8_t* GetChars(PtrComprCageBase cage_base) const;
967 const SharedStringAccessGuardIfNeeded& access_guard) const;
976 // The underlying resource as a non-const pointer.
986 static const bool kHasOneByteEncoding = false;
991 DECL_GETTER(resource, const Resource*)
995 inline void SetResource(Isolate* isolate, const Resource* buffer);
998 inline void set_resource(Isolate* isolate, const Resource* buffer);
1006 inline const uint16_t* GetChars(PtrComprCageBase cage_base) const;
1011 const SharedStringAccessGuardIfNeeded& access_guard) const;
1014 inline const uint16_t* ExternalTwoByteStringGetData(unsigned start);
1023 // The underlying resource as a non-const pointer.
1035 inline base::uc32 Get(int index) const;
1037 inline Char Get(int index) const;
1038 int length() const { return length_; }
1043 int const length_;
1044 const void* start_;
1056 ConsStringIterator(const ConsStringIterator&) = delete;
1057 ConsStringIterator& operator=(const ConsStringIterator&) = delete;
1072 static const int kStackSize = 32;
1074 static const int kDepthMask = kStackSize - 1;