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

Method pop_f32_const

winch/codegen/src/codegen/context.rs:468–480  ·  view source on GitHub ↗

Returns the f32 const on top of the stack or None if there isn't one.

(&mut self)

Source from the content-addressed store, hash-verified

466
467 /// Returns the f32 const on top of the stack or None if there isn't one.
468 pub fn pop_f32_const(&mut self) -> Option<Ieee32> {
469 let top = self.stack.peek().expect("value at stack top");
470
471 if top.is_f32_const() {
472 let val = self
473 .stack
474 .pop_f32_const()
475 .expect("f32 const value at stack top");
476 Some(val)
477 } else {
478 None
479 }
480 }
481
482 /// Returns the f64 const on top of the stack or None if there isn't one.
483 pub fn pop_f64_const(&mut self) -> Option<Ieee64> {

Callers 1

replace_lane_opMethod · 0.45

Calls 3

is_f32_constMethod · 0.80
expectMethod · 0.45
peekMethod · 0.45

Tested by

no test coverage detected