debug

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

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) FindAddr added in v0.8.0

func (m *InsnMap) FindAddr(retAddr int32) (funcIndex, retInsnIndex, stackOffset int32, initial, ok bool)

func (*InsnMap) GetFuncAddrs added in v0.8.0

func (m *InsnMap) GetFuncAddrs() []int32

func (*InsnMap) GetFuncInsns added in v0.8.0

func (m *InsnMap) GetFuncInsns() [][]InsnMapping

func (*InsnMap) InitObjectMap

func (m *InsnMap) InitObjectMap(numImportFuncs, numOtherFuncs int)

func (*InsnMap) PutDataBlock added in v0.8.0

func (m *InsnMap) PutDataBlock(pos int32, length int)

func (*InsnMap) PutFuncAddr

func (m *InsnMap) PutFuncAddr(pos int32)

func (*InsnMap) PutInsnAddr

func (m *InsnMap) PutInsnAddr(pos int32)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL