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

Detailed Description

Definition at line 267 of file canonical_tables.h.

Member Function Documentation

◆ Hash() [1/2]

static uword dart::CanonicalTypeParameterTraits::Hash ( const CanonicalTypeParameterKey key)
inlinestatic

Definition at line 287 of file canonical_tables.h.

287{ return key.Hash(); }

◆ Hash() [2/2]

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

Definition at line 283 of file canonical_tables.h.

283 {
284 ASSERT(key.IsTypeParameter());
285 return TypeParameter::Cast(key).Hash();
286 }
#define ASSERT(E)

◆ IsMatch() [1/2]

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

Definition at line 279 of file canonical_tables.h.

279 {
280 ASSERT(b.IsTypeParameter());
281 return a.Matches(TypeParameter::Cast(b));
282 }
static bool b
struct MyStruct a[10]

◆ IsMatch() [2/2]

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

Definition at line 273 of file canonical_tables.h.

273 {
274 ASSERT(a.IsTypeParameter() && b.IsTypeParameter());
275 const TypeParameter& arg1 = TypeParameter::Cast(a);
276 const TypeParameter& arg2 = TypeParameter::Cast(b);
277 return arg1.Equals(arg2) && (arg1.Hash() == arg2.Hash());
278 }

◆ Name()

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

Definition at line 269 of file canonical_tables.h.

269{ return "CanonicalTypeParameterTraits"; }

◆ NewKey()

static ObjectPtr dart::CanonicalTypeParameterTraits::NewKey ( const CanonicalTypeParameterKey obj)
inlinestatic

Definition at line 288 of file canonical_tables.h.

288 {
289 return obj.key_.ptr();
290 }

◆ ReportStats()

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

Definition at line 270 of file canonical_tables.h.

270{ return false; }

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