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

Method match_ss

cranelift/reader/src/parser.rs:573–581  ·  view source on GitHub ↗

Match and consume a stack slot reference.

(&mut self, err_msg: &str)

Source from the content-addressed store, hash-verified

571
572 // Match and consume a stack slot reference.
573 fn match_ss(&mut self, err_msg: &str) -> ParseResult<StackSlot> {
574 if let Some(Token::StackSlot(ss)) = self.token() {
575 self.consume();
576 if let Some(ss) = StackSlot::with_number(ss) {
577 return Ok(ss);
578 }
579 }
580 err!(self.loc, err_msg)
581 }
582
583 // Match and consume a dynamic stack slot reference.
584 fn match_dss(&mut self, err_msg: &str) -> ParseResult<DynamicStackSlot> {

Callers 3

parse_stack_slot_declMethod · 0.80
parse_instructionMethod · 0.80
parse_inst_operandsMethod · 0.80

Calls 3

OkFunction · 0.85
tokenMethod · 0.80
consumeMethod · 0.45

Tested by

no test coverage detected