MCPcopy Create free account

hub / github.com/IntegralPilot/rustc_codegen_jvm / functions

Functions655 in github.com/IntegralPilot/rustc_codegen_jvm

↓ 385 callersMethodto_string
(&self)
src/oomir.rs:296
↓ 166 callersMethodlen
(String value)
library/src/main/java/org/rustlang/primitives/RustString.java:16
↓ 74 callersMethodadd_class
(&mut self, name: S)
src/lower2/constant_pool.rs:170
↓ 72 callersMethodload_operand
Appends JVM instructions for loading an operand onto the stack.
src/lower2/translator.rs:864
↓ 60 callersFunctionlocal_access
(kind: LocalKind, index: u16)
src/lower2/optimise2.rs:1632
↓ 58 callersMethodadd_method_ref
( &mut self, class_index: u16, name: N, descriptor: D, )
src/lower2/constant_pool.rs:193
↓ 51 callersMethodadd_utf8
(&mut self, value: S)
src/lower2/constant_pool.rs:150
↓ 47 callersFunctionty_to_oomir_type
Converts a Rust MIR type (`Ty`) to an OOMIR type (`oomir::Type`).
src/lower1/types.rs:879
↓ 44 callersMethodstore_result
Appends JVM instructions for storing the value currently on top of the stack into a local variable.
src/lower2/translator.rs:932
↓ 39 callersMethodpop
(&mut self, context: &str, instruction_index: usize)
src/lower2/stackmaps.rs:57
↓ 36 callersFunctionget_cast_instructions
Returns a sequence of instructions to cast a value of type `src` on the stack to type `dest`. Requires the constant pool for class/method references.
src/lower2/helpers.rs:188
↓ 32 callersFunctionget_operand_type
(operand: &oomir::Operand)
src/lower2/helpers.rs:603
↓ 29 callersFunctionrun_command
Runs a command and returns its process object.
CompareSize.py:9
↓ 26 callersMethodtranslate_binary_op
( &mut self, dest: &str, op1: &oomir::Operand, op2: &oomir::Operand, j
src/lower2/translator.rs:942
↓ 24 callersFunctionmake_jvm_safe
(input: &str)
src/lower1/place.rs:21
↓ 23 callersFunctionparse_constant_to_bigint
(c: &Constant)
src/oomir/interpret.rs:44
↓ 22 callersMethodto_jvm_descriptor
Returns the JVM type descriptor string (e.g., "I", "Ljava/lang/String;", "[I").
src/oomir.rs:820
↓ 21 callersFunctionoperand_var
(name: impl Into<String>, ty: oomir::Type)
src/lower1/types.rs:136
↓ 20 callersFunctionconvert_operand
Convert a MIR operand to an OOMIR operand.
src/lower1/operand.rs:25
↓ 20 callersFunctionrewrite_fixed_load
( kind: LocalKind, old_index: u16, slot_map: &BTreeMap<u16, u16>, touch: &mut F, )
src/lower2/optimise2.rs:1285
↓ 20 callersFunctionrewrite_fixed_store
( kind: LocalKind, old_index: u16, slot_map: &BTreeMap<u16, u16>, touch: &mut F, )
src/lower2/optimise2.rs:1299
↓ 20 callersFunctionstore_fixed
( state: &mut FrameState, local: u16, value: FrameValue, context: &str, instruction_index:
src/lower2/stackmaps.rs:1012
↓ 19 callersMethodstarts_with
(short[] value, short[] prefix)
library/src/main/java/org/rustlang/core/Core.java:69
↓ 18 callersMethodadd
(&mut self, constant: Constant)
src/lower2/constant_pool.rs:140
↓ 18 callersFunctionrewrite_operand
(operand: &mut Operand, aliases: &AliasMap)
src/optimise1/copyprop.rs:360
↓ 17 callersFunctioncollect_operand_use
(operand: &Operand, uses: &mut HashSet<String>)
src/optimise1/copyprop.rs:500
↓ 17 callersFunctionget_type_size
Returns the number of JVM local variable slots a type occupies (1 or 2).
src/lower2/helpers.rs:9
↓ 17 callersFunctionthread_u16_target
(instructions: &[Instruction], target: u16)
src/lower2/optimise2.rs:1459
↓ 16 callersFunctionnext_union_temp
(prefix: &str, counter: &mut usize)
src/lower1/types.rs:107
↓ 15 callersFunctionparse_constant_to_bigdecimal
(c: &Constant)
src/oomir/interpret.rs:69
↓ 15 callersMethodpop_reference
( &mut self, context: &str, instruction_index: usize, )
src/lower2/stackmaps.rs:83
↓ 12 callersMethodis_jvm_reference_type
Checks if the type corresponds to a JVM reference type (Object, Array, String, etc.) as opposed to a primitive (int, float, boolean, etc.) or Void.
src/oomir.rs:994
↓ 12 callersFunctionmake_store
(kind: LocalKind, index: u16)
src/lower2/optimise2.rs:1350
↓ 11 callersFunctionmake_load
(kind: LocalKind, index: u16)
src/lower2/optimise2.rs:1313
↓ 10 callersFunctionemit_instructions_to_get_on_own
Generates OOMIR instructions to "get" the value from a Place. This function now supports nested projections by calling `emit_instructions_to_get_recur
src/lower1/place.rs:593
↓ 10 callersFunctionload_hint_for_instruction
(instruction: &Instruction)
src/lower2/stackmaps.rs:1444
↓ 10 callersMethodload_local
( &mut self, index: u16, local_hints: &[FrameValue], load_hint: FrameValue,
src/lower2/stackmaps.rs:100
↓ 10 callersMethodstore_local
(&mut self, index: u16, value: FrameValue)
src/lower2/stackmaps.rs:135
↓ 9 callersFunctioncompact_instructions
( instructions: Vec<Instruction>, keep: &[bool], )
src/lower2/optimise2.rs:834
↓ 9 callersFunctiongenerate_temp_var_name
(base_name: &str)
src/lower1/control_flow/rvalue.rs:32
↓ 9 callersMethodincrement_by
Increment the counter by a specific amount. Clamps at the limit. Returns the actual amount the counter was incremented by.
tests/binary/impl/src/main.rs:78
↓ 9 callersFunctionload_constant
Appends JVM instructions for loading a constant onto the stack.
src/lower2/consts.rs:93
↓ 9 callersFunctionrelative_switch_target_opt
(instruction_index: usize, offset: i32)
src/lower2/stackmaps.rs:1383
↓ 8 callersFunctionbigint_to_constant
(bi: BigInt)
src/oomir/interpret.rs:103
↓ 8 callersMethodeq
(float a, float b)
library/src/main/java/org/rustlang/primitives/F32.java:6
↓ 8 callersFunctiongenerate_adt_jvm_class_name
Generate a JVM-safe class name for an ADT (struct/enum) including readable generic substitution tokens. Falls back to a hashed last segment when the f
src/lower1/types.rs:1366
↓ 8 callersFunctionget_int_const_instr
Helper to get the appropriate integer constant loading instruction
src/lower2/consts.rs:9
↓ 8 callersMethodis_category2
(&self)
src/lower2/stackmaps.rs:32
↓ 8 callersFunctionis_zero
(op: &Operand)
src/optimise1/dataflow.rs:1425
↓ 8 callersMethodis_zero
(&self)
src/oomir.rs:637
↓ 8 callersFunctionlocal_store
(instruction: &Instruction)
src/lower2/optimise2.rs:1594
↓ 8 callersFunctionmono_fn_name_from_instance
Generate a JVM-safe function name for a (possibly monomorphized) function instance. Attempts to generate a readable name by appending sanitized gener
src/lower1/naming.rs:30
↓ 8 callersFunctionread_constant_value_from_memory
Reads a constant value of type `ty` from the `allocation` starting at `offset`. Eventually, this recursive function will replace the hardcoded/nested
src/lower1/operand/experimental.rs:24
↓ 8 callersFunctionrun_command
Runs a command, prints it, and checks for errors.
build.py:61
↓ 8 callersFunctionwrite_to_file
(path: Path, content: str)
Instrument.py:44
↓ 7 callersFunctionconvert
( state: &mut FrameState, value: FrameValue, context: &str, instruction_index: usize, )
src/lower2/stackmaps.rs:1082
↓ 7 callersFunctionlocal_load
(instruction: &Instruction)
src/lower2/optimise2.rs:1556
↓ 7 callersFunctionnormalize_class_name
(class_name: &str)
src/lower2/stackmaps.rs:1684
↓ 7 callersMethodpop_category1
( &mut self, context: &str, instruction_index: usize, )
src/lower2/stackmaps.rs:66
↓ 7 callersFunctionrun_command
Runs a command and captures its output, printing the command first.
Investigate.py:14
↓ 6 callersMethodadd_field_ref
( &mut self, class_index: u16, name: N, descriptor: D, )
src/lower2/constant_pool.rs:180
↓ 6 callersFunctionatom
(protons: u32)
tests/binary/modules/src/main.rs:39
↓ 6 callersFunctionbigdecimal_to_constant
(bd: BigDecimal)
src/oomir/interpret.rs:111
↓ 6 callersFunctionfmt_seconds
(value: float)
Instrument.py:62
↓ 6 callersFunctionget_load_instruction
Gets the appropriate type-specific load instruction.
src/lower2/helpers.rs:31
↓ 6 callersFunctionget_place_type
Helper to get the OOMIR type for a Place.
src/lower1/place.rs:575
↓ 6 callersMethodget_type
(&self)
src/oomir.rs:546
↓ 6 callersMethodload_call_argument
Helper to load an operand specifically for a function call argument. Handles Reference/MutableReference
src/lower2/translator.rs:3501
↓ 6 callersFunctionlocal_width
(kind: LocalKind)
src/lower2/optimise2.rs:1642
↓ 6 callersFunctionrun_command
(cmd: list, cwd=None)
Tester.py:35
↓ 6 callersMethodtranslate_comparison_op
( &mut self, dest: &str, op1: &oomir::Operand, op2: &oomir::Operand, c
src/lower2/translator.rs:1120
↓ 6 callersFunctionunify_ops_type
--- Updated unify_ops_type ---
src/oomir/interpret.rs:278
↓ 6 callersFunctionupdate_state_based_on_operand
Helper to update state when an instruction simplifies to assigning one operand to the destination E.g., a + 0 = a. The state of 'dest' should become t
src/optimise1/dataflow.rs:1435
↓ 6 callersFunctionwrite_to_file
(path: str, content: str)
Tester.py:28
↓ 6 callersFunctionwrite_to_file
Writes content to a file, creating parent directories if they don't exist.
Investigate.py:28
↓ 5 callersMethodaccumulate
(&mut self, value: i32)
tests/binary/traits/src/main.rs:25
↓ 5 callersMethodadd_name_and_type
( &mut self, name: N, descriptor: D, )
src/lower2/constant_pool.rs:219
↓ 5 callersFunctionanalyze_local_liveness
(instructions: &[Instruction])
src/lower2/optimise2.rs:1035
↓ 5 callersFunctioncompare_constants
Helper for comparisons
src/oomir/interpret.rs:462
↓ 5 callersFunctionfn_ptr_signature_from_ty
( ty: Ty<'tcx>, tcx: TyCtxt<'tcx>, data_types: &mut HashMap<String, oomir::DataType>, instance
src/lower1/types.rs:40
↓ 5 callersFunctionget_placeholder_operand
( dest_place: &Place<'tcx>, mir: &Body<'tcx>, tcx: TyCtxt<'tcx>, instance: Instance<'tcx>,
src/lower1/operand.rs:1442
↓ 5 callersMethodis_jvm_primitive_like
Checks if the type is treated as a primitive on the JVM stack (byte, short, int, long, float, double, char, boolean).
src/oomir.rs:1024
↓ 5 callersMethodmerge_data_types
Helper function to merge data types into the module Ensure no dups (if there are, give the older one precedence)
src/oomir.rs:60
↓ 5 callersMethodname
(&self)
src/lib.rs:617
↓ 5 callersFunctionprotected_instruction_indices
(instructions: &[Instruction])
src/lower2/optimise2.rs:822
↓ 5 callersMethodreadField
(Object value, String name)
library/src/main/java/org/rustlang/core/Core.java:147
↓ 5 callersFunctionread_from_file
(path: str)
Tester.py:24
↓ 5 callersFunctionrun_command
(cmd: list[str], cwd: Path | None = None, env: dict[str, str] | None = None)
Instrument.py:49
↓ 5 callersFunctionscalar_int_to_oomir_constant
Converts a Rust MIR Scalar::Int into the appropriate OOMIR Constant based on the type.
src/lower1/operand.rs:1502
↓ 5 callersFunctionshort_hash
Generates a short hash of the input string. The hash is truncated to the specified length to ensure it fits within JVM class name constraints.
src/lower1/types.rs:1294
↓ 5 callersFunctionstore_reference_fixed
( state: &mut FrameState, local: u16, context: &str, instruction_index: usize, )
src/lower2/stackmaps.rs:1024
↓ 5 callersMethodto_jvm_descriptor_with_explicit_params
(&self)
src/oomir.rs:239
↓ 4 callersFunctionadapt_value_for_field
( value_operand: oomir::Operand, field_ty: &oomir::Type, temp_base_name: &str, data_types: &Ha
src/lower1/control_flow/rvalue.rs:37
↓ 4 callersFunctionappend_boolean_false_check
(instructions: &mut Vec<Instruction>, false_fixups: &mut Vec<usize>)
src/lower2/jvm_gen.rs:329
↓ 4 callersFunctionbinary
( state: &mut FrameState, value: FrameValue, context: &str, instruction_index: usize, )
src/lower2/stackmaps.rs:1058
↓ 4 callersFunctionbump_i32_relative_switch_target
( target: &mut i32, source_index: usize, insert_at: usize, context: &str, )
src/lower2/translator.rs:3750
↓ 4 callersFunctioncheck_up_to
(current: u32, limit: u32)
tests/binary/collatz/src/main.rs:11
↓ 4 callersFunctioncode_attribute_for_descriptor
( cp: &mut InternedConstantPool, max_stack: u16, max_locals: u16, code: Vec<Instruction>,
src/lower2/jvm_gen.rs:50
↓ 4 callersFunctionensure_fn_ptr_interface
( signature: &oomir::Signature, data_types: &mut HashMap<String, oomir::DataType>, )
src/lower1/types.rs:67
↓ 4 callersFunctionfind_final_jar
Finds the final output JAR for a given test directory. Prioritizes the location suggested by the hint script.
CompareSize.py:27
next →1–100 of 655, ranked by callers