| /wasmtime-44.0.1/pulley/src/ |
| H A D | decode.rs | 124 bytecode: &'a [u8], field 133 bytecode, in new() 145 &self.bytecode in as_slice() 152 .bytecode 155 self.bytecode = rest; 360 let byte = u8::decode(bytecode)?; in decode() 370 let byte = u8::decode(bytecode)?; in decode() 380 let byte = u8::decode(bytecode)?; in decode() 399 let byte = u8::decode(bytecode)?; in decode() 651 self.v1.bytecode() [all …]
|
| H A D | disas.rs | 18 bytecode: SafeBytecodeStream<'a>, field 30 pub fn disassemble_all(bytecode: &'a [u8]) -> Result<String> { in disassemble_all() 31 let mut disas = Self::new(bytecode); in disassemble_all() 38 pub fn new(bytecode: &'a [u8]) -> Self { in new() 40 raw_bytecode: bytecode, in new() 41 bytecode: SafeBytecodeStream::new(bytecode), in new() 106 self.start = self.bytecode.position(); in disas_br_table32() 355 fn bytecode(&mut self) -> &mut Self::BytecodeStream { in bytecode() method 356 &mut self.bytecode in bytecode() 362 self.start = self.bytecode.position(); in before_visit() [all …]
|
| H A D | op.rs | 222 bytecode: B, field 228 pub fn new(bytecode: B) -> Self { in new() 229 Self { bytecode } in new() 244 fn bytecode(&mut self) -> &mut Self::BytecodeStream { 245 &mut self.bytecode
|
| H A D | interp.rs | 1295 let mut bytecode = [0; 10]; in simple_push_pop() localVariable 1299 pc: UnsafeBytecodeStream::new(NonNull::new(bytecode.as_mut_ptr().offset(4)).unwrap()), in simple_push_pop() 1337 fn bytecode(&mut self) -> &mut UnsafeBytecodeStream { in bytecode() method
|
| /wasmtime-44.0.1/pulley/tests/all/ |
| H A D | disas.rs | 29 let bytecode = encoded(ops); in assert_disas() localVariable 65 let bytecode = encoded(&[ in no_offsets() localVariable 82 disas::Disassembler::new(&bytecode) in no_offsets() 96 let bytecode = encoded(&[ in no_offsets_or_hexdump() localVariable 113 disas::Disassembler::new(&bytecode) in no_offsets_or_hexdump() 127 let mut bytecode = Vec::new(); in disassemble_br_table() localVariable 128 PushFrame {}.encode(&mut bytecode); in disassemble_br_table() 133 .encode(&mut bytecode); in disassemble_br_table() 134 bytecode.extend_from_slice(&0_i32.to_le_bytes()); in disassemble_br_table() 138 PopFrame {}.encode(&mut bytecode); in disassemble_br_table() [all …]
|
| /wasmtime-44.0.1/crates/gdbstub-component/src/ |
| H A D | addr.rs | 22 bytecode: &'a [u8], 48 let bytecode = m.bytecode().unwrap_or(vec![]); in module_id() localVariable 49 self.module_bytecode.push(bytecode); in module_id() 161 let bytecode = &self.module_bytecode[index]; in lookup() localVariable 162 if addr.offset() >= u32::try_from(bytecode.len()).unwrap() { in lookup() 167 bytecode, in lookup()
|
| H A D | target.rs | 99 bytecode, offset, .. in read_addrs() 102 let avail = bytecode.len() - offset; in read_addrs() 104 data[..n].copy_from_slice(&bytecode[offset..offset + n]); in read_addrs()
|
| /wasmtime-44.0.1/pulley/ |
| H A D | README.md | 7 <strong>A portable bytecode and fast interpreter</strong> 26 Pulley is a portable bytecode and fast interpreter for use in Wasmtime. 42 Pulley is very much still a work in progress! Expect the details of the bytecode 66 that we try and follow when designing the Pulley bytecode format and its 69 * The bytecode should be simple and fast to decode in software. For example, we 82 byte and others require many. This helps keep the bytecode compact and 88 overhead. Additionally, Cranelift, as the primary Pulley bytecode producer, 106 via heavy `macro_rules` usage where we define the bytecode inside a
|
| H A D | Cargo.toml | 3 description = "The Pulley interpreter, its bytecode definition, encoder, decoder, and etc..."
|
| H A D | CONTRIBUTING.md | 56 means that there is CLIF that cannot be lowered to Pulley bytecode just yet. 158 This means "when lowering Cranelift's mid-level IR down to Pulley bytecode, and
|
| /wasmtime-44.0.1/pulley/src/interp/ |
| H A D | debug.rs | 82 fn bytecode(&mut self) -> &mut Self::BytecodeStream { in bytecode() method 83 self.0.bytecode() in bytecode() 91 print!("\t{:?}\t", self.bytecode().as_ptr()); in before_visit()
|
| H A D | tail_loop.rs | 93 let Ok(opcode) = Opcode::decode(debug.bytecode()); in dispatch() 105 let Ok(opcode) = ExtendedOpcode::decode(i.bytecode()); in run_extended() 172 let Ok(($($field,)*)) = crate::decode::operands::$snake_name(debug.0.bytecode());
|
| /wasmtime-44.0.1/pulley/examples/ |
| H A D | profiler-html.rs | 163 while !disas.bytecode().as_slice().is_empty() { in main() 188 offset += u32::try_from(remaining - disas.bytecode().as_slice().len()).unwrap(); in main() 189 remaining = disas.bytecode().as_slice().len(); in main()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | interpreter.rs | 170 mut bytecode: NonNull<u8>, in call() 190 match unsafe { vm.call_run(bytecode) } { in call() 218 bytecode = self.take_resume_at_pc(); in call() 221 bytecode = resume; in call() 227 bytecode = self.trap(pc, kind); in call()
|
| /wasmtime-44.0.1/docs/ |
| H A D | examples-pulley.md | 10 Pulley is a bytecode interpreter originally proposed [in an RFC][rfc] which is 58 Wasmtime will return an error trying to load bytecode compiled for the wrong 80 Pulley is an interpreter for its own bytecode format. While the design of Pulley 91 Pulley bytecode is produced by the Cranelift compiler today in a similar manner 94 bytecode should be expected to take about the same time as compiling to native 100 possible to execute any Pulley bytecode created by Cranelift and Wasmtime. This 132 Pulley's bytecode is defined in `pulley/src/lib.rs` with a combination of the 178 inspect compiled bytecode:
|
| H A D | stability-platform-support.md | 43 executing WebAssembly code. Pulley uses a custom bytecode which is created from 45 bytecode is created via a Cranelift backend for Pulley, so compile times for 48 The main advantage of Pulley is that the bytecode can be executed on any
|
| H A D | stability-tiers.md | 318 emitting Pulley bytecode.
|
| /wasmtime-44.0.1/winch/ |
| H A D | README.md | 34 * Single pass over Wasm bytecode 38 * Machine code generation directly from Wasm bytecode – no intermediate
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | pulley_provenance_test.wat | 3 ;; of miri and to have the compiled bytecode loaded directly into miri.
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | instantiate.rs | 266 pub fn bytecode(&self) -> Option<&[u8]> { in bytecode() method
|
| H A D | module.rs | 700 self.compiled_module().bytecode() in debug_bytecode()
|
| /wasmtime-44.0.1/src/commands/ |
| H A D | objdump.rs | 495 let start_addr = disas.bytecode().position(); in disas_pulley() 507 let bytes_range = start_addr..disas.bytecode().position(); in disas_pulley()
|
| /wasmtime-44.0.1/crates/debugger/wit/ |
| H A D | world.wit | 203 /// Get the original Wasm bytecode for this module, if available. 204 bytecode: func() -> option<list<u8>>;
|
| /wasmtime-44.0.1/crates/wasmtime/ |
| H A D | Cargo.toml | 179 # modules that have been compiled to Pulley bytecode.
|
| /wasmtime-44.0.1/crates/debugger/src/host/ |
| H A D | api.rs | 430 async fn bytecode(&mut self, self_: Resource<Module>) -> Result<Option<Vec<u8>>> { in bytecode() method
|