Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InsnMap ¶
type InsnMap struct { TrapMap Insns []InsnMapping // contains filtered or unexported fields }
InsnMap is an object map which stores all available function, call, trap and instruction information. The Mapper method must be used to obtain an actual ObjectMapper implementation.
type InsnMapping ¶
type InsnMapping struct { ObjectPos uint32 // Machine code offset in bytes. SourcePos uint32 // WebAssembly code offset in bytes. BlockLen int32 // Length of data block (when SourcePos is 0). }
Instruction mapping from machine code to WebAssembly. SourcePos is zero if ObjectPos contains non-executable data interleaved with the code.
type ReadTeller ¶ added in v0.27.0
ReadTeller is a reader which knows how many bytes have been read.
func NewReadTeller ¶ added in v0.27.0
func NewReadTeller(r reader.R) ReadTeller
NewReadTeller wraps a reader into one which tracks the read position.
type TrapMap ¶ added in v0.21.0
type TrapMap struct { object.CallMap // Function calls and recoverable (portable) traps. TrapSites []object.CallSite // Unrecoverable (or nonportable) traps. }
TrapMap implements compile.DebugObjectMapper. It stores function addresses, and all call and trap sites. Instruction information is not stored.
func (TrapMap) PutDataBlock ¶ added in v0.28.1
func (TrapMap) PutInsnAddr ¶ added in v0.28.1
func (*TrapMap) PutTrapSite ¶ added in v0.21.0
Click to show internal directories.
Click to hide internal directories.