Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
dart::ClassMapTraits Class Reference

Static Public Member Functions

static bool ReportStats ()
 
static const char * Name ()
 
static bool IsMatch (const Object &a, const Object &b)
 
static uword Hash (const Object &obj)
 

Detailed Description

Definition at line 476 of file isolate_reload.cc.

Member Function Documentation

◆ Hash()

static uword dart::ClassMapTraits::Hash ( const Object obj)
inlinestatic

Definition at line 488 of file isolate_reload.cc.

488 {
489 uword class_name_hash = String::HashRawSymbol(Class::Cast(obj).Name());
490 LibraryPtr raw_library = Class::Cast(obj).library();
491 if (raw_library == Library::null()) {
492 return class_name_hash;
493 }
494 return FinalizeHash(
495 CombineHashes(class_name_hash,
496 String::Hash(Library::Handle(raw_library).private_key())),
497 /* hashbits= */ 30);
498 }
static const char * Name()
static ObjectPtr null()
Definition object.h:433
static Object & Handle()
Definition object.h:407
static uword HashRawSymbol(const StringPtr symbol)
Definition object.h:10226
uword Hash() const
Definition object.h:10195
uint32_t CombineHashes(uint32_t hash, uint32_t other_hash)
Definition hash.h:12
uintptr_t uword
Definition globals.h:501
uint32_t FinalizeHash(uint32_t hash, intptr_t hashbits=kBitsPerInt32)
Definition hash.h:20

◆ IsMatch()

static bool dart::ClassMapTraits::IsMatch ( const Object a,
const Object b 
)
inlinestatic

Definition at line 481 of file isolate_reload.cc.

481 {
482 if (!a.IsClass() || !b.IsClass()) {
483 return false;
484 }
485 return ProgramReloadContext::IsSameClass(Class::Cast(a), Class::Cast(b));
486 }
static bool IsSameClass(const Class &a, const Class &b)
static bool b
struct MyStruct a[10]

◆ Name()

static const char * dart::ClassMapTraits::Name ( )
inlinestatic

Definition at line 479 of file isolate_reload.cc.

479{ return "ClassMapTraits"; }

◆ ReportStats()

static bool dart::ClassMapTraits::ReportStats ( )
inlinestatic

Definition at line 478 of file isolate_reload.cc.

478{ return false; }

The documentation for this class was generated from the following file: