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

Method initialize_object

src/lower2/stackmaps.rs:151–163  ·  view source on GitHub ↗
(&mut self, uninitialized: &FrameValue, class_name: &str)

Source from the content-addressed store, hash-verified

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 {
153 locals.resize(index + width, FrameValue::Top);
154 }
155
156 if index > 0 && locals[index - 1].is_category2() {
157 locals[index - 1] = FrameValue::Top;
158 }
159 locals[index] = value;
160 if width == 2 {
161 locals[index + 1] = FrameValue::Top;
162 }
163 }
164
165 fn initialize_object(&mut self, uninitialized: &FrameValue, class_name: &str) {
166 let initialized = FrameValue::Object(normalize_class_name(class_name).into());

Callers 1

apply_invokeFunction · 0.80

Calls 1

normalize_class_nameFunction · 0.85

Tested by

no test coverage detected