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

Static Public Member Functions

static const char * Name ()
 
static bool ReportStats ()
 
static bool IsMatch (const Object &a, const Object &b)
 
static bool IsMatch (const FunctionName &name, const Object &obj)
 
static uword Hash (const Object &key)
 
static uword Hash (const FunctionName &name)
 

Detailed Description

Definition at line 3243 of file object.cc.

Member Function Documentation

◆ Hash() [1/2]

static uword dart::ClassFunctionsTraits::Hash ( const FunctionName name)
inlinestatic

Definition at line 3260 of file object.cc.

3260{ return name.Hash(); }
const char *const name

◆ Hash() [2/2]

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

Definition at line 3257 of file object.cc.

3257 {
3258 return String::HashRawSymbol(Function::Cast(key).name());
3259 }
static uword HashRawSymbol(const StringPtr symbol)
Definition: object.h:10247

◆ IsMatch() [1/2]

static bool dart::ClassFunctionsTraits::IsMatch ( const FunctionName name,
const Object obj 
)
inlinestatic

Definition at line 3254 of file object.cc.

3254 {
3255 return name.Matches(Function::Cast(obj));
3256 }

◆ IsMatch() [2/2]

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

Definition at line 3249 of file object.cc.

3249 {
3250 ASSERT(a.IsFunction() && b.IsFunction());
3251 // Function objects are always canonical.
3252 return a.ptr() == b.ptr();
3253 }
#define ASSERT(E)
static bool b
struct MyStruct a[10]

◆ Name()

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

Definition at line 3245 of file object.cc.

3245{ return "ClassFunctionsTraits"; }

◆ ReportStats()

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

Definition at line 3246 of file object.cc.

3246{ return false; }

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