Lines Matching defs:string

99 #include "src/strings/string-stream.h"
2860 bool Heap::ExternalStringTable::Contains(String string) {
2862 if (young_strings_[i] == string) return true;
2865 if (old_strings_[i] == string) return true;
2870 void Heap::UpdateExternalString(String string, size_t old_payload,
2872 DCHECK(string.IsExternalString());
2875 Page* page = Page::FromHeapObject(string);
2896 // Unreachable external string can be finalized.
2897 String string = String::cast(obj);
2898 if (!string.IsExternalString(cage_base)) {
2899 // Original external string has been internalized.
2900 DCHECK(string.IsThinString(cage_base));
2903 heap->FinalizeExternalString(string);
2913 // Filtering Thin strings out of the external string table.
2994 // String got promoted. Move it to the old string list.
3156 // All external strings are listed in the external string table.
3301 // Flush the number to string cache.
3455 // We can skip iterating the string table, it doesn't point to any fixed
4056 // When transitioning a string to ThinString,
4063 // In-place internalization does not change a string's fields.
4065 // When sharing the string table, the setting and re-setting of maps below
4874 // - Serialization, since the string table is custom serialized.
4877 // - If the string table is shared and this is not the shared heap,
4885 // Do not visit for serialization, since the external string table will
5322 void Heap::AddToRingBuffer(const char* string) {
5324 std::min(strlen(string), kTraceRingBufferSize - ring_buffer_end_);
5325 memcpy(trace_ring_buffer_ + ring_buffer_end_, string, first_part);
5327 if (first_part < strlen(string)) {
5329 size_t second_part = strlen(string) - first_part;
5330 memcpy(trace_ring_buffer_, string + first_part, second_part);
5369 // TODO(leszeks): Include the string table in both current and peak usage.
6710 // The real external string is already in one of these vectors and was or
6732 // The real external string is already in one of these vectors and was or