Class/Object

pli

DebugVM

Related Docs: object DebugVM | package pli

Permalink

class DebugVM extends VM

A variant of the virtual machine that prints one line of debugging output for every instruction executed.

To create a debug virtual machine, use the companion object’s apply methods.

Linear Supertypes
VM, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DebugVM
  2. VM
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DebugVM(bytecode: Array[Int])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. var codepointer: Int

    Permalink

    The adress in the bytecode array to read next.

    The adress in the bytecode array to read next.

    Definition Classes
    VM
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def execute(adress: Int, opcode: Int, parameter: Int): Unit

    Permalink

    Executes one already fetched and decoded bytecode instruction.

    Executes one already fetched and decoded bytecode instruction.

    Definition Classes
    DebugVMVM
  10. def fetch(): Int

    Permalink

    Fetches next integer from the bytecode array.

    Fetches next integer from the bytecode array.

    Definition Classes
    VM
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(offset: Int): Int

    Permalink

    Fetches a value from an arbitrary offset in the virtual machine's stack.

    Fetches a value from an arbitrary offset in the virtual machine's stack.

    Definition Classes
    VM
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def pop(): Int

    Permalink

    Pops a value from the virtual machine's stack.

    Pops a value from the virtual machine's stack.

    Definition Classes
    VM
  20. def push(value: Int): Unit

    Permalink

    Pushes a value to the virtual machine's stack.

    Pushes a value to the virtual machine's stack.

    Definition Classes
    VM
  21. def put(offset: Int, value: Int): Unit

    Permalink

    Stores a value at an arbitrary offset in the virtual machine's stack.

    Stores a value at an arbitrary offset in the virtual machine's stack. The value previously stored there is overwritten with the given value.

    Definition Classes
    VM
  22. def run(): Unit

    Permalink

    Fetches, decodes and executes bytecode instructions until an exit instruction is executed.

    Fetches, decodes and executes bytecode instructions until an exit instruction is executed.

    Definition Classes
    VM
  23. var running: Boolean

    Permalink

    Whether we are currently running.

    Whether we are currently running.

    Definition Classes
    VM
  24. var stack: Stack[Int]

    Permalink

    The virtual machine's stack.

    The virtual machine's stack.

    Definition Classes
    VM
  25. def step(): Unit

    Permalink

    Fetches, decodes and executes one bytecode instruction.

    Fetches, decodes and executes one bytecode instruction.

    Definition Classes
    VM
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from VM

Inherited from AnyRef

Inherited from Any

Ungrouped