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

#include <kernel_to_il.h>

Public Member Functions

intptr_t min () const
 
intptr_t max () const
 
Fragment branch_instructions () const
 
bool is_bounds_checked () const
 
bool is_leaf () const
 

Static Public Member Functions

static SwitchRange Leaf (intptr_t index, Fragment branch_instructions, bool is_bounds_checked=false)
 
static SwitchRange Branch (intptr_t min, intptr_t max, Fragment branch_instructions)
 

Detailed Description

Definition at line 960 of file kernel_to_il.h.

Member Function Documentation

◆ Branch()

static SwitchRange dart::kernel::SwitchRange::Branch ( intptr_t  min,
intptr_t  max,
Fragment  branch_instructions 
)
inlinestatic

Definition at line 968 of file kernel_to_il.h.

970 {
971 return SwitchRange(min, max, branch_instructions,
972 /*is_bounds_checked=*/false);
973 }
Fragment branch_instructions() const
Definition: kernel_to_il.h:979
intptr_t max() const
Definition: kernel_to_il.h:977
intptr_t min() const
Definition: kernel_to_il.h:976

◆ branch_instructions()

Fragment dart::kernel::SwitchRange::branch_instructions ( ) const
inline

Definition at line 979 of file kernel_to_il.h.

979{ return branch_instructions_; }

◆ is_bounds_checked()

bool dart::kernel::SwitchRange::is_bounds_checked ( ) const
inline

Definition at line 982 of file kernel_to_il.h.

982{ return is_bounds_checked_; }

◆ is_leaf()

bool dart::kernel::SwitchRange::is_leaf ( ) const
inline

Definition at line 983 of file kernel_to_il.h.

983{ return min_ == max_; }

◆ Leaf()

static SwitchRange dart::kernel::SwitchRange::Leaf ( intptr_t  index,
Fragment  branch_instructions,
bool  is_bounds_checked = false 
)
inlinestatic

Definition at line 962 of file kernel_to_il.h.

964 {
965 return SwitchRange(index, index, branch_instructions, is_bounds_checked);
966 }
bool is_bounds_checked() const
Definition: kernel_to_il.h:982

◆ max()

intptr_t dart::kernel::SwitchRange::max ( ) const
inline

Definition at line 977 of file kernel_to_il.h.

977{ return max_; }

◆ min()

intptr_t dart::kernel::SwitchRange::min ( ) const
inline

Definition at line 976 of file kernel_to_il.h.

976{ return min_; }

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