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

Detailed Description

Definition at line 189 of file canonical_tables.h.

Member Function Documentation

◆ Hash() [1/2]

static uword dart::CanonicalFunctionTypeTraits::Hash ( const CanonicalFunctionTypeKey key)
inlinestatic

Definition at line 209 of file canonical_tables.h.

209{ return key.Hash(); }

◆ Hash() [2/2]

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

Definition at line 205 of file canonical_tables.h.

205 {
206 ASSERT(key.IsFunctionType());
207 return FunctionType::Cast(key).Hash();
208 }
#define ASSERT(E)

◆ IsMatch() [1/2]

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

Definition at line 201 of file canonical_tables.h.

201 {
202 ASSERT(b.IsFunctionType());
203 return a.Matches(FunctionType::Cast(b));
204 }
static bool b
struct MyStruct a[10]

◆ IsMatch() [2/2]

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

Definition at line 195 of file canonical_tables.h.

195 {
196 ASSERT(a.IsFunctionType() && b.IsFunctionType());
197 const FunctionType& arg1 = FunctionType::Cast(a);
198 const FunctionType& arg2 = FunctionType::Cast(b);
199 return arg1.Equals(arg2) && (arg1.Hash() == arg2.Hash());
200 }

◆ Name()

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

Definition at line 191 of file canonical_tables.h.

191{ return "CanonicalFunctionTypeTraits"; }

◆ NewKey()

static ObjectPtr dart::CanonicalFunctionTypeTraits::NewKey ( const CanonicalFunctionTypeKey obj)
inlinestatic

Definition at line 210 of file canonical_tables.h.

210 {
211 return obj.key_.ptr();
212 }

◆ ReportStats()

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

Definition at line 192 of file canonical_tables.h.

192{ return false; }

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