(
descriptor: &str,
is_static: bool,
this_class_name: Option<&str>,
is_constructor: bool,
)
| 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 | |
| 213 | pub(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>> { |
no test coverage detected