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

Method pop_i64_const

winch/codegen/src/codegen/context.rs:453–465  ·  view source on GitHub ↗

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

(&mut self)

Source from the content-addressed store, hash-verified

451
452 /// Returns the i64 const on top of the stack or None if there isn't one.
453 pub fn pop_i64_const(&mut self) -> Option<i64> {
454 let top = self.stack.peek().expect("value at stack top");
455
456 if top.is_i64_const() {
457 let val = self
458 .stack
459 .pop_i64_const()
460 .expect("i64 const value at stack top");
461 Some(val)
462 } else {
463 None
464 }
465 }
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> {

Callers 4

splatMethod · 0.45
i64_shiftMethod · 0.45
i64_binopMethod · 0.45
replace_lane_opMethod · 0.45

Calls 3

is_i64_constMethod · 0.80
expectMethod · 0.45
peekMethod · 0.45

Tested by

no test coverage detected