Lines Matching defs:string

19 #include "string.h"
51 // Sets string count in the allocation code path to ensure it is guarded by a CAS.
60 ObjPtr<String> string = ObjPtr<String>::DownCast(obj);
61 string->SetCount(count_);
62 DCHECK(!string->IsCompressed() || kUseStringCompression);
69 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS.
80 ObjPtr<String> string = ObjPtr<String>::DownCast(obj);
81 string->SetCount(count_);
82 DCHECK(!string->IsCompressed() || kUseStringCompression);
85 if (string->IsCompressed()) {
86 uint8_t* valueCompressed = string->GetValueCompressed();
91 uint16_t* value = string->GetValue();
105 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS.
116 ObjPtr<String> string = ObjPtr<String>::DownCast(obj);
117 string->SetCount(count_);
122 string->GetValueCompressed()[i] = static_cast<uint8_t>(src[i]);
125 memcpy(string->GetValue(), src, length * sizeof(uint16_t));
135 // Sets string count and value in the allocation code path to ensure it is guarded by a CAS.
147 ObjPtr<String> string = ObjPtr<String>::DownCast(obj);
148 string->SetCount(count_);
153 memcpy(string->GetValueCompressed(), src, length * sizeof(uint8_t));
158 string->GetValueCompressed()[i] = static_cast<uint8_t>(src[i]);
161 memcpy(string->GetValue(), src, length * sizeof(uint16_t));
268 String* string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor);
269 return string;
287 inline String* String::AllocFromString(Thread* self, int32_t string_length, Handle<String> string,
290 ((string->IsCompressed()) ? true : String::AllASCII<uint16_t>(string->GetValue() + offset,
293 SetStringCountAndValueVisitorFromString visitor(length_with_flag, string, offset);