Skip to main content

BytecodeGraphParser

Struct BytecodeGraphParser 

Source
pub struct BytecodeGraphParser<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_imm_input_bc_inst_bool(&mut self, inst: *mut BcInst, value: bool)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_imm_input_bc_inst_i32(&mut self, inst: *mut BcInst, value: i32)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_imm_input_bc_inst_u32(&mut self, inst: *mut BcInst, value: u32)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_jump_input(&mut self, inst: *mut BcInst, target: i32)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_producer(&mut self, reg: Reg, op: BcOp)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_proto_input(&mut self, inst: *mut BcInst, idx: u32)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_successor( &mut self, from_op: BcOp, to_op: BcOp, kind: BcBlockEdgeKind, )

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_to_phi(&mut self, op: BcOp, proj: BcOp) -> BcOp

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_upval_input(&mut self, inst: *mut BcInst, idx: u32)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_vm_const_input(&mut self, inst: *mut BcInst, idx: u32)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn add_vm_reg_input(&mut self, inst: *mut BcInst, reg: Reg)

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn apply_call( &mut self, producers: &mut BlockProducers, call_op: BcOp, target_reg: Reg, nresults: i32, )

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn bytecode_graph_parser_bytecode_graph_parser( func: &'a mut BcFunction, ) -> Self

Source

pub fn new(func: &'a mut BcFunction) -> Self

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn find_forward_producer_in_range_bc_op_bc_op_bc_op_reg_unordered_set_bc_op_bc_op_hash( &mut self, range_start: BcOp, range_end: BcOp, start_op: BcOp, reg: Reg, visited: &mut HashSet<BcOp, BcOpHash>, ) -> Option<BcOp>

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn find_forward_producer_in_range_bc_op_bc_op_bc_op_reg( &mut self, range_start: BcOp, range_end: BcOp, start_op: BcOp, reg: Reg, ) -> Option<BcOp>

Source§

impl<'a> BytecodeGraphParser<'a>

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn find_producer_bc_op_reg(&mut self, block: BcOp, reg: Reg) -> Option<BcOp>

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn find_producers_up_to_top(&mut self, block: BcOp, reg: Reg) -> Vec<BcOp>

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn has_producer_before_bc_op_bc_op_bc_op_reg_bool_unordered_set_bc_op_bc_op_hash( &mut self, range_start: BcOp, range_end: BcOp, start_op: BcOp, reg: Reg, check_cached: bool, visited: &mut HashSet<BcOp, BcOpHash>, ) -> bool

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn has_producer_before_bc_op_bc_op_bc_op_reg( &mut self, range_start: BcOp, range_end: BcOp, start_op: BcOp, reg: Reg, ) -> bool

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn is_jump_trampoline( &self, pc: u32, code: *const Instruction, codesize: u32, ) -> bool

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn make_block(&mut self, pc: u32) -> BcOp

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn rebuild_blocks( &mut self, code: *const Instruction, codesize: u32, ) -> usize

Source§

impl<'a> BytecodeGraphParser<'a>

Source

pub fn rebuild_graph( &mut self, code: *const Instruction, codesize: u32, lines: &mut Vec<u32>, pcs: &mut Vec<u32>, ) -> bool

Trait Implementations§

Source§

impl<'a> Debug for BytecodeGraphParser<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.