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

Method match_dss

cranelift/reader/src/parser.rs:584–592  ·  view source on GitHub ↗

Match and consume a dynamic stack slot reference.

(&mut self, err_msg: &str)

Source from the content-addressed store, hash-verified

582
583 // Match and consume a dynamic stack slot reference.
584 fn match_dss(&mut self, err_msg: &str) -> ParseResult<DynamicStackSlot> {
585 if let Some(Token::DynamicStackSlot(ss)) = self.token() {
586 self.consume();
587 if let Some(ss) = DynamicStackSlot::with_number(ss) {
588 return Ok(ss);
589 }
590 }
591 err!(self.loc, err_msg)
592 }
593
594 // Match and consume a dynamic type reference.
595 fn match_dt(&mut self, err_msg: &str) -> ParseResult<DynamicType> {

Callers 2

parse_inst_operandsMethod · 0.80

Calls 3

OkFunction · 0.85
tokenMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected