Documentation ¶
Index ¶
- func NewGolangAsmNode(p *obj.Prog) asm.Node
- type GolangAsmBaseAssembler
- func (a *GolangAsmBaseAssembler) AddInstruction(next *obj.Prog)
- func (a *GolangAsmBaseAssembler) AddOnGenerateCallBack(cb func([]byte) error)
- func (a *GolangAsmBaseAssembler) Assemble() ([]byte, error)
- func (a *GolangAsmBaseAssembler) BuildJumpTable(table []byte, labelInitialInstructions []asm.Node)
- func (a *GolangAsmBaseAssembler) NewProg() (prog *obj.Prog)
- func (a *GolangAsmBaseAssembler) SetJumpTargetOnNext(nodes ...asm.Node)
- type GolangAsmNode
- func (n *GolangAsmNode) AssignDestinationConstant(value asm.ConstantValue)
- func (n *GolangAsmNode) AssignJumpTarget(target asm.Node)
- func (n *GolangAsmNode) AssignSourceConstant(value asm.ConstantValue)
- func (n *GolangAsmNode) OffsetInBinary() asm.NodeOffsetInBinary
- func (n *GolangAsmNode) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GolangAsmBaseAssembler ¶
type GolangAsmBaseAssembler struct {
// contains filtered or unexported fields
}
GolangAsmBaseAssembler implements *part of* AssemblerBase for golang-asm library.
func NewGolangAsmBaseAssembler ¶
func NewGolangAsmBaseAssembler(arch string) (*GolangAsmBaseAssembler, error)
func (*GolangAsmBaseAssembler) AddInstruction ¶
func (a *GolangAsmBaseAssembler) AddInstruction(next *obj.Prog)
AddInstruction is used in architecture specific assembler implementation for golang-asm.
func (*GolangAsmBaseAssembler) AddOnGenerateCallBack ¶
func (a *GolangAsmBaseAssembler) AddOnGenerateCallBack(cb func([]byte) error)
AddOnGenerateCallBack implements the same method as documented on asm.AssemblerBase.
func (*GolangAsmBaseAssembler) Assemble ¶
func (a *GolangAsmBaseAssembler) Assemble() ([]byte, error)
Assemble implements the same method as documented on asm.AssemblerBase.
func (*GolangAsmBaseAssembler) BuildJumpTable ¶
func (a *GolangAsmBaseAssembler) BuildJumpTable(table []byte, labelInitialInstructions []asm.Node)
BuildJumpTable implements the same method as documented on asm.AssemblerBase.
func (*GolangAsmBaseAssembler) NewProg ¶
func (a *GolangAsmBaseAssembler) NewProg() (prog *obj.Prog)
NewProg is used in architecture specific assembler implementation for golang-asm.
func (*GolangAsmBaseAssembler) SetJumpTargetOnNext ¶
func (a *GolangAsmBaseAssembler) SetJumpTargetOnNext(nodes ...asm.Node)
SetJumpTargetOnNext implements the same method as documented on asm.AssemblerBase.
type GolangAsmNode ¶
type GolangAsmNode struct {
// contains filtered or unexported fields
}
GolangAsmNode implements Node for golang-asm library.
func (*GolangAsmNode) AssignDestinationConstant ¶
func (n *GolangAsmNode) AssignDestinationConstant(value asm.ConstantValue)
AssignDestinationConstant implements the same method as documented on asm.Node.
func (*GolangAsmNode) AssignJumpTarget ¶
func (n *GolangAsmNode) AssignJumpTarget(target asm.Node)
AssignJumpTarget implements the same method as documented on asm.Node.
func (*GolangAsmNode) AssignSourceConstant ¶
func (n *GolangAsmNode) AssignSourceConstant(value asm.ConstantValue)
AssignSourceConstant implements the same method as documented on asm.Node.
func (*GolangAsmNode) OffsetInBinary ¶
func (n *GolangAsmNode) OffsetInBinary() asm.NodeOffsetInBinary
OffsetInBinary implements the same method as documented on asm.Node.
func (*GolangAsmNode) String ¶
func (n *GolangAsmNode) String() string
String implements fmt.Stringer.