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

Method parse_dynamic_stack_slot_decl

cranelift/reader/src/parser.rs:1597–1611  ·  view source on GitHub ↗
(
        &mut self,
    )

Source from the content-addressed store, hash-verified

1595 }
1596
1597 fn parse_dynamic_stack_slot_decl(
1598 &mut self,
1599 ) -> ParseResult<(DynamicStackSlot, DynamicStackSlotData)> {
1600 let dss = self.match_dss("expected stack slot number: dss«n»")?;
1601 self.match_token(Token::Equal, "expected '=' in stack slot declaration")?;
1602 let kind = self.match_enum("expected stack slot kind")?;
1603 let dt = self.match_dt("expected dynamic type")?;
1604 let data = DynamicStackSlotData::new(kind, dt);
1605 // Collect any trailing comments.
1606 self.token();
1607 self.claim_gathered_comments(dss);
1608
1609 // TBD: stack-slot-decl ::= StackSlot(ss) "=" stack-slot-kind Bytes * {"," stack-slot-flag}
1610 Ok((dss, data))
1611 }
1612
1613 fn parse_dynamic_type_decl(&mut self) -> ParseResult<(DynamicType, DynamicTypeData)> {
1614 let dt = self.match_dt("expected dynamic type number: dt«n»")?;

Callers 1

parse_preambleMethod · 0.80

Calls 8

OkFunction · 0.85
match_dssMethod · 0.80
match_tokenMethod · 0.80
match_enumMethod · 0.80
match_dtMethod · 0.80
tokenMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected