コード例 #1
0
ファイル: UnaryInstruction.cs プロジェクト: BlueSkeye/wasmkit
        internal static UnaryInstruction GetInstruction(OpCodes opcode)
        {
            UnaryInstruction result = _knownInstructions[(int)opcode];

            if (null == result)
            {
                throw new ArgumentException();
            }
            return(result);
        }
コード例 #2
0
ファイル: UnaryInstruction.cs プロジェクト: BlueSkeye/wasmkit
 private static void RegisterKnownInstruction(OpCodes opcode, BuiltinLanguageType type)
 {
     _knownInstructions[(int)opcode] = new UnaryInstruction(opcode, type);
 }