Chunk

class Chunk(val name: String, val insns: List<Insn>, val arity: Arity, upvalues: List<Upvalue>, id: UUID, val spans: List<Span>)

A chunk is a compiled piece of code.

Constructors

Link copied to clipboard
constructor(name: String, insns: List<Insn>, arity: Arity, upvalues: List<Upvalue>, id: UUID, spans: List<Span>)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
inner class Instance(state: State) : CallableValue

An instance of the chunk.

Properties

Link copied to clipboard

The arity of the chunk.

Link copied to clipboard

The instructions of the chunk.

Link copied to clipboard

The name of the chunk.

Link copied to clipboard

The spans of the chunk. Must be the same size as insns.

Functions

Link copied to clipboard
open override fun toString(): String

Provides a dissasembly of the chunk.