MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / encode_forward_branch_resolves

Function encode_forward_branch_resolves

crates/asm-to-binary/src/assembler/mod.rs:357–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355 let tokens = vec![
356 AsmToken::Section(SectionKind::Text),
357 nop_token(),
358 nop_token(),
359 AsmToken::Label("target".to_owned()),
360 nop_token(),
361 ];
362 let layout = compute_layout(&tokens).unwrap();
363 assert_eq!(layout.symbols.resolve("target"), Some(8));
364 }
365
366 #[test]
367 fn layout_align_pads_offset() {
368 let tokens = vec![
369 AsmToken::Section(SectionKind::Text),
370 AsmToken::DataU8(0xAB),

Callers

nothing calls this directly

Calls 4

compute_layoutFunction · 0.85
encodeFunction · 0.85
text_bytesMethod · 0.80

Tested by

no test coverage detected