Module muse_lang::vm

source ·
Expand description

Virtual Machine types for executing Muse code.

Muse contains a compiler that generates an Intermediate Representation (IR), and a virtual machine that load and execute the intermediate representation.

These are the types that Muse uses that have both IR and loaded representations:

IRLoadedPurpose
BitcodeBlockCodeAn isolated block of code that can be executed.
BitcodeFunctionFunctionA function definition.
BitcodeModuleModuleA module definition.

Modules§

  • The Muse intermediate representation (IR).

Structs§

  • The number of arguments provided to a function.
  • A series of instructions that are ready to execute.
  • An asynchronous code execution.
  • A Muse function ready for execution.
  • A value was given that is not a valid register.
  • A Muse module.
  • The ID of a module loaded in a virtual machine.
  • A virtual machine register index.
  • An offset into a virtual machine stack.
  • Information about an executing stack frame.
  • A virtual machine that executes compiled Muse Code.
  • A virtual machine execution context.
  • The state of a Vm.

Enums§

Traits§

  • A set of arguments that can be loaded into a virtual machine when invoking a function.