Lines Matching refs:bytecode
124 bytecode: &'a [u8], field
131 pub fn new(bytecode: &'a [u8]) -> Self { in new()
133 bytecode, in new()
145 &self.bytecode in as_slice()
152 .bytecode
155 self.bytecode = rest;
260 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
266 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
270 bytecode.read::<1>().map(|a| a[0]) in decode()
275 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
279 Ok(u16::from_le_bytes(bytecode.read()?)) in decode()
284 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
288 Ok(u32::from_le_bytes(bytecode.read()?)) in decode()
293 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
297 Ok(u64::from_le_bytes(bytecode.read()?)) in decode()
302 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
306 Ok(u128::from_le_bytes(bytecode.read()?)) in decode()
311 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
315 bytecode.read::<1>().map(|a| a[0] as i8) in decode()
320 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
324 Ok(i16::from_le_bytes(bytecode.read()?)) in decode()
329 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
333 Ok(i32::from_le_bytes(bytecode.read()?)) in decode()
338 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
342 Ok(i64::from_le_bytes(bytecode.read()?)) in decode()
347 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
351 Ok(i128::from_le_bytes(bytecode.read()?)) in decode()
356 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
360 let byte = u8::decode(bytecode)?; in decode()
361 XReg::new(byte).ok_or_else(|| bytecode.invalid_reg(byte)) in decode()
366 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
370 let byte = u8::decode(bytecode)?; in decode()
371 FReg::new(byte).ok_or_else(|| bytecode.invalid_reg(byte)) in decode()
376 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
380 let byte = u8::decode(bytecode)?; in decode()
381 VReg::new(byte).ok_or_else(|| bytecode.invalid_reg(byte)) in decode()
386 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
390 i32::decode(bytecode).map(|x| Self::from(x)) in decode()
395 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
399 let byte = u8::decode(bytecode)?; in decode()
402 None => Err(bytecode.invalid_opcode(byte)), in decode()
408 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
412 let word = u16::decode(bytecode)?; in decode()
415 None => Err(bytecode.invalid_extended_opcode(word)), in decode()
421 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
425 u16::decode(bytecode).map(|bits| Self::from_bits(bits)) in decode()
430 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
434 u16::decode(bytecode).map(|bits| Self::from_bits(bits)) in decode()
439 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
443 S::decode(bytecode).map(ScalarBitSet::from) in decode()
448 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
452 ScalarBitSet::decode(bytecode).map(Self::from) in decode()
457 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
462 addr: XReg::decode(bytecode)?, in decode()
463 offset: i32::decode(bytecode)?, in decode()
469 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
474 addr: XReg::decode(bytecode)?, in decode()
475 offset: i32::decode(bytecode)?, in decode()
481 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
485 Ok(AddrG32::from_bits(u32::decode(bytecode)?)) in decode()
490 fn decode<T>(bytecode: &mut T) -> Result<Self, T::Error> in decode()
494 Ok(AddrG32Bne::from_bits(u32::decode(bytecode)?)) in decode()
527 while !visitor.bytecode().as_slice().is_empty() { in decode_all()
579 let byte = u8::decode(visitor.bytecode())?;
581 visitor.bytecode().invalid_opcode(byte)
590 visitor.bytecode(),
620 fn bytecode(&mut self) -> &mut Self::BytecodeStream;
650 fn bytecode(&mut self) -> &mut Self::BytecodeStream {
651 self.v1.bytecode()
662 *self.v2.bytecode() = *self.v1.bytecode();
706 let code = u16::decode(visitor.bytecode())?;
708 visitor.bytecode().invalid_extended_opcode(code)
717 visitor.bytecode(),