module Crystal::Repl::Disassembler

Overview

Allows showing bytecode in a human-readable way.

TODO right now local variables are not very nicely.

Defined in:

compiler/crystal/interpreter/disassembler.cr

Class Method Summary

Class Method Detail

def self.disassemble(context : Context, instructions : CompiledInstructions, local_vars : LocalVars) : String #

[View source]
def self.disassemble(context : Context, compiled_def : CompiledDef) : String #

[View source]
def self.disassemble(context : Context, compiled_block : CompiledBlock) : String #

[View source]
def self.disassemble_one(context : Context, instructions : CompiledInstructions, ip : Int32, local_vars : LocalVars, io : IO) : Int32 #

[View source]