Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
dart::CanonicalInstanceTraits 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 CanonicalInstanceKey &a, const Object &b)
 
static uword Hash (const Object &key)
 
static uword Hash (const CanonicalInstanceKey &key)
 
static ObjectPtr NewKey (const CanonicalInstanceKey &obj)
 

Detailed Description

Definition at line 403 of file canonical_tables.h.

Member Function Documentation

◆ Hash() [1/2]

uword dart::CanonicalInstanceTraits::Hash ( const CanonicalInstanceKey key)
static

Definition at line 114 of file canonical_tables.cc.

114 {
115 return key.Hash();
116}

◆ Hash() [2/2]

uword dart::CanonicalInstanceTraits::Hash ( const Object key)
static

Definition at line 108 of file canonical_tables.cc.

108 {
109 ASSERT(!(key.IsString() || key.IsAbstractType()));
110 ASSERT(key.IsInstance());
111 return Instance::Cast(key).CanonicalizeHash();
112}
#define ASSERT(E)

◆ IsMatch() [1/2]

bool dart::CanonicalInstanceTraits::IsMatch ( const CanonicalInstanceKey a,
const Object b 
)
static

Definition at line 103 of file canonical_tables.cc.

104 {
105 return a.Matches(Instance::Cast(b));
106}
static bool b
struct MyStruct a[10]

◆ IsMatch() [2/2]

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

Definition at line 97 of file canonical_tables.cc.

97 {
98 ASSERT(!(a.IsString() || a.IsAbstractType()));
99 ASSERT(!(b.IsString() || b.IsAbstractType()));
100 return a.ptr() == b.ptr();
101}

◆ Name()

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

Definition at line 405 of file canonical_tables.h.

405{ return "CanonicalInstanceTraits"; }

◆ NewKey()

ObjectPtr dart::CanonicalInstanceTraits::NewKey ( const CanonicalInstanceKey obj)
static

Definition at line 118 of file canonical_tables.cc.

118 {
119 return obj.key_.ptr();
120}

◆ ReportStats()

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

Definition at line 406 of file canonical_tables.h.

406{ return false; }

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