// Copyright 2017 The go-interpreter Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package operators import ( "github.com/go-interpreter/wagon/wasm" ) var ( Unreachable = newOp(0x00, "unreachable", nil, noReturn) Nop = newOp(0x01, "nop", nil, noReturn) Block = newOp(0x02, "block", nil, noReturn) Loop = newOp(0x03, "loop", nil, noReturn) If = newOp(0x04, "if", []wasm.ValueType{wasm.ValueTypeI32}, noReturn) Else = newOp(0x05, "else", nil, noReturn) End = newOp(0x0b, "end", nil, noReturn) Br = newPolymorphicOp(0x0c, "br") BrIf = newOp(0x0d, "br_if", []wasm.ValueType{wasm.ValueTypeI32}, noReturn) BrTable = newPolymorphicOp(0x0e, "br_table") Return = newPolymorphicOp(0x0f, "return") )