insnmap

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 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 Map added in v0.3.1

type Map struct {
	callmap.Map
	FuncInsns [][]Mapping
	// contains filtered or unexported fields
}

Map implements Mapper. It stores everything.

func (*Map) InitModule added in v0.3.1

func (m *Map) InitModule(numImportFuncs, numOtherFuncs int)

func (*Map) PutFuncAddr added in v0.3.1

func (m *Map) PutFuncAddr(pos meta.TextAddr)

func (*Map) PutInsnAddr added in v0.3.1

func (m *Map) PutInsnAddr(absPos meta.TextAddr)

type Mapping

type Mapping struct {
	ObjectOffset int32 // Machine code byte position within a function
	SourceIndex  int32 // WebAssembly instruction count within a function
}

Mapping from machine code instruction to WebAssembly instruction.

Jump to

Keyboard shortcuts

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