Source File
exitcode.go
Belonging Package
github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi
package wazevoapi// ExitCode is an exit code of an execution of a function.type ExitCode uint32const (ExitCodeOK ExitCode = iotaExitCodeGrowStackExitCodeGrowMemoryExitCodeUnreachableExitCodeMemoryOutOfBounds// ExitCodeCallGoModuleFunction is an exit code for a call to an api.GoModuleFunction.ExitCodeCallGoModuleFunction// ExitCodeCallGoFunction is an exit code for a call to an api.GoFunction.ExitCodeCallGoFunctionExitCodeTableOutOfBoundsExitCodeIndirectCallNullPointerExitCodeIndirectCallTypeMismatchExitCodeIntegerDivisionByZeroExitCodeIntegerOverflowExitCodeInvalidConversionToIntegerExitCodeCheckModuleExitCodeExitCodeCallListenerBeforeExitCodeCallListenerAfterExitCodeCallGoModuleFunctionWithListenerExitCodeCallGoFunctionWithListenerExitCodeTableGrowExitCodeRefFuncExitCodeMemoryWait32ExitCodeMemoryWait64ExitCodeMemoryNotifyExitCodeUnalignedAtomicexitCodeMax)const ExitCodeMask = 0xff// String implements fmt.Stringer.func ( ExitCode) () string {switch {case ExitCodeOK:return "ok"case ExitCodeGrowStack:return "grow_stack"case ExitCodeCallGoModuleFunction:return "call_go_module_function"case ExitCodeCallGoFunction:return "call_go_function"case ExitCodeUnreachable:return "unreachable"case ExitCodeMemoryOutOfBounds:return "memory_out_of_bounds"case ExitCodeUnalignedAtomic:return "unaligned_atomic"case ExitCodeTableOutOfBounds:return "table_out_of_bounds"case ExitCodeIndirectCallNullPointer:return "indirect_call_null_pointer"case ExitCodeIndirectCallTypeMismatch:return "indirect_call_type_mismatch"case ExitCodeIntegerDivisionByZero:return "integer_division_by_zero"case ExitCodeIntegerOverflow:return "integer_overflow"case ExitCodeInvalidConversionToInteger:return "invalid_conversion_to_integer"case ExitCodeCheckModuleExitCode:return "check_module_exit_code"case ExitCodeCallListenerBefore:return "call_listener_before"case ExitCodeCallListenerAfter:return "call_listener_after"case ExitCodeCallGoModuleFunctionWithListener:return "call_go_module_function_with_listener"case ExitCodeCallGoFunctionWithListener:return "call_go_function_with_listener"case ExitCodeGrowMemory:return "grow_memory"case ExitCodeTableGrow:return "table_grow"case ExitCodeRefFunc:return "ref_func"case ExitCodeMemoryWait32:return "memory_wait32"case ExitCodeMemoryWait64:return "memory_wait64"case ExitCodeMemoryNotify:return "memory_notify"}panic("TODO")}func ( int, bool) ExitCode {if {return ExitCodeCallGoModuleFunctionWithListener | ExitCode(<<8)}return ExitCodeCallGoModuleFunction | ExitCode(<<8)}func ( int, bool) ExitCode {if {return ExitCodeCallGoFunctionWithListener | ExitCode(<<8)}return ExitCodeCallGoFunction | ExitCode(<<8)}func ( ExitCode) int {return int( >> 8)}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |