Documentation ¶
Index ¶
- Constants
- Variables
- func SortDedupUint64(a []uint64) []uint64
- type ByteRange
- func (*ByteRange) Descriptor() ([]byte, []int)deprecated
- func (x *ByteRange) End() int64
- func (x *ByteRange) GetEnd() int64
- func (x *ByteRange) GetSize() uint32
- func (x *ByteRange) GetStart() int64
- func (*ByteRange) ProtoMessage()
- func (x *ByteRange) ProtoReflect() protoreflect.Message
- func (x *ByteRange) Reset()
- func (x *ByteRange) String() string
- type Function
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)deprecated
- func (x *Instance) GetEntryFunc() *Function
- func (x *Instance) GetGlobalsSize() uint32
- func (x *Instance) GetMaxMemorySize() uint32
- func (x *Instance) GetMemorySize() uint32
- func (x *Instance) GetSnapshot() *Snapshot
- func (x *Instance) GetStackSize() uint32
- func (x *Instance) GetStackUsage() uint32
- func (x *Instance) GetStartFunc() *Function
- func (x *Instance) GetTextAddr() uint64
- func (*Instance) ProtoMessage()
- func (x *Instance) ProtoReflect() protoreflect.Message
- func (x *Instance) Reset()
- func (x *Instance) String() string
- type Program
- func (*Program) Descriptor() ([]byte, []int)deprecated
- func (man *Program) EntryFunc(entryIndex int) *Function
- func (x *Program) GetBufferSection() *ByteRange
- func (x *Program) GetBufferSectionHeaderSize() uint32
- func (x *Program) GetCallSitesSize() uint32
- func (x *Program) GetEntryAddrs() map[uint32]uint32
- func (x *Program) GetEntryIndexes() map[string]uint32
- func (x *Program) GetExportSectionWrap() *ByteRange
- func (x *Program) GetFuncAddrsSize() uint32
- func (x *Program) GetGlobalTypes() []byte
- func (x *Program) GetGlobalsSize() uint32
- func (x *Program) GetLibraryChecksum() uint64
- func (x *Program) GetMemoryDataSize() uint32
- func (x *Program) GetMemorySize() uint32
- func (x *Program) GetMemorySizeLimit() int64
- func (x *Program) GetModuleSize() int64
- func (x *Program) GetRandom() bool
- func (x *Program) GetSections() []*ByteRange
- func (x *Program) GetSnapshot() *Snapshot
- func (x *Program) GetSnapshotSection() *ByteRange
- func (x *Program) GetStackSection() *ByteRange
- func (x *Program) GetStackUsage() uint32
- func (x *Program) GetStartFunc() *Function
- func (x *Program) GetTextAddr() uint64
- func (x *Program) GetTextRevision() int32
- func (x *Program) GetTextSize() uint32
- func (man *Program) InitEntryFuncs(mod compile.Module, funcAddrs []uint32)
- func (*Program) ProtoMessage()
- func (x *Program) ProtoReflect() protoreflect.Message
- func (x *Program) Reset()
- func (x *Program) String() string
- type Snapshot
- func (s *Snapshot) Clone() *Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot) GetBreakpoints() []uint64
- func (x *Snapshot) GetFlags() uint64
- func (x *Snapshot) GetMonotonicTime() uint64
- func (x *Snapshot) GetResult() int32
- func (x *Snapshot) GetTrap() int32
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
Constants ¶
View Source
const ( MaxSize = 4096 // Including header. MaxBreakpoints = 100 )
Variables ¶
View Source
var File_internal_manifest_manifest_proto protoreflect.FileDescriptor
Functions ¶
func SortDedupUint64 ¶
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) ProtoMessage ¶
func (*ByteRange) ProtoMessage()
func (*ByteRange) ProtoReflect ¶
func (x *ByteRange) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) ProtoReflect ¶
func (x *Function) ProtoReflect() protoreflect.Message
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) GetEntryFunc ¶
func (*Instance) GetGlobalsSize ¶
func (*Instance) GetMaxMemorySize ¶
func (*Instance) GetMemorySize ¶
func (*Instance) GetSnapshot ¶
func (*Instance) GetStackSize ¶
func (*Instance) GetStackUsage ¶
func (*Instance) GetStartFunc ¶
func (*Instance) GetTextAddr ¶
func (*Instance) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
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) GetBufferSection ¶
func (*Program) GetBufferSectionHeaderSize ¶
func (*Program) GetCallSitesSize ¶
func (*Program) GetEntryAddrs ¶
func (*Program) GetEntryIndexes ¶
func (*Program) GetExportSectionWrap ¶
func (*Program) GetFuncAddrsSize ¶
func (*Program) GetGlobalTypes ¶
func (*Program) GetGlobalsSize ¶
func (*Program) GetLibraryChecksum ¶
func (*Program) GetMemoryDataSize ¶
func (*Program) GetMemorySize ¶
func (*Program) GetMemorySizeLimit ¶
func (*Program) GetModuleSize ¶
func (*Program) GetSections ¶
func (*Program) GetSnapshot ¶
func (*Program) GetSnapshotSection ¶
func (*Program) GetStackSection ¶
func (*Program) GetStackUsage ¶
func (*Program) GetStartFunc ¶
func (*Program) GetTextAddr ¶
func (*Program) GetTextRevision ¶
func (*Program) GetTextSize ¶
func (*Program) InitEntryFuncs ¶
func (*Program) ProtoMessage ¶
func (*Program) ProtoMessage()
func (*Program) ProtoReflect ¶
func (x *Program) ProtoReflect() protoreflect.Message
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 (*Snapshot) Descriptor
deprecated
func (*Snapshot) GetBreakpoints ¶
func (*Snapshot) GetMonotonicTime ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.