MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / label_keep_counts

Method label_keep_counts

crates/parser/src/visit.rs:637–648  ·  view source on GitHub ↗
(label_types: &[wasmparser::ValType])

Source from the content-addressed store, hash-verified

635 }
636
637 fn label_keep_counts(label_types: &[wasmparser::ValType]) -> (u16, u16, u16) {
638 let (mut c32, mut c64, mut c128) = (0, 0, 0);
639 for &ty in label_types {
640 match operand_size(ty) {
641 OperandSize::S32 => c32 += 1,
642 OperandSize::S64 => c64 += 1,
643 OperandSize::S128 => c128 += 1,
644 }
645 }
646
647 (c32, c64, c128)
648 }
649
650 fn label_keep_counts_for_frame(&self, frame: &wasmparser::Frame) -> (u16, u16, u16) {
651 match &frame.block_type {

Callers

nothing calls this directly

Calls 1

operand_sizeFunction · 0.85

Tested by

no test coverage detected