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

#include <slot.h>

Public Member Functions

 FieldGuardState ()
 
 FieldGuardState (const Field &field)
 
intptr_t guarded_cid () const
 
bool is_nullable () const
 

Detailed Description

Definition at line 409 of file slot.h.

Constructor & Destructor Documentation

◆ FieldGuardState() [1/2]

dart::FieldGuardState::FieldGuardState ( )
inline

Definition at line 411 of file slot.h.

411: state_(0) {}

◆ FieldGuardState() [2/2]

dart::FieldGuardState::FieldGuardState ( const Field field)
explicit

Definition at line 344 of file slot.cc.

345 : state_(GuardedCidBits::encode(field.guarded_cid()) |
346 IsNullableBit::encode(field.is_nullable())) {
349}
static constexpr int bitsize()
Definition: bitfield.h:162
static constexpr S encode(T value)
Definition: bitfield.h:165
#define ASSERT(E)

Member Function Documentation

◆ guarded_cid()

intptr_t dart::FieldGuardState::guarded_cid ( ) const
inline

Definition at line 414 of file slot.h.

414{ return GuardedCidBits::decode(state_); }
static constexpr T decode(S value)
Definition: bitfield.h:171

◆ is_nullable()

bool dart::FieldGuardState::is_nullable ( ) const
inline

Definition at line 415 of file slot.h.

415{ return IsNullableBit::decode(state_); }

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