Skip to main content

bubble_arg_call

Function bubble_arg_call 

Source
pub fn bubble_arg_call<'a>(
    evm_version: &EVMVersion,
    arg_parent_macro_name: String,
    arg_name: String,
    bytes: &mut BytecodeSegments,
    macro_def: &'a MacroDefinition,
    contract: &'a Contract,
    scope_mgr: &mut ScopeManager<'a>,
    offset: &mut usize,
    jump_table: &mut JumpTable,
    table_instances: &mut Jumps,
    utilized_tables: &mut Vec<TableDefinition>,
    span: &AstSpan,
    relax_jumps: bool,
) -> Result<(), CodegenError>
Expand description

Resolves a macro argument reference and generates its bytecode.

When a macro body contains <arg>, this resolves what arg refers to (opcode, label, literal, or another macro call) and generates the appropriate bytecode.