Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 3293 of file object.cc.

Member Function Documentation

◆ Hash() [1/2]

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

Definition at line 3310 of file object.cc.

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

◆ Hash() [2/2]

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

Definition at line 3307 of file object.cc.

3307 {
3308 return String::HashRawSymbol(Function::Cast(key).name());
3309 }
static uword HashRawSymbol(const StringPtr symbol)
Definition object.h:10226

◆ IsMatch() [1/2]

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

Definition at line 3304 of file object.cc.

3304 {
3305 return name.Matches(Function::Cast(obj));
3306 }

◆ IsMatch() [2/2]

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

Definition at line 3299 of file object.cc.

3299 {
3300 ASSERT(a.IsFunction() && b.IsFunction());
3301 // Function objects are always canonical.
3302 return a.ptr() == b.ptr();
3303 }
#define ASSERT(E)
static bool b
struct MyStruct a[10]

◆ Name()

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

Definition at line 3295 of file object.cc.

3295{ return "ClassFunctionsTraits"; }

◆ ReportStats()

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

Definition at line 3296 of file object.cc.

3296{ return false; }

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