| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/ |
| H A D | build.rs | 129 0u32.encode(&mut body); // no locals in build_raw_intrinsics() 131 LocalGet(0).encode(&mut body); in build_raw_intrinsics() 136 End.encode(&mut body); in build_raw_intrinsics() 167 0x00.encode(&mut subsection); // flags in build_raw_intrinsics() 172 0x00.encode(&mut subsection); // flags in build_raw_intrinsics() 177 0x00.encode(&mut subsection); // flags in build_raw_intrinsics() 182 0x00.encode(&mut subsection); // flags in build_raw_intrinsics() 192 0x00.encode(&mut subsection); // flags in build_raw_intrinsics() 196 subsection.encode(&mut linking); in build_raw_intrinsics() 212 4u32.encode(&mut reloc); // symbol index in build_raw_intrinsics() [all …]
|
| /wasmtime-44.0.1/pulley/src/ |
| H A D | encode.rs | 13 fn encode<E>(&self, sink: &mut E) in encode() method 21 fn encode<E>(&self, sink: &mut E) in encode() method 32 fn encode<E>(&self, sink: &mut E) in encode() method 43 fn encode<E>(&self, sink: &mut E) in encode() method 54 fn encode<E>(&self, sink: &mut E) in encode() method 65 fn encode<E>(&self, sink: &mut E) in encode() method 212 self.addr.encode(sink); in encode() 213 self.offset.encode(sink); in encode() 224 self.addr.encode(sink); in encode() 225 self.offset.encode(sink); in encode() [all …]
|
| H A D | op.rs | 4 use crate::encode::Encode; 126 pub fn encode<E>(&self, into: &mut E) 132 Self::$name(op) => op.encode(into), 134 Self::ExtendedOp(op) => op.encode(into), 156 pub fn encode<E>(&self, into: &mut E) 160 crate::encode::$snake_name(into $( $( , self.$field )* )?); 178 pub fn encode<E>(&self, into: &mut E) 184 Self::$name(op) => op.encode(into), 206 pub fn encode<E>(&self, into: &mut E) 210 crate::encode::$snake_name(into $( $( , self.$field )* )?);
|
| /wasmtime-44.0.1/cranelift/codegen/src/isa/pulley_shared/inst/ |
| H A D | args.rs | 7 use pulley_interpreter::encode; 292 pub fn encode(&self, sink: &mut impl Extend<u8>, rel: i32) { in encode() method 294 Cond::If32 { reg } => encode::br_if32(sink, reg, rel), in encode() 295 Cond::IfNot32 { reg } => encode::br_if_not32(sink, reg, rel), in encode() 310 Ok(src2) => encode::br_if_xeq32_i8(sink, src1, src2, rel), in encode() 311 Err(_) => encode::br_if_xeq32_i32(sink, src1, src2, rel), in encode() 315 Err(_) => encode::br_if_xneq32_i32(sink, src1, src2, rel), in encode() 319 Err(_) => encode::br_if_xslt32_i32(sink, src1, src2, rel), in encode() 327 Err(_) => encode::br_if_xsgt32_i32(sink, src1, src2, rel), in encode() 335 Err(_) => encode::br_if_xult32_u32(sink, src1, src2, rel), in encode() [all …]
|
| H A D | emit.rs | 10 use pulley_interpreter::encode as enc; 341 cond.invert().encode(&mut inverted, 0); in pulley_emit() 345 .encode(&mut inverted, i32::try_from(len - 4).unwrap()); in pulley_emit() 356 patch_pc_rel_offset(sink, |sink| cond.encode(sink, 0)); in pulley_emit()
|
| /wasmtime-44.0.1/cranelift/assembler-x64/src/ |
| H A D | imm.rs | 41 pub fn encode(&self, sink: &mut impl CodeSink) { in encode() method 81 pub fn encode(&self, sink: &mut impl CodeSink) { in encode() method 126 pub fn encode(&self, sink: &mut impl CodeSink) { in encode() method 166 pub fn encode(&self, sink: &mut impl CodeSink) { in encode() method 215 pub fn encode(&self, sink: &mut impl CodeSink) { in encode() method 259 pub fn encode(&self, sink: &mut impl CodeSink) { in encode() method 299 pub fn encode(&self, sink: &mut impl CodeSink) { in encode() method
|
| H A D | evex.rs | 95 pub(crate) fn encode(&self, sink: &mut impl CodeSink) { in encode() method
|
| H A D | vex.rs | 101 pub(crate) fn encode(&self, sink: &mut impl CodeSink) { in encode() method
|
| /wasmtime-44.0.1/pulley/tests/all/ |
| H A D | disas.rs | 8 op.encode(&mut encoded); in encoded() 128 PushFrame {}.encode(&mut bytecode); in disassemble_br_table() 133 .encode(&mut bytecode); in disassemble_br_table() 138 PopFrame {}.encode(&mut bytecode); in disassemble_br_table()
|
| H A D | main.rs | 12 pulley_interpreter::encode::call_indirect_host(&mut dst, 1_u8); in test_call_indirect_host_width()
|
| /wasmtime-44.0.1/cranelift/codegen/src/isa/x64/inst/ |
| H A D | emit.rs | 80 inst.encode(&mut external::AsmCodeSink { in emit_jcc_no_offset() 1960 }) => andw_i::<R>::new(RAX, imm16).encode(sink), in emit_maybe_shrink() 1964 }) => andl_i::<R>::new(RAX, imm32).encode(sink), in emit_maybe_shrink() 1975 }) => orw_i::<R>::new(RAX, imm16).encode(sink), in emit_maybe_shrink() 1979 }) => orl_i::<R>::new(RAX, imm32).encode(sink), in emit_maybe_shrink() 1990 }) => xorw_i::<R>::new(RAX, imm16).encode(sink), in emit_maybe_shrink() 1994 }) => xorl_i::<R>::new(RAX, imm32).encode(sink), in emit_maybe_shrink() 2005 }) => addw_i::<R>::new(RAX, imm16).encode(sink), in emit_maybe_shrink() 2009 }) => addl_i::<R>::new(RAX, imm32).encode(sink), in emit_maybe_shrink() 2020 }) => adcw_i::<R>::new(RAX, imm16).encode(sink), in emit_maybe_shrink() [all …]
|
| /wasmtime-44.0.1/cranelift/codegen/src/isa/riscv64/inst/ |
| H A D | vector.rs | 75 pub fn encode(&self) -> u32 { in encode() method 92 pub fn encode(&self) -> u32 { in encode() method 120 pub fn encode(&self) -> u32 { in encode() method 138 pub fn encode(&self) -> u32 { in encode() method 168 pub fn encode(&self) -> u32 { in encode() method 220 pub fn encode(&self) -> u32 { in encode() method 244 pub fn encode(&self) -> u32 { in encode() method 258 self.category().encode() in funct3() 326 self.category().encode() in funct3() 372 self.category().encode() in funct3() [all …]
|
| H A D | encode.rs | 113 let funct7 = (op.funct6() << 1) | masking.encode(); in encode_valu() 144 let funct7 = (op.funct6() << 1) | masking.encode(); in encode_valu_rr_imm() 163 let funct7 = (op.funct6() << 1) | masking.encode(); in encode_valu_rrrr() 181 let funct7 = (op.funct6() << 1) | masking.encode(); in encode_valu_rrr_imm() 194 let funct7 = (op.funct6() << 1) | masking.encode(); in encode_valu_rr() 218 let funct7 = (op.funct6() << 1) | masking.encode(); in encode_valu_r_imm() 243 bits |= VecOpCategory::OPCFG.encode() << 12; in encode_vcfg_imm() 245 bits |= unsigned_field_width(vtype.encode(), 10) << 20; in encode_vcfg_imm() 278 bits |= masking.encode() << 25; in encode_vmem_load()
|
| /wasmtime-44.0.1/pulley/ |
| H A D | Cargo.toml | 32 encode = [] 35 interp = ["decode", "encode", "dep:wasmtime-core"]
|
| /wasmtime-44.0.1/pulley/fuzz/ |
| H A D | Cargo.toml | 12 pulley-interpreter = { path = "..", features = ["encode", "decode", "disas", "interp", "arbitrary"]…
|
| /wasmtime-44.0.1/cranelift/interpreter/src/ |
| H A D | address.rs | 87 pub fn encode(self) -> u64 { in encode() method 172 let region = addr.region.encode() << (entry_bits + offset_bits); in try_from() 256 assert_eq!(AddressRegion::decode(region.encode()), region); in address_region_roundtrip_encode_decode()
|
| /wasmtime-44.0.1/cranelift/isle/veri/veri_engine/examples/broken/isub/ |
| H A D | broken_shift.isle | 13 ;; the two msb encode the type of shift as follows: 18 ;; the rest will encode a 8-bit shift amount
|
| /wasmtime-44.0.1/cranelift/isle/veri/veri_engine/examples/broken/iadd/ |
| H A D | broken_shift.isle | 13 ;; the two msb encode the type of shift as follows: 18 ;; the rest will encode a 8-bit shift amount
|
| H A D | broken_shift2.isle | 13 ;; the two msb encode the type of shift as follows: 18 ;; the rest will encode a 8-bit shift amount
|
| H A D | broken_add_extend.isle | 20 ;; encode an extend op as follows: 29 ;; and the remaining bits encode the value.
|
| /wasmtime-44.0.1/pulley/fuzz/src/ |
| H A D | roundtrip.rs | 14 op.encode(&mut encoded); in roundtrip()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | fact.rs | 764 pub fn encode(&mut self) -> Vec<u8> { in encode() method 794 func.locals.len().encode(&mut body); in encode() 796 count.encode(&mut body); in encode() 797 ty.encode(&mut body); in encode() 810 Instruction::Call(id_to_index[*id].as_u32()).encode(&mut body); in encode() 813 Instruction::RefFunc(id_to_index[*id].as_u32()).encode(&mut body); in encode()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/resources/ |
| H A D | host.rs | 90 let (index, generation) = state.encode(); in new() 102 let (index, generation) = state.encode(); in swap() 126 const fn encode(&self) -> (u32, u32) { in encode() method
|
| /wasmtime-44.0.1/examples/component/ |
| H A D | main.rs | 34 .encode() in convert_to_component()
|
| /wasmtime-44.0.1/.github/ISSUE_TEMPLATE/ |
| H A D | fuzzbug.md | 16 <!-- Please base64-encode the input that libFuzzer generated, and paste it in the code-block below.…
|