MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / parse_local_index

Method parse_local_index

src/lower2/translator.rs:848–855  ·  view source on GitHub ↗
(var_name: &str)

Source from the content-addressed store, hash-verified

846
847 let source_slot = self.get_or_assign_local(source_name, source_ty);
848 let source_offsets = self.pointer_offset_slots.get(&source_slot).copied();
849 let dest_slot = self.get_or_assign_local(dest, result_ty);
850 let dest_offsets = self.pointer_offset_slots(dest_slot);
851
852 self.jvm_instructions
853 .push(get_load_instruction(source_ty, source_slot)?);
854 self.jvm_instructions
855 .push(get_store_instruction(result_ty, dest_slot)?);
856
857 let byte_arithmetic = matches!(method_name, "byte_add" | "byte_sub" | "byte_offset");
858 self.load_pointer_offset_component(source_offsets, byte_arithmetic)?;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected