import "github.com/tsavola/wag/object"
Package object contains ObjectMapper implementations.
CallMap implements compile.ObjectMapper. It stores function addresses, and sites of function calls and suspension points. Other trap and instruction information is not stored.
Initial CallSites capacity may be allocated by initializing the field with a non-nil, empty array.
func (m *CallMap) FindCall(retAddr uint32, ) (init bool, funcIndex, callIndex int, stackOffset int32, retOffset uint32)
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.
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 (m *FuncMap) FindCall(retAddr uint32, ) (init bool, funcIndex, callIndex int, stackOffset int32, retOffset uint32)
Path | Synopsis |
---|---|
abi | |
debug | Package debug contains DebugObjectMapper implementations. |
debug/dump | |
stack | Package stack provides runtime call stack manipulation functions. |
stack/stacktrace |
Package object imports 2 packages (graph) and is imported by 3 packages. Updated 2021-01-25. Refresh now. Tools for package owners.