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

Method store_local

src/lower2/stackmaps.rs:135–149  ·  view source on GitHub ↗
(&mut self, index: u16, value: FrameValue)

Source from the content-addressed store, hash-verified

133 if value == FrameValue::Top {
134 return Err(jvm::Error::VerificationError {
135 context: context.to_string(),
136 message: format!(
137 "Loaded uninitialized local {index} at instruction {instruction_index}"
138 ),
139 });
140 }
141 }
142 self.store_local(index, value.clone());
143 }
144 self.stack.push(value);
145 Ok(())
146 }
147
148 fn store_local(&mut self, index: u16, value: FrameValue) {
149 let index = index as usize;
150 let width = if value.is_category2() { 2 } else { 1 };
151 let locals = Arc::make_mut(&mut self.locals);
152 if locals.len() < index + width {

Callers 4

load_localMethod · 0.80
transfer_instructionFunction · 0.80
store_fixedFunction · 0.80
store_reference_fixedFunction · 0.80

Calls 2

is_category2Method · 0.80
lenMethod · 0.80

Tested by

no test coverage detected