object

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: BSD-3-Clause Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallMap

type CallMap struct {
	FuncMap
	CallSites []CallSite
}

CallMap implements compile.ObjectMap. It stores all function addresses and call sites, but no instruction information.

func (*CallMap) InitObjectMap

func (m *CallMap) InitObjectMap(numImportFuncs, numOtherFuncs int)

func (*CallMap) PutCallSite

func (m *CallMap) PutCallSite(retAddr int32, stackOffset int32)

type CallSite

type CallSite struct {
	ReturnAddr  int32 // The address immediately after the call instruction
	StackOffset int32 // Calling function's stack usage at time of call
}

CallSite represents a position within the text section (machine code) where a function call is made.

type FuncMap

type FuncMap struct {
	FuncAddrs []int32
}

FuncMap implements compile.ObjectMap. It stores all function addresses, but no call or instruction information.

func (*FuncMap) InitObjectMap

func (m *FuncMap) InitObjectMap(numImportFuncs, numOtherFuncs int)

func (*FuncMap) PutCallSite

func (*FuncMap) PutCallSite(int32, int32)

func (*FuncMap) PutFuncAddr

func (m *FuncMap) PutFuncAddr(addr int32)

func (*FuncMap) PutImportFuncAddr

func (m *FuncMap) PutImportFuncAddr(addr int32)

func (*FuncMap) PutInsnAddr

func (*FuncMap) PutInsnAddr(int32)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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