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

Detailed Description

Definition at line 309 of file canonical_tables.h.

Member Function Documentation

◆ Hash() [1/2]

static uword dart::CanonicalTypeArgumentsTraits::Hash ( const CanonicalTypeArgumentsKey key)
inlinestatic

Definition at line 329 of file canonical_tables.h.

329{ return key.Hash(); }

◆ Hash() [2/2]

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

Definition at line 325 of file canonical_tables.h.

325 {
326 ASSERT(key.IsTypeArguments());
327 return TypeArguments::Cast(key).Hash();
328 }
#define ASSERT(E)

◆ IsMatch() [1/2]

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

Definition at line 321 of file canonical_tables.h.

321 {
322 ASSERT(b.IsTypeArguments());
323 return a.Matches(TypeArguments::Cast(b));
324 }
static bool b
struct MyStruct a[10]

◆ IsMatch() [2/2]

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

Definition at line 315 of file canonical_tables.h.

315 {
316 ASSERT(a.IsTypeArguments() && b.IsTypeArguments());
317 const TypeArguments& arg1 = TypeArguments::Cast(a);
318 const TypeArguments& arg2 = TypeArguments::Cast(b);
319 return arg1.Equals(arg2) && (arg1.Hash() == arg2.Hash());
320 }

◆ Name()

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

Definition at line 311 of file canonical_tables.h.

311{ return "CanonicalTypeArgumentsTraits"; }

◆ NewKey()

static ObjectPtr dart::CanonicalTypeArgumentsTraits::NewKey ( const CanonicalTypeArgumentsKey obj)
inlinestatic

Definition at line 330 of file canonical_tables.h.

330 {
331 return obj.key_.ptr();
332 }

◆ ReportStats()

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

Definition at line 312 of file canonical_tables.h.

312{ return false; }

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