Documentation
¶
Overview ¶
Package object contains ObjectMapper implementations.
Index ¶
- func FindCallSite(a []CallSite, retAddr uint32) (i int, found bool)
- type CallMap
- type CallSite
- type FuncMap
- func (m *FuncMap) FindCall(retAddr uint32) (init bool, funcIndex, callIndex int, stackOffset int32, retOffset uint32)
- func (m *FuncMap) FindFunc(addr uint32) (index int, found bool)
- func (m *FuncMap) InitObjectMap(numImportFuncs, numOtherFuncs int)
- func (*FuncMap) PutCallSite(uint32, int32)
- func (m *FuncMap) PutFuncAddr(addr uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallMap ¶
CallMap implements compile.ObjectMapper. It stores function addresses, and sites of function calls, suspension points and traps. Instruction information is not stored.
Initial CallSites capacity may be allocated by initializing the field with a non-nil, empty array.
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 an offset within the text section (machine code) where a function call is made.
The struct size or layout will not change between minor versions.
type FuncMap ¶
type FuncMap struct {
FuncAddrs []uint32
}
FuncMap implements compile.ObjectMapper. It stores function addresses, but no call, trap or instruction information.
FuncAddrs may be preallocated by initializing the field with a non-nil, empty array.
func (*FuncMap) InitObjectMap ¶
func (*FuncMap) PutCallSite ¶
func (*FuncMap) PutFuncAddr ¶
Directories
¶
Path | Synopsis |
---|---|
Package debug contains DebugObjectMapper implementations.
|
Package debug contains DebugObjectMapper implementations. |
Package stack provides runtime call stack manipulation functions.
|
Package stack provides runtime call stack manipulation functions. |