manifest

package
v0.0.0-...-9ccd474 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSize        = 4096 // Including header.
	MaxBreakpoints = 100
)

Variables

View Source
var File_internal_manifest_manifest_proto protoreflect.FileDescriptor

Functions

func SortDedupUint64

func SortDedupUint64(a []uint64) []uint64

Types

type ByteRange

type ByteRange struct {
	Start int64  `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	Size  uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*ByteRange) Descriptor deprecated

func (*ByteRange) Descriptor() ([]byte, []int)

Deprecated: Use ByteRange.ProtoReflect.Descriptor instead.

func (*ByteRange) End

func (x *ByteRange) End() int64

func (*ByteRange) GetEnd

func (x *ByteRange) GetEnd() int64

func (*ByteRange) GetSize

func (x *ByteRange) GetSize() uint32

func (*ByteRange) GetStart

func (x *ByteRange) GetStart() int64

func (*ByteRange) ProtoMessage

func (*ByteRange) ProtoMessage()

func (*ByteRange) ProtoReflect

func (x *ByteRange) ProtoReflect() protoreflect.Message

func (*ByteRange) Reset

func (x *ByteRange) Reset()

func (*ByteRange) String

func (x *ByteRange) String() string

type Function

type Function struct {
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Addr  uint32 `protobuf:"varint,2,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*Function) Descriptor deprecated

func (*Function) Descriptor() ([]byte, []int)

Deprecated: Use Function.ProtoReflect.Descriptor instead.

func (*Function) GetAddr

func (x *Function) GetAddr() uint32

func (*Function) GetIndex

func (x *Function) GetIndex() uint32

func (*Function) ProtoMessage

func (*Function) ProtoMessage()

func (*Function) ProtoReflect

func (x *Function) ProtoReflect() protoreflect.Message

func (*Function) Reset

func (x *Function) Reset()

func (*Function) String

func (x *Function) String() string

type Instance

type Instance struct {
	TextAddr      uint64    `protobuf:"varint,1,opt,name=text_addr,json=textAddr,proto3" json:"text_addr,omitempty"`
	StackSize     uint32    `protobuf:"varint,2,opt,name=stack_size,json=stackSize,proto3" json:"stack_size,omitempty"`
	StackUsage    uint32    `protobuf:"varint,3,opt,name=stack_usage,json=stackUsage,proto3" json:"stack_usage,omitempty"`
	GlobalsSize   uint32    `protobuf:"varint,4,opt,name=globals_size,json=globalsSize,proto3" json:"globals_size,omitempty"`
	MemorySize    uint32    `protobuf:"varint,5,opt,name=memory_size,json=memorySize,proto3" json:"memory_size,omitempty"`
	MaxMemorySize uint32    `protobuf:"varint,6,opt,name=max_memory_size,json=maxMemorySize,proto3" json:"max_memory_size,omitempty"`
	StartFunc     *Function `protobuf:"bytes,7,opt,name=start_func,json=startFunc,proto3" json:"start_func,omitempty"`
	EntryFunc     *Function `protobuf:"bytes,8,opt,name=entry_func,json=entryFunc,proto3" json:"entry_func,omitempty"`
	Snapshot      *Snapshot `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// contains filtered or unexported fields
}

func (*Instance) Descriptor deprecated

func (*Instance) Descriptor() ([]byte, []int)

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetEntryFunc

func (x *Instance) GetEntryFunc() *Function

func (*Instance) GetGlobalsSize

func (x *Instance) GetGlobalsSize() uint32

func (*Instance) GetMaxMemorySize

func (x *Instance) GetMaxMemorySize() uint32

func (*Instance) GetMemorySize

func (x *Instance) GetMemorySize() uint32

func (*Instance) GetSnapshot

func (x *Instance) GetSnapshot() *Snapshot

func (*Instance) GetStackSize

func (x *Instance) GetStackSize() uint32

func (*Instance) GetStackUsage

func (x *Instance) GetStackUsage() uint32

func (*Instance) GetStartFunc

func (x *Instance) GetStartFunc() *Function

func (*Instance) GetTextAddr

func (x *Instance) GetTextAddr() uint64

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

func (x *Instance) ProtoReflect() protoreflect.Message

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type Program

type Program struct {
	LibraryChecksum         uint64            `protobuf:"fixed64,1,opt,name=library_checksum,json=libraryChecksum,proto3" json:"library_checksum,omitempty"`
	TextRevision            int32             `protobuf:"varint,2,opt,name=text_revision,json=textRevision,proto3" json:"text_revision,omitempty"`
	TextAddr                uint64            `protobuf:"varint,3,opt,name=text_addr,json=textAddr,proto3" json:"text_addr,omitempty"`
	TextSize                uint32            `protobuf:"varint,4,opt,name=text_size,json=textSize,proto3" json:"text_size,omitempty"`
	StackUsage              uint32            `protobuf:"varint,5,opt,name=stack_usage,json=stackUsage,proto3" json:"stack_usage,omitempty"`
	GlobalsSize             uint32            `protobuf:"varint,6,opt,name=globals_size,json=globalsSize,proto3" json:"globals_size,omitempty"`
	MemorySize              uint32            `protobuf:"varint,7,opt,name=memory_size,json=memorySize,proto3" json:"memory_size,omitempty"`
	MemorySizeLimit         int64             `protobuf:"zigzag64,8,opt,name=memory_size_limit,json=memorySizeLimit,proto3" json:"memory_size_limit,omitempty"`
	MemoryDataSize          uint32            `protobuf:"varint,9,opt,name=memory_data_size,json=memoryDataSize,proto3" json:"memory_data_size,omitempty"`
	ModuleSize              int64             `protobuf:"varint,10,opt,name=module_size,json=moduleSize,proto3" json:"module_size,omitempty"`
	Sections                []*ByteRange      `protobuf:"bytes,11,rep,name=sections,proto3" json:"sections,omitempty"`
	SnapshotSection         *ByteRange        `protobuf:"bytes,12,opt,name=snapshot_section,json=snapshotSection,proto3" json:"snapshot_section,omitempty"`
	ExportSectionWrap       *ByteRange        `protobuf:"bytes,13,opt,name=export_section_wrap,json=exportSectionWrap,proto3" json:"export_section_wrap,omitempty"`
	BufferSection           *ByteRange        `protobuf:"bytes,14,opt,name=buffer_section,json=bufferSection,proto3" json:"buffer_section,omitempty"`
	BufferSectionHeaderSize uint32            `` /* 136-byte string literal not displayed */
	StackSection            *ByteRange        `protobuf:"bytes,16,opt,name=stack_section,json=stackSection,proto3" json:"stack_section,omitempty"`
	GlobalTypes             []byte            `protobuf:"bytes,17,opt,name=global_types,json=globalTypes,proto3" json:"global_types,omitempty"` // Limited by wag's maxGlobals check.
	StartFunc               *Function         `protobuf:"bytes,18,opt,name=start_func,json=startFunc,proto3" json:"start_func,omitempty"`
	EntryIndexes            map[string]uint32 `` // Limited by func name len and wag's maxExports check.
	/* 187-byte string literal not displayed */
	EntryAddrs    map[uint32]uint32 `` /* 182-byte string literal not displayed */
	CallSitesSize uint32            `protobuf:"varint,21,opt,name=call_sites_size,json=callSitesSize,proto3" json:"call_sites_size,omitempty"`
	FuncAddrsSize uint32            `protobuf:"varint,22,opt,name=func_addrs_size,json=funcAddrsSize,proto3" json:"func_addrs_size,omitempty"`
	Random        bool              `protobuf:"varint,23,opt,name=random,proto3" json:"random,omitempty"`
	Snapshot      *Snapshot         `protobuf:"bytes,24,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// contains filtered or unexported fields
}

func (*Program) Descriptor deprecated

func (*Program) Descriptor() ([]byte, []int)

Deprecated: Use Program.ProtoReflect.Descriptor instead.

func (*Program) EntryFunc

func (man *Program) EntryFunc(entryIndex int) *Function

func (*Program) GetBufferSection

func (x *Program) GetBufferSection() *ByteRange

func (*Program) GetBufferSectionHeaderSize

func (x *Program) GetBufferSectionHeaderSize() uint32

func (*Program) GetCallSitesSize

func (x *Program) GetCallSitesSize() uint32

func (*Program) GetEntryAddrs

func (x *Program) GetEntryAddrs() map[uint32]uint32

func (*Program) GetEntryIndexes

func (x *Program) GetEntryIndexes() map[string]uint32

func (*Program) GetExportSectionWrap

func (x *Program) GetExportSectionWrap() *ByteRange

func (*Program) GetFuncAddrsSize

func (x *Program) GetFuncAddrsSize() uint32

func (*Program) GetGlobalTypes

func (x *Program) GetGlobalTypes() []byte

func (*Program) GetGlobalsSize

func (x *Program) GetGlobalsSize() uint32

func (*Program) GetLibraryChecksum

func (x *Program) GetLibraryChecksum() uint64

func (*Program) GetMemoryDataSize

func (x *Program) GetMemoryDataSize() uint32

func (*Program) GetMemorySize

func (x *Program) GetMemorySize() uint32

func (*Program) GetMemorySizeLimit

func (x *Program) GetMemorySizeLimit() int64

func (*Program) GetModuleSize

func (x *Program) GetModuleSize() int64

func (*Program) GetRandom

func (x *Program) GetRandom() bool

func (*Program) GetSections

func (x *Program) GetSections() []*ByteRange

func (*Program) GetSnapshot

func (x *Program) GetSnapshot() *Snapshot

func (*Program) GetSnapshotSection

func (x *Program) GetSnapshotSection() *ByteRange

func (*Program) GetStackSection

func (x *Program) GetStackSection() *ByteRange

func (*Program) GetStackUsage

func (x *Program) GetStackUsage() uint32

func (*Program) GetStartFunc

func (x *Program) GetStartFunc() *Function

func (*Program) GetTextAddr

func (x *Program) GetTextAddr() uint64

func (*Program) GetTextRevision

func (x *Program) GetTextRevision() int32

func (*Program) GetTextSize

func (x *Program) GetTextSize() uint32

func (*Program) InitEntryFuncs

func (man *Program) InitEntryFuncs(mod compile.Module, funcAddrs []uint32)

func (*Program) ProtoMessage

func (*Program) ProtoMessage()

func (*Program) ProtoReflect

func (x *Program) ProtoReflect() protoreflect.Message

func (*Program) Reset

func (x *Program) Reset()

func (*Program) String

func (x *Program) String() string

type Snapshot

type Snapshot struct {
	Flags         uint64   `protobuf:"varint,1,opt,name=flags,proto3" json:"flags,omitempty"`
	Trap          int32    `protobuf:"varint,2,opt,name=trap,proto3" json:"trap,omitempty"`
	Result        int32    `protobuf:"varint,3,opt,name=result,proto3" json:"result,omitempty"`
	MonotonicTime uint64   `protobuf:"varint,4,opt,name=monotonic_time,json=monotonicTime,proto3" json:"monotonic_time,omitempty"`
	Breakpoints   []uint64 `protobuf:"varint,5,rep,packed,name=breakpoints,proto3" json:"breakpoints,omitempty"`
	// contains filtered or unexported fields
}

func InflateSnapshot

func InflateSnapshot(s **Snapshot) *Snapshot

func (*Snapshot) Clone

func (s *Snapshot) Clone() *Snapshot

func (*Snapshot) Descriptor deprecated

func (*Snapshot) Descriptor() ([]byte, []int)

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetBreakpoints

func (x *Snapshot) GetBreakpoints() []uint64

func (*Snapshot) GetFlags

func (x *Snapshot) GetFlags() uint64

func (*Snapshot) GetMonotonicTime

func (x *Snapshot) GetMonotonicTime() uint64

func (*Snapshot) GetResult

func (x *Snapshot) GetResult() int32

func (*Snapshot) GetTrap

func (x *Snapshot) GetTrap() int32

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

func (x *Snapshot) ProtoReflect() protoreflect.Message

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

Jump to

Keyboard shortcuts

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