rtda

package
v0.0.0-...-6774e02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	// contains filtered or unexported fields
}

stack frame

func NewFrameCh04

func NewFrameCh04(maxLocals, maxStack uint) *Frame

testCh04 used

func (*Frame) LocalVars

func (self *Frame) LocalVars() LocalVars

getters & setters

func (*Frame) Method

func (self *Frame) Method() *heap.Method

func (*Frame) NextPC

func (self *Frame) NextPC() int

func (*Frame) OperandStack

func (self *Frame) OperandStack() *OperandStack

func (*Frame) SetNextPC

func (self *Frame) SetNextPC(nextPC int)

func (*Frame) Thread

func (self *Frame) Thread() *Thread

type LocalVars

type LocalVars []Slot

func (LocalVars) GetDouble

func (self LocalVars) GetDouble(index uint) float64

func (LocalVars) GetFloat

func (self LocalVars) GetFloat(index uint) float32

func (LocalVars) GetInt

func (self LocalVars) GetInt(index uint) int32

func (LocalVars) GetLong

func (self LocalVars) GetLong(index uint) int64

func (LocalVars) GetRef

func (self LocalVars) GetRef(index uint) *heap.Object

func (LocalVars) SetDouble

func (self LocalVars) SetDouble(index uint, val float64)

double consumes two slots

func (LocalVars) SetFloat

func (self LocalVars) SetFloat(index uint, val float32)

func (LocalVars) SetInt

func (self LocalVars) SetInt(index uint, val int32)

func (LocalVars) SetLong

func (self LocalVars) SetLong(index uint, val int64)

long consumes two slots

func (LocalVars) SetRef

func (self LocalVars) SetRef(index uint, ref *heap.Object)

type OperandStack

type OperandStack struct {
	// contains filtered or unexported fields
}

func (*OperandStack) PopDouble

func (self *OperandStack) PopDouble() float64

func (*OperandStack) PopFloat

func (self *OperandStack) PopFloat() float32

func (*OperandStack) PopInt

func (self *OperandStack) PopInt() int32

func (*OperandStack) PopLong

func (self *OperandStack) PopLong() int64

func (*OperandStack) PopRef

func (self *OperandStack) PopRef() *heap.Object

func (*OperandStack) PopSlot

func (self *OperandStack) PopSlot() Slot

func (*OperandStack) PushDouble

func (self *OperandStack) PushDouble(val float64)

double consumes two slots

func (*OperandStack) PushFloat

func (self *OperandStack) PushFloat(val float32)

func (*OperandStack) PushInt

func (self *OperandStack) PushInt(val int32)

func (*OperandStack) PushLong

func (self *OperandStack) PushLong(val int64)

long consumes two slots

func (*OperandStack) PushRef

func (self *OperandStack) PushRef(ref *heap.Object)

func (*OperandStack) PushSlot

func (self *OperandStack) PushSlot(slot Slot)

type Slot

type Slot struct {
	// contains filtered or unexported fields
}

type Stack

type Stack struct {
	// contains filtered or unexported fields
}

jvm stack

type Thread

type Thread struct {
	// contains filtered or unexported fields
}

JVM

Thread
  pc
  Stack
    Frame
      LocalVars
      OperandStack

func NewThread

func NewThread() *Thread

func (*Thread) CurrentFrame

func (self *Thread) CurrentFrame() *Frame

func (*Thread) NewFrame

func (self *Thread) NewFrame(method *heap.Method) *Frame

func (*Thread) NewFrameCh05

func (self *Thread) NewFrameCh05(maxLocals, maxStack uint) *Frame

func (*Thread) PC

func (self *Thread) PC() int

func (*Thread) PopFrame

func (self *Thread) PopFrame() *Frame

func (*Thread) PushFrame

func (self *Thread) PushFrame(frame *Frame)

func (*Thread) SetPC

func (self *Thread) SetPC(pc int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL