MCPcopy Index your code
hub / github.com/RustPython/RustPython / emit_load_const

Method emit_load_const

crates/codegen/src/compile.rs:9499–9502  ·  view source on GitHub ↗
(&mut self, constant: ConstantData)

Source from the content-addressed store, hash-verified

9497 }
9498
9499 fn emit_load_const(&mut self, constant: ConstantData) {
9500 let idx = self.arg_constant(constant);
9501 self.emit_arg(idx, |consti| Instruction::LoadConst { consti })
9502 }
9503
9504 /// Fold constant slice: if all parts are compile-time constants, emit LOAD_CONST(slice).
9505 fn try_fold_constant_slice(

Callers 15

starunpack_helperMethod · 0.80
unwind_fblockMethod · 0.80
compile_programMethod · 0.80
compile_block_exprMethod · 0.80
compile_nameMethod · 0.80
compile_statementMethod · 0.80
compile_type_paramsMethod · 0.80
compile_try_statementMethod · 0.80

Calls 2

arg_constantMethod · 0.80
emit_argMethod · 0.80

Tested by

no test coverage detected