MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / get_dynamic_slot_scale

Method get_dynamic_slot_scale

cranelift/codegen/src/ir/function.rs:266–269  ·  view source on GitHub ↗

Find the global dyn_scale for the given stack slot.

(&self, dss: DynamicStackSlot)

Source from the content-addressed store, hash-verified

264
265 /// Find the global dyn_scale for the given stack slot.
266 pub fn get_dynamic_slot_scale(&self, dss: DynamicStackSlot) -> GlobalValue {
267 let dyn_ty = self.dynamic_stack_slots.get(dss).unwrap().dyn_ty;
268 self.get_dyn_scale(dyn_ty)
269 }
270
271 /// Get a concrete `Type` from a user defined `DynamicType`.
272 pub fn get_concrete_dynamic_ty(&self, ty: DynamicType) -> Option<Type> {

Callers

nothing calls this directly

Calls 3

get_dyn_scaleMethod · 0.80
unwrapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected