#include "src/base/strings.h"
#include "src/execution/isolate-inl.h"
#include "src/objects/fixed-array-inl.h"
#include "src/objects/js-array-inl.h"
#include "src/strings/string-builder-inl.h"
namespace v8 {
namespace internal {
template <typename sinkchar>
void StringBuilderConcatHelper(Tagged<String> special, sinkchar* sink,
Tagged<FixedArray> fixed_array,
int array_length) { … }
template void StringBuilderConcatHelper<uint8_t>(Tagged<String> special,
uint8_t* sink,
Tagged<FixedArray> fixed_array,
int array_length);
template void StringBuilderConcatHelper<base::uc16>(
Tagged<String> special, base::uc16* sink, Tagged<FixedArray> fixed_array,
int array_length);
int StringBuilderConcatLength(int special_length,
Tagged<FixedArray> fixed_array, int array_length,
bool* one_byte) { … }
FixedArrayBuilder::FixedArrayBuilder(Isolate* isolate, int initial_capacity)
: … { … }
FixedArrayBuilder::FixedArrayBuilder(DirectHandle<FixedArray> backing_store)
: … { … }
FixedArrayBuilder::FixedArrayBuilder(Isolate* isolate)
: … { … }
FixedArrayBuilder FixedArrayBuilder::Lazy(Isolate* isolate) { … }
bool FixedArrayBuilder::HasCapacity(int elements) { … }
void FixedArrayBuilder::EnsureCapacity(Isolate* isolate, int elements) { … }
void FixedArrayBuilder::Add(Tagged<Object> value) { … }
void FixedArrayBuilder::Add(Tagged<Smi> value) { … }
int FixedArrayBuilder::capacity() { … }
ReplacementStringBuilder::ReplacementStringBuilder(Heap* heap,
DirectHandle<String> subject,
int estimated_part_count)
: … { … }
void ReplacementStringBuilder::EnsureCapacity(int elements) { … }
void ReplacementStringBuilder::AddString(DirectHandle<String> string) { … }
MaybeDirectHandle<String> ReplacementStringBuilder::ToString() { … }
void ReplacementStringBuilder::AddElement(DirectHandle<Object> element) { … }
IncrementalStringBuilder::IncrementalStringBuilder(Isolate* isolate)
: … { … }
int IncrementalStringBuilder::Length() const { … }
bool IncrementalStringBuilder::HasValidCurrentIndex() const { … }
void IncrementalStringBuilder::Accumulate(DirectHandle<String> new_part) { … }
void IncrementalStringBuilder::Extend() { … }
MaybeDirectHandle<String> IncrementalStringBuilder::Finish() { … }
bool IncrementalStringBuilder::CanAppendByCopy(DirectHandle<String> string) { … }
void IncrementalStringBuilder::AppendStringByCopy(DirectHandle<String> string) { … }
void IncrementalStringBuilder::AppendString(DirectHandle<String> string) { … }
}
}