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

Function final_conversion

src/lower2/helpers.rs:593–601  ·  view source on GitHub ↗

Final narrowing for byte/short/char

(dest: &Type)

Source from the content-addressed store, hash-verified

591 Type::I16 => Some(JI::I2s),
592 Type::U16 | Type::Char => Some(JI::I2c),
593 _ => None,
594 }
595 }
596
597 fn numbers_call(
598 cp: &mut InternedConstantPool,
599 name: &str,
600 descriptor: &str,
601 ) -> Result<Instruction, jvm::Error> {
602 let class = cp.add_class("org/rustlang/runtime/Numbers")?;
603 let method = cp.add_method_ref(class, name, descriptor)?;
604 Ok(JI::Invokestatic(method))

Callers 2

bigint_to_primFunction · 0.85
bigdec_to_primFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected