Documentation
¶
Overview ¶
Package object contains ObjectMapper implementations.
Index ¶
- type CallMap
- type CallSite
- type FuncMap
- func (m *FuncMap) FindAddr(retAddr uint32) (funcIndex, _ uint32, _ int32, initial, ok bool)
- func (m *FuncMap) InitObjectMap(numImportFuncs, numOtherFuncs int)
- func (*FuncMap) PutCallSite(uint32, int32)
- func (*FuncMap) PutDataBlock(uint32, int32)
- func (m *FuncMap) PutFuncAddr(addr uint32)
- func (m *FuncMap) PutImportFuncAddr(addr uint32)
- func (*FuncMap) PutInsnAddr(uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallMap ¶
CallMap implements compile.ObjectMapper. It stores all function addresses and call sites, but no instruction information.
func (*CallMap) InitObjectMap ¶
func (*CallMap) PutCallSite ¶
type CallSite ¶
type CallSite struct {
RetAddr uint32 // 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 []uint32
}
FuncMap implements compile.ObjectMapper. It stores all function addresses, but no call or instruction information.
func (*FuncMap) InitObjectMap ¶
func (*FuncMap) PutCallSite ¶
func (*FuncMap) PutDataBlock ¶ added in v0.8.0
func (*FuncMap) PutFuncAddr ¶
func (*FuncMap) PutImportFuncAddr ¶
func (*FuncMap) PutInsnAddr ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package file supplies the File type alias, which refers to an OS-dependent implementation.
|
Package file supplies the File type alias, which refers to an OS-dependent implementation. |
|
Package stack provides runtime call stack manipulation functions.
|
Package stack provides runtime call stack manipulation functions. |
Click to show internal directories.
Click to hide internal directories.