Home
last modified time | relevance | path

Searched refs:new_string (Results 1 – 2 of 2) sorted by relevance

/art/runtime/
Dstring_builder_append.cc49 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint8_t* data) in RemainingSpace() argument
51 DCHECK(new_string->IsCompressed()); in RemainingSpace()
52 DCHECK_GE(new_string->GetLength(), data - new_string->GetValueCompressed()); in RemainingSpace()
53 return new_string->GetLength() - (data - new_string->GetValueCompressed()); in RemainingSpace()
56 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint16_t* data) in RemainingSpace() argument
58 DCHECK(!new_string->IsCompressed()); in RemainingSpace()
59 DCHECK_GE(new_string->GetLength(), data - new_string->GetValue()); in RemainingSpace()
60 return new_string->GetLength() - (data - new_string->GetValue()); in RemainingSpace()
64 static CharType* AppendLiteral(ObjPtr<mirror::String> new_string,
69 static CharType* AppendString(ObjPtr<mirror::String> new_string,
[all …]
/art/runtime/mirror/
Dstring.cc133 ObjPtr<String> new_string = Alloc(self, length_with_flag, allocator_type, visitor); in AllocFromStrings() local
134 if (UNLIKELY(new_string == nullptr)) { in AllocFromStrings()
138 uint8_t* new_value = new_string->GetValueCompressed(); in AllocFromStrings()
142 uint16_t* new_value = new_string->GetValue(); in AllocFromStrings()
158 return new_string; in AllocFromStrings()