Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart::CanonicalRecordTypeTraits Class Reference

#include <canonical_tables.h>

Static Public Member Functions

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

Detailed Description

Definition at line 228 of file canonical_tables.h.

Member Function Documentation

◆ Hash() [1/2]

static uword dart::CanonicalRecordTypeTraits::Hash ( const CanonicalRecordTypeKey key)
inlinestatic

Definition at line 248 of file canonical_tables.h.

248{ return key.Hash(); }

◆ Hash() [2/2]

static uword dart::CanonicalRecordTypeTraits::Hash ( const Object key)
inlinestatic

Definition at line 244 of file canonical_tables.h.

244 {
245 ASSERT(key.IsRecordType());
246 return RecordType::Cast(key).Hash();
247 }
#define ASSERT(E)

◆ IsMatch() [1/2]

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

Definition at line 240 of file canonical_tables.h.

240 {
241 ASSERT(b.IsRecordType());
242 return a.Matches(RecordType::Cast(b));
243 }
static bool b
struct MyStruct a[10]

◆ IsMatch() [2/2]

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

Definition at line 234 of file canonical_tables.h.

234 {
235 ASSERT(a.IsRecordType() && b.IsRecordType());
236 const RecordType& arg1 = RecordType::Cast(a);
237 const RecordType& arg2 = RecordType::Cast(b);
238 return arg1.Equals(arg2) && (arg1.Hash() == arg2.Hash());
239 }

◆ Name()

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

Definition at line 230 of file canonical_tables.h.

230{ return "CanonicalRecordTypeTraits"; }

◆ NewKey()

static ObjectPtr dart::CanonicalRecordTypeTraits::NewKey ( const CanonicalRecordTypeKey obj)
inlinestatic

Definition at line 249 of file canonical_tables.h.

249 {
250 return obj.key_.ptr();
251 }

◆ ReportStats()

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

Definition at line 231 of file canonical_tables.h.

231{ return false; }

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