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

Classes

struct  Pair
 

Public Types

typedef DefinitionKey
 
typedef intptr_t Value
 

Static Public Member Functions

static Key KeyOf (Pair kv)
 
static Value ValueOf (Pair kv)
 
static uword Hash (Key key)
 
static bool IsKeyEqual (Pair kv, Key key)
 

Detailed Description

Definition at line 18 of file write_barrier_elimination.cc.

Member Typedef Documentation

◆ Key

Definition at line 20 of file write_barrier_elimination.cc.

◆ Value

Definition at line 21 of file write_barrier_elimination.cc.

Member Function Documentation

◆ Hash()

static uword dart::DefinitionIndexPairTrait::Hash ( Key  key)
inlinestatic

Definition at line 32 of file write_barrier_elimination.cc.

32 {
33 return Utils::WordHash(reinterpret_cast<intptr_t>(key));
34 }
static uint32_t WordHash(intptr_t key)
Definition: utils.cc:217

◆ IsKeyEqual()

static bool dart::DefinitionIndexPairTrait::IsKeyEqual ( Pair  kv,
Key  key 
)
inlinestatic

Definition at line 35 of file write_barrier_elimination.cc.

35 {
36 return kv.definition == key;
37 }

◆ KeyOf()

static Key dart::DefinitionIndexPairTrait::KeyOf ( Pair  kv)
inlinestatic

Definition at line 30 of file write_barrier_elimination.cc.

30{ return kv.definition; }

◆ ValueOf()

static Value dart::DefinitionIndexPairTrait::ValueOf ( Pair  kv)
inlinestatic

Definition at line 31 of file write_barrier_elimination.cc.

31{ return kv.index; }

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