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

Method pop_f64_const

winch/codegen/src/codegen/context.rs:483–495  ·  view source on GitHub ↗

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

(&mut self)

Source from the content-addressed store, hash-verified

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> {
484 let top = self.stack.peek().expect("value at stack top");
485
486 if top.is_f64_const() {
487 let val = self
488 .stack
489 .pop_f64_const()
490 .expect("f64 const value at stack top");
491 Some(val)
492 } else {
493 None
494 }
495 }
496
497 /// Prepares arguments for emitting a convert operation.
498 pub fn convert_op<F, M>(&mut self, masm: &mut M, dst_ty: WasmValType, emit: F) -> Result<()>

Callers 1

replace_lane_opMethod · 0.45

Calls 3

is_f64_constMethod · 0.80
expectMethod · 0.45
peekMethod · 0.45

Tested by

no test coverage detected