Flutter Engine
The Flutter Engine
|
#include <object.h>
Classes | |
struct | KeyLocation |
Public Types | |
enum | Header { kMetadataIndex = 0 , kHeaderSize } |
enum | Entry { kSentinelIndex = 0 , kInstantiatorTypeArgsIndex = kSentinelIndex , kFunctionTypeArgsIndex , kInstantiatedTypeArgsIndex , kEntrySize } |
using | NumOccupiedBits = BitField< intptr_t, intptr_t, 0, compiler::target::kSmiBits - compiler::target::kBitsPerWordLog2 > |
using | EntryCountLog2Bits = BitField< intptr_t, intptr_t, NumOccupiedBits::kNextBit, compiler::target::kBitsPerWordLog2 > |
Public Member Functions | |
Cache (Zone *zone, const TypeArguments &source) | |
Cache (Zone *zone, const Array &array) | |
intptr_t | NumOccupied () const |
KeyLocation | FindKeyOrUnused (const TypeArguments &instantiator_tav, const TypeArguments &function_tav) const |
bool | IsOccupied (intptr_t entry) const |
TypeArgumentsPtr | Retrieve (intptr_t entry) const |
KeyLocation | AddEntry (intptr_t entry, const TypeArguments &instantiator_tav, const TypeArguments &function_tav, const TypeArguments &instantiated_tav) const |
bool | IsLinear () const |
bool | IsHash () const |
intptr_t | NumEntries () const |
Public Member Functions inherited from dart::ValueObject | |
ValueObject () | |
~ValueObject () | |
Static Public Member Functions | |
static SmiPtr | Sentinel () |
static const Array & | EmptyStorage () |
Static Public Attributes | |
static constexpr intptr_t | kMaxLinearCacheEntries = 10 |
static constexpr intptr_t | kMaxLinearCacheSize |
Friends | |
class | TypeArguments |
using dart::TypeArguments::Cache::EntryCountLog2Bits = BitField<intptr_t, intptr_t, NumOccupiedBits::kNextBit, compiler::target::kBitsPerWordLog2> |
using dart::TypeArguments::Cache::NumOccupiedBits = BitField<intptr_t, intptr_t, 0, compiler::target::kSmiBits - compiler::target::kBitsPerWordLog2> |
Enumerator | |
---|---|
kSentinelIndex | |
kInstantiatorTypeArgsIndex | |
kFunctionTypeArgsIndex | |
kInstantiatedTypeArgsIndex | |
kEntrySize |
Definition at line 8833 of file object.h.
Enumerator | |
---|---|
kMetadataIndex | |
kHeaderSize |
Definition at line 8805 of file object.h.
dart::TypeArguments::Cache::Cache | ( | Zone * | zone, |
const TypeArguments & | source | ||
) |
Definition at line 6977 of file object.cc.
Definition at line 6987 of file object.cc.
TypeArguments::Cache::KeyLocation dart::TypeArguments::Cache::AddEntry | ( | intptr_t | entry, |
const TypeArguments & | instantiator_tav, | ||
const TypeArguments & | function_tav, | ||
const TypeArguments & | instantiated_tav | ||
) | const |
Definition at line 7114 of file object.cc.
|
inlinestatic |
|
inline |
|
inline |
bool dart::TypeArguments::Cache::IsOccupied | ( | intptr_t | entry | ) | const |
|
inline |
|
inline |
TypeArgumentsPtr dart::TypeArguments::Cache::Retrieve | ( | intptr_t | entry | ) | const |
|
static |
|
friend |
|
staticconstexpr |
|
staticconstexpr |