Documentation ¶
Index ¶
- type InsnMap
- func (m *InsnMap) FindAddr(retAddr int32) (funcIndex, retInsnIndex, stackOffset int32, initial, ok bool)
- func (m *InsnMap) GetFuncAddrs() []int32
- func (m *InsnMap) GetFuncInsns() [][]InsnMapping
- func (m *InsnMap) InitObjectMap(numImportFuncs, numOtherFuncs int)
- func (m *InsnMap) PutDataBlock(pos int32, length int)
- func (m *InsnMap) PutFuncAddr(pos int32)
- func (m *InsnMap) PutInsnAddr(pos int32)
- type InsnMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InsnMap ¶
type InsnMap struct { object.CallMap FuncInsns [][]InsnMapping // contains filtered or unexported fields }
InsnMap implements compile.ObjectMapper. It stores everything.
func (*InsnMap) GetFuncAddrs ¶ added in v0.8.0
func (*InsnMap) GetFuncInsns ¶ added in v0.8.0
func (m *InsnMap) GetFuncInsns() [][]InsnMapping
func (*InsnMap) InitObjectMap ¶
func (*InsnMap) PutDataBlock ¶ added in v0.8.0
func (*InsnMap) PutFuncAddr ¶
func (*InsnMap) PutInsnAddr ¶
type InsnMapping ¶
type InsnMapping struct { ObjectOffset int32 // Machine code byte position within a function SourceIndex int32 // WebAssembly instruction index within a function BlockLength int // Length of data block (when SourceIndex is -1) }
Instruction mapping from machine code to WebAssembly. SourceIndex is -1 if ObjectOffset contains non-executable data interleaved with the code.
Click to show internal directories.
Click to hide internal directories.