Documentation
¶
Index ¶
- type InsnMap
- func (m *InsnMap) FindAddr(retAddr uint32) (funcIndex, callIndex, retInsnPos uint32, stackOffset int32, initial, ok bool)
- func (m *InsnMap) InitObjectMap(numImportFuncs, numOtherFuncs int)
- func (m *InsnMap) PutDataBlock(objectPos uint32, blockLen int32)
- func (m *InsnMap) PutInsnAddr(objectPos uint32)
- func (m *InsnMap) Reader(input reader.R) reader.R
- 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
Insns []InsnMapping
// contains filtered or unexported fields
}
InsnMap implements compile.ObjectMapper. It stores function addresses, call sites and instruction positions.
The WebAssembly module must be loaded using InsnMap's pass-through reader, or the source positions will be zero.
func (*InsnMap) InitObjectMap ¶
func (*InsnMap) PutDataBlock ¶ added in v0.8.0
func (*InsnMap) PutInsnAddr ¶
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.
Click to show internal directories.
Click to hide internal directories.