Files
wazero/internal/engine/compiler/arch_other.go
Takeshi Yoneda ef8e12a575 compiler: bitmask for tracking used registers (#1323)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2023-03-31 12:28:20 +09:00

27 lines
577 B
Go

//go:build !amd64 && !arm64
package compiler
import (
"fmt"
"runtime"
"github.com/tetratelabs/wazero/internal/asm"
)
// archContext is empty on an unsupported architecture.
type archContext struct{}
// newCompiler panics with an unsupported error.
func newCompiler() compiler {
panic(fmt.Sprintf("unsupported GOARCH %s", runtime.GOARCH))
}
func registerMaskShift(r asm.Register) (ret int) {
panic(fmt.Sprintf("unsupported GOARCH %s", runtime.GOARCH))
}
func registerFromMaskShift(s int) asm.Register {
panic(fmt.Sprintf("unsupported GOARCH %s", runtime.GOARCH))
}