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

Function common_object_class

src/lower2/stackmaps.rs:1155–1178  ·  view source on GitHub ↗
(a: &str, b: &str)

Source from the content-addressed store, hash-verified

1153fn transfer_instruction(
1154 instruction_index: usize,
1155 instruction: &Instruction,
1156 mut state: FrameState,
1157 local_hints: &[FrameValue],
1158 constant_pool: &ConstantPool,
1159 context: &str,
1160) -> jvm::Result<Vec<(usize, FrameState)>> {
1161 use Instruction as I;
1162
1163 match instruction {
1164 I::Nop => {}
1165 I::Aconst_null => state.stack.push(FrameValue::Null),
1166 I::Iconst_m1
1167 | I::Iconst_0
1168 | I::Iconst_1
1169 | I::Iconst_2
1170 | I::Iconst_3
1171 | I::Iconst_4
1172 | I::Iconst_5
1173 | I::Bipush(_)
1174 | I::Sipush(_) => state.stack.push(FrameValue::Integer),
1175 I::Lconst_0 | I::Lconst_1 => state.stack.push(FrameValue::Long),
1176 I::Fconst_0 | I::Fconst_1 | I::Fconst_2 => state.stack.push(FrameValue::Float),
1177 I::Dconst_0 | I::Dconst_1 => state.stack.push(FrameValue::Double),
1178 I::Ldc(index) => state
1179 .stack
1180 .push(frame_value_from_ldc(constant_pool, u16::from(*index))?),
1181 I::Ldc_w(index) => state

Callers 1

merge_valueFunction · 0.85

Calls 2

nested_parent_classFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected