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

Method translate_binary_op

src/lower2/translator.rs:942–958  ·  view source on GitHub ↗
(
        &mut self,
        dest: &str,
        op1: &oomir::Operand,
        op2: &oomir::Operand,
        jvm_op: Instruction,
    )

Source from the content-addressed store, hash-verified

940 let retype = self.constant_pool.add_method_ref(
941 pointer_class,
942 "retypeRelative",
943 &format!(
944 "(L{};JJJLjava/lang/String;)L{};",
945 oomir::POINTER_CLASS,
946 oomir::POINTER_CLASS
947 ),
948 )?;
949 self.jvm_instructions
950 .push(Instruction::Invokestatic(retype));
951 self.store_result(dest, result_ty)?;
952 Ok(true)
953 }
954
955 fn translate_deferred_pointer_query(
956 &mut self,
957 dest: &str,
958 result_ty: &oomir::Type,
959 source: &oomir::Operand,
960 method_name: &str,
961 args: &[oomir::Operand],

Callers 1

translate_instructionMethod · 0.80

Calls 2

load_operandMethod · 0.80
store_resultMethod · 0.80

Tested by

no test coverage detected