Home
last modified time | relevance | path

Searched refs:ConstExpr (Results 1 – 12 of 12) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dcoredump.rs149 wasm_encoder::ConstExpr::i64_const(offset as i64) in _serialize()
152 wasm_encoder::ConstExpr::i32_const(offset as i32) in _serialize()
194 Val::I32(x) => wasm_encoder::ConstExpr::i32_const(x), in _serialize()
195 Val::I64(x) => wasm_encoder::ConstExpr::i64_const(x), in _serialize()
196 Val::F32(x) => wasm_encoder::ConstExpr::f32_const(f32::from_bits(x).into()), in _serialize()
198 Val::V128(x) => wasm_encoder::ConstExpr::v128_const(x.as_u128() as i128), in _serialize()
200 wasm_encoder::ConstExpr::ref_null(wasm_encoder::HeapType::FUNC) in _serialize()
203 wasm_encoder::ConstExpr::ref_null(wasm_encoder::HeapType::EXTERN) in _serialize()
206 wasm_encoder::ConstExpr::ref_null(wasm_encoder::HeapType::ANY) in _serialize()
209 wasm_encoder::ConstExpr::ref_null(wasm_encoder::HeapType::Abstract { in _serialize()
[all …]
/wasmtime-44.0.1/crates/wizer/src/
H A Drewrite.rs7 use wasm_encoder::{ConstExpr, SectionId};
30 ConstExpr::i64_const(seg.offset.cast_signed()) in rewrite()
32 ConstExpr::i32_const(u32::try_from(seg.offset).unwrap().cast_signed()) in rewrite()
103 SnapshotVal::I32(x) => ConstExpr::i32_const(*x), in rewrite()
104 SnapshotVal::I64(x) => ConstExpr::i64_const(*x), in rewrite()
106 ConstExpr::f32_const(wasm_encoder::Ieee32::new(*x)) in rewrite()
109 ConstExpr::f64_const(wasm_encoder::Ieee64::new(*x)) in rewrite()
111 SnapshotVal::V128(x) => ConstExpr::v128_const(x.cast_signed()), in rewrite()
/wasmtime-44.0.1/crates/environ/src/
H A Dmodule.rs16 pub offset: ConstExpr,
209 fn eval_offset(&mut self, memory_index: MemoryIndex, expr: &ConstExpr) -> Option<u64>; in eval_offset()
255 Expr(ConstExpr),
264 pub offset: ConstExpr,
277 Expressions(Box<[ConstExpr]>),
368 pub global_initializers: TryPrimaryMap<DefinedGlobalIndex, ConstExpr>,
H A Dtypes.rs1893 pub struct ConstExpr { struct
1897 impl ConstExpr { implementation
1906 ConstExpr { ops } in new()
1915 expr: wasmparser::ConstExpr<'_>, in from_wasmparser()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dconst_expr.rs11 use wasmtime_environ::{ConstExpr, ConstOp, FuncIndex, GlobalConstValue, GlobalIndex};
153 expr: &ConstExpr, in eval_int() argument
170 pub fn try_simple(&mut self, expr: &ConstExpr) -> Option<&Val> { in try_simple()
196 expr: &ConstExpr, in eval() argument
218 expr: &ConstExpr, in eval_loop() argument
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/
H A Dbuild.rs98 &ConstExpr::i32_const(0), in build_raw_intrinsics()
107 &ConstExpr::i32_const(0), in build_raw_intrinsics()
/wasmtime-44.0.1/crates/environ/src/compile/
H A Dmodule_environ.rs8 ConstExpr, ConstOp, DataIndex, DefinedFuncIndex, ElemIndex, EngineOrModuleTypeIndex,
416 let (init, escaped) = ConstExpr::from_wasmparser(self, expr)?; in translate_payload()
465 let (initializer, escaped) = ConstExpr::from_wasmparser(self, init_expr)?; in translate_payload()
538 let (expr, escaped) = ConstExpr::from_wasmparser(self, expr?)?; in translate_payload()
554 let (offset, escaped) = ConstExpr::from_wasmparser(self, offset_expr)?; in translate_payload()
667 let (offset, escaped) = ConstExpr::from_wasmparser(self, offset_expr)?; in translate_payload()
1032 fn eval_offset(&mut self, memory_index: MemoryIndex, expr: &ConstExpr) -> Option<u64> { in try_static_init()
/wasmtime-44.0.1/crates/wizer/tests/all/
H A Dtests.rs2 use wasm_encoder::ConstExpr;
787 data.active(0, &ConstExpr::i32_const(0), vec![0, 1, 2, 3]); in accept_bulk_memory_data_count()
788 data.active(0, &ConstExpr::i32_const(4), vec![5, 6, 7, 8]); in accept_bulk_memory_data_count()
/wasmtime-44.0.1/crates/fuzzing/src/generators/gc_ops/
H A Dops.rs11 CodeSection, ConstExpr, EntityType, ExportKind, ExportSection, Function, FunctionSection,
256 &ConstExpr::ref_null(wasm_encoder::HeapType::EXTERN), in to_wasm_binary()
274 &ConstExpr::ref_null(wasm_encoder::HeapType::Abstract { in to_wasm_binary()
293 &ConstExpr::ref_null(wasm_encoder::HeapType::Concrete(concrete)), in to_wasm_binary()
/wasmtime-44.0.1/crates/fuzzing/src/oracles/
H A Dmemory.rs375 wasm_encoder::ConstExpr::i64_const(*offset as i64) in build_wasm()
377 wasm_encoder::ConstExpr::i32_const(*offset as i32) in build_wasm()
/wasmtime-44.0.1/crates/fuzzing/src/generators/
H A Dstacks.rs208 &wasm_encoder::ConstExpr::i32_const(0), in wasm()
217 &wasm_encoder::ConstExpr::i32_const(0), in wasm()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/
H A Dallocator.rs677 expr: &wasmtime_environ::ConstExpr, in initialize_memories() argument