TraceOp

Enum TraceOp 

Source
pub enum TraceOp {
Show 30 variants LoadConst { dest: Register, value: Value, }, Move { dest: Register, src: Register, }, Add { dest: Register, lhs: Register, rhs: Register, lhs_type: ValueType, rhs_type: ValueType, }, Sub { dest: Register, lhs: Register, rhs: Register, lhs_type: ValueType, rhs_type: ValueType, }, Mul { dest: Register, lhs: Register, rhs: Register, lhs_type: ValueType, rhs_type: ValueType, }, Div { dest: Register, lhs: Register, rhs: Register, lhs_type: ValueType, rhs_type: ValueType, }, Mod { dest: Register, lhs: Register, rhs: Register, lhs_type: ValueType, rhs_type: ValueType, }, Neg { dest: Register, src: Register, }, Eq { dest: Register, lhs: Register, rhs: Register, }, Ne { dest: Register, lhs: Register, rhs: Register, }, Lt { dest: Register, lhs: Register, rhs: Register, }, Le { dest: Register, lhs: Register, rhs: Register, }, Gt { dest: Register, lhs: Register, rhs: Register, }, Ge { dest: Register, lhs: Register, rhs: Register, }, And { dest: Register, lhs: Register, rhs: Register, }, Or { dest: Register, lhs: Register, rhs: Register, }, Not { dest: Register, src: Register, }, Concat { dest: Register, lhs: Register, rhs: Register, }, GetIndex { dest: Register, array: Register, index: Register, }, ArrayLen { dest: Register, array: Register, }, GuardNativeFunction { register: Register, function: TracedNativeFn, }, CallNative { dest: Register, callee: Register, function: TracedNativeFn, first_arg: Register, arg_count: u8, }, CallMethod { dest: Register, object: Register, method_name: String, first_arg: Register, arg_count: u8, }, GetField { dest: Register, object: Register, field_name: String, field_index: Option<usize>, value_type: Option<ValueType>, is_weak: bool, }, SetField { object: Register, field_name: String, value: Register, field_index: Option<usize>, value_type: Option<ValueType>, is_weak: bool, }, NewStruct { dest: Register, struct_name: String, field_names: Vec<String>, field_registers: Vec<Register>, }, Guard { register: Register, expected_type: ValueType, }, GuardLoopContinue { condition_register: Register, bailout_ip: usize, }, NestedLoopCall { function_idx: usize, loop_start_ip: usize, bailout_ip: usize, }, Return { value: Option<Register>, },
}

Variants§

§

LoadConst

Fields

§value: Value
§

Move

Fields

§

Add

Fields

§lhs_type: ValueType
§rhs_type: ValueType
§

Sub

Fields

§lhs_type: ValueType
§rhs_type: ValueType
§

Mul

Fields

§lhs_type: ValueType
§rhs_type: ValueType
§

Div

Fields

§lhs_type: ValueType
§rhs_type: ValueType
§

Mod

Fields

§lhs_type: ValueType
§rhs_type: ValueType
§

Neg

Fields

§

Eq

Fields

§

Ne

Fields

§

Lt

Fields

§

Le

Fields

§

Gt

Fields

§

Ge

Fields

§

And

Fields

§

Or

Fields

§

Not

Fields

§

Concat

Fields

§

GetIndex

Fields

§array: Register
§index: Register
§

ArrayLen

Fields

§array: Register
§

GuardNativeFunction

Fields

§register: Register
§

CallNative

Fields

§callee: Register
§first_arg: Register
§arg_count: u8
§

CallMethod

Fields

§object: Register
§method_name: String
§first_arg: Register
§arg_count: u8
§

GetField

Fields

§object: Register
§field_name: String
§field_index: Option<usize>
§value_type: Option<ValueType>
§is_weak: bool
§

SetField

Fields

§object: Register
§field_name: String
§value: Register
§field_index: Option<usize>
§value_type: Option<ValueType>
§is_weak: bool
§

NewStruct

Fields

§struct_name: String
§field_names: Vec<String>
§field_registers: Vec<Register>
§

Guard

Fields

§register: Register
§expected_type: ValueType
§

GuardLoopContinue

Fields

§condition_register: Register
§bailout_ip: usize
§

NestedLoopCall

Fields

§function_idx: usize
§loop_start_ip: usize
§bailout_ip: usize
§

Return

Fields

Trait Implementations§

Source§

impl Clone for TraceOp

Source§

fn clone(&self) -> TraceOp

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TraceOp

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for TraceOp

§

impl !RefUnwindSafe for TraceOp

§

impl !Send for TraceOp

§

impl !Sync for TraceOp

§

impl Unpin for TraceOp

§

impl !UnwindSafe for TraceOp

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.