Home
last modified time | relevance | path

Searched refs:Instruction (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dasm_parser.rs39 pub struct Instruction { struct
92 fn instruction<I>() -> impl Parser<I, Output = Instruction> in instruction()
98 (ident().skip(spaces()), operands, spaces()).map(|t| Instruction { in instruction()
107 pub fn parse(input: &str) -> Result<Vec<Instruction>, String> { in parse() argument
132 use super::{ident, instruction, integer, operand, parse, register, Instruction, Operand};
186 Instruction { in test_instruction()
197 Instruction { in test_instruction()
208 Instruction { in test_instruction()
219 Instruction { in test_instruction()
230 Instruction { in test_instruction()
[all …]
H A Dinsn_builder.rs11 pub trait Instruction: Sized { interface
77 impl<I: Instruction> IntoBytes for &'_ I {
350 impl Instruction for Move<'_> {
418 impl Instruction for SwapBytes<'_> {
459 impl Instruction for Load<'_> {
492 impl Instruction for Store<'_> {
545 impl Instruction for Jump<'_> {
605 impl Instruction for FunctionCall<'_> {
634 impl Instruction for Exit<'_> {
H A Dassembler.rs20 parse, Instruction, Operand,
213 fn assemble_internal(parsed: &[Instruction]) -> Result<Vec<Insn>, String> { in assemble_internal()