Lines Matching defs:string
51 #include "src/strings/string-hasher.h"
215 void Heap::RegisterExternalString(String string) {
216 DCHECK(string.IsExternalString());
217 DCHECK(!string.IsThinString());
218 external_string_table_.AddString(string);
221 void Heap::FinalizeExternalString(String string) {
222 DCHECK(string.IsExternalString());
223 ExternalString ext_string = ExternalString::cast(string);
226 Page* page = Page::FromHeapObject(string);
489 void Heap::ExternalStringTable::AddString(String string) {
490 DCHECK(string.IsExternalString());
491 DCHECK(!Contains(string));
493 if (InYoungGeneration(string)) {
494 young_strings_.push_back(string);
496 old_strings_.push_back(string);
546 // Compute the size of the number string cache based on the max newspace size.
547 // The number string cache has a minimum size based on twice the initial cache
553 // There is a string and a number per entry so the length is twice the number