Home
last modified time | relevance | path

Searched refs:bytecode (Results 1 – 25 of 26) sorted by relevance

12

/wasmtime-44.0.1/pulley/src/
H A Ddecode.rs124 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 Ddisas.rs18 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 Dop.rs222 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 Dinterp.rs1295 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 Ddisas.rs29 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 Daddr.rs22 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 Dtarget.rs99 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 DREADME.md7 <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 DCargo.toml3 description = "The Pulley interpreter, its bytecode definition, encoder, decoder, and etc..."
H A DCONTRIBUTING.md56 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 Ddebug.rs82 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 Dtail_loop.rs93 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 Dprofiler-html.rs163 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 Dinterpreter.rs170 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 Dexamples-pulley.md10 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 Dstability-platform-support.md43 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 Dstability-tiers.md318 emitting Pulley bytecode.
/wasmtime-44.0.1/winch/
H A DREADME.md34 * Single pass over Wasm bytecode
38 * Machine code generation directly from Wasm bytecode – no intermediate
/wasmtime-44.0.1/tests/all/
H A Dpulley_provenance_test.wat3 ;; of miri and to have the compiled bytecode loaded directly into miri.
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dinstantiate.rs266 pub fn bytecode(&self) -> Option<&[u8]> { in bytecode() method
H A Dmodule.rs700 self.compiled_module().bytecode() in debug_bytecode()
/wasmtime-44.0.1/src/commands/
H A Dobjdump.rs495 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 Dworld.wit203 /// Get the original Wasm bytecode for this module, if available.
204 bytecode: func() -> option<list<u8>>;
/wasmtime-44.0.1/crates/wasmtime/
H A DCargo.toml179 # modules that have been compiled to Pulley bytecode.
/wasmtime-44.0.1/crates/debugger/src/host/
H A Dapi.rs430 async fn bytecode(&mut self, self_: Resource<Module>) -> Result<Option<Vec<u8>>> { in bytecode() method

12