Returns the f64 const on top of the stack or None if there isn't one.
(&mut self)
| 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<()> |
no test coverage detected