Lines Matching defs:string

33 #include "src/objects/string.h"
343 uint32_t ComputeRawHashField(IsolateT* isolate, String string) {
345 string.EnsureHash(SharedStringAccessGuardIfNeeded(isolate));
346 return string.raw_hash_field();
351 Isolate* isolate, Handle<String> string,
353 : StringTableKey(ComputeRawHashField(isolate, *string), string->length()),
354 string_(string) {
358 DCHECK(string->IsInternalizedString());
362 LocalIsolate* isolate, Handle<String> string,
364 : StringTableKey(ComputeRawHashField(isolate, *string), string->length()),
365 string_(string) {
369 DCHECK(string->IsInternalizedString());
373 bool StringTableInsertionKey::IsMatch(IsolateT* isolate, String string) {
375 return string_->SlowEquals(string, SharedStringAccessGuardIfNeeded(isolate));
377 template bool StringTableInsertionKey::IsMatch(Isolate* isolate, String string);
379 String string);
391 void PostProcessExternalString(ExternalString string, Isolate* isolate) {
393 uint32_t index = string.GetResourceRefForDeserialization();
396 string.AllocateExternalPointerEntries(isolate);
397 string.set_address_as_resource(isolate, address);
398 isolate->heap()->UpdateExternalString(string, 0,
399 string.ExternalPayloadSize());
400 isolate->heap()->RegisterExternalString(string);
480 String string = String::cast(raw_obj);
481 string.set_raw_hash_field(String::kEmptyHashField);
493 // Canonicalize the internalized string. If it already exists in the
494 // string table, set the string to point to the existing one and patch
495 // the deserialized string handle to point to the existing one.
497 // explicit internalized string bytecode. Also, the new thin string
499 Handle<String> string = Handle<String>::cast(obj);
502 isolate(), string,
595 // a thin string, then it should also update the backref handle.
640 // When sharing a string table, all in-place internalizable and internalized