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

#include <deopt_instructions.h>

Inheritance diagram for dart::DeoptTable:
dart::AllStatic

Classes

class  FlagsField
 
class  ReasonField
 

Static Public Member Functions

static intptr_t SizeFor (intptr_t length)
 
static void SetEntry (const Array &table, intptr_t index, const Smi &offset, const TypedData &info, const Smi &reason_and_flags)
 
static intptr_t GetLength (const Array &table)
 
static void GetEntry (const Array &table, intptr_t index, Smi *offset, TypedData *info, Smi *reason_and_flags)
 
static SmiPtr EncodeReasonAndFlags (ICData::DeoptReasonId reason, uint32_t flags)
 

Detailed Description

Definition at line 561 of file deopt_instructions.h.

Member Function Documentation

◆ EncodeReasonAndFlags()

static SmiPtr dart::DeoptTable::EncodeReasonAndFlags ( ICData::DeoptReasonId  reason,
uint32_t  flags 
)
inlinestatic

Definition at line 584 of file deopt_instructions.h.

585 {
587 }
static constexpr intptr_t encode(ICData::DeoptReasonId value)
Definition: bitfield.h:165
static SmiPtr New(intptr_t value)
Definition: object.h:10006
FlutterSemanticsFlag flags

◆ GetEntry()

void dart::DeoptTable::GetEntry ( const Array table,
intptr_t  index,
Smi offset,
TypedData info,
Smi reason_and_flags 
)
static

Definition at line 1338 of file deopt_instructions.cc.

1342 {
1343 intptr_t i = index * kEntrySize;
1344 *offset ^= table.At(i);
1345 *info ^= table.At(i + 1);
1346 *reason ^= table.At(i + 2);
1347}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
SI F table(const skcms_Curve *curve, F v)
SeparatedVector2 offset

◆ GetLength()

intptr_t dart::DeoptTable::GetLength ( const Array table)
static

Definition at line 1333 of file deopt_instructions.cc.

1333 {
1334 ASSERT((table.Length() % kEntrySize) == 0);
1335 return table.Length() / kEntrySize;
1336}
#define ASSERT(E)

◆ SetEntry()

void dart::DeoptTable::SetEntry ( const Array table,
intptr_t  index,
const Smi offset,
const TypedData info,
const Smi reason_and_flags 
)
static

Definition at line 1321 of file deopt_instructions.cc.

1325 {
1326 ASSERT((table.Length() % kEntrySize) == 0);
1327 intptr_t i = index * kEntrySize;
1328 table.SetAt(i, offset);
1329 table.SetAt(i + 1, info);
1330 table.SetAt(i + 2, reason);
1331}

◆ SizeFor()

intptr_t dart::DeoptTable::SizeFor ( intptr_t  length)
static

Definition at line 1317 of file deopt_instructions.cc.

1317 {
1318 return length * kEntrySize;
1319}
size_t length

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