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

Function initial_locals_for_descriptor

src/lower2/stackmaps.rs:192–215  ·  view source on GitHub ↗
(
    descriptor: &str,
    is_static: bool,
    this_class_name: Option<&str>,
    is_constructor: bool,
)

Source from the content-addressed store, hash-verified

190 FrameValue::UninitializedThis
191 } else {
192 FrameValue::Object(
193 normalize_class_name(
194 owner_class_name
195 .or(function_owner_class)
196 .unwrap_or("java/lang/Object"),
197 )
198 .into(),
199 )
200 };
201 push_local_value(&mut locals, this_value);
202 }
203
204 let first_explicit_param = if is_static { 0 } else { 1 };
205 for (_, param_ty) in signature.params.iter().skip(first_explicit_param) {
206 if param_ty.has_jvm_value() {
207 push_local_value(&mut locals, frame_value_from_oomir_type(param_ty));
208 }
209 }
210 locals
211}
212
213pub(super) fn initial_locals_for_descriptor(
214 descriptor: &str,
215 is_static: bool,
216 this_class_name: Option<&str>,
217 is_constructor: bool,
218) -> jvm::Result<Vec<FrameValue>> {

Callers 1

Calls 3

normalize_class_nameFunction · 0.85
push_local_valueFunction · 0.85

Tested by

no test coverage detected