Versions in this module Expand all Collapse all v1 v1.1.3 Apr 4, 2023 v1.1.2 Apr 4, 2023 v1.1.1 Nov 24, 2022 v1.1.0 Nov 24, 2022 Changes in this version + const AFlushStackLength — darwin/amd64, linux/amd64, windows/amd64 + const ALoadGlobalsSliceHeader — darwin/amd64, linux/amd64, windows/amd64 + const ALoadLocalsFirstElem — darwin/amd64, linux/amd64, windows/amd64 + const APopWasmStack — darwin/amd64, linux/amd64, windows/amd64 + const APushWasmStack — darwin/amd64, linux/amd64, windows/amd64 + var OpDiscard byte = 0x0b + var OpDiscardPreserveTop byte = 0x05 + var OpJmp byte = 0x0c + var OpJmpNz byte = 0x0d + var OpJmpZ byte = 0x03 + type AMD64Backend struct — darwin/amd64, linux/amd64, windows/amd64 + EmitBoundsChecks bool + func (b *AMD64Backend) Build(candidate CompilationCandidate, code []byte, meta *BytecodeMetadata) ([]byte, error) + func (b *AMD64Backend) Scanner() *scanner + type BranchTable struct + DefaultTarget Target + Targets []Target + func CompileWithTable(disassembly []disasm.Instr) ([]byte, []*BranchTable) + type BytecodeMetadata struct + BranchTables []*BranchTable + InboundTargets map[int64]struct{} + Instructions []InstructionMetadata + func Compile(disassembly []disasm.Instr) ([]byte, *BytecodeMetadata) + type CompilationCandidate struct + End uint + EndInstruction int + Metrics Metrics + Start uint + StartInstruction int + func (s *CompilationCandidate) Bounds() (uint, uint) + type CompletionStatus uint64 + const CompletionBadBounds + const CompletionDivideZero + const CompletionFatalInternalError + const CompletionOK + const CompletionUnreachable + type InstructionMetadata struct + Op byte + Size int + Start int + type JITExitSignal uint64 + func (s JITExitSignal) CompletionStatus() CompletionStatus + func (s JITExitSignal) Index() int + type MMapAllocator struct + func (a *MMapAllocator) AllocateExec(asm []byte) (NativeCodeUnit, error) + func (a *MMapAllocator) Close() error + type Metrics struct + AllOps int + FloatOps int + IntegerOps int + MemoryReads uint + MemoryWrites uint + StackReads uint + StackWrites uint + type NativeCodeUnit interface + Invoke func(stack, locals, globals *[]uint64, mem *[]byte) JITExitSignal + type Target struct + Addr int64 + Discard int64 + PreserveTop bool + Return bool