sway_core

Function asm_to_bytecode

Source
pub fn asm_to_bytecode(
    handler: &Handler,
    asm: &mut CompiledAsm,
    source_map: &mut SourceMap,
    source_engine: &SourceEngine,
    build_config: &BuildConfig,
) -> Result<CompiledBytecode, ErrorEmitted>
Expand description

Given the assembly (opcodes), compile to CompiledBytecode, containing the asm in bytecode form.