示例#1
0
        internal static UnaryInstruction GetInstruction(OpCodes opcode)
        {
            UnaryInstruction result = _knownInstructions[(int)opcode];

            if (null == result)
            {
                throw new ArgumentException();
            }
            return(result);
        }
示例#2
0
 private static void RegisterKnownInstruction(OpCodes opcode, BuiltinLanguageType type)
 {
     _knownInstructions[(int)opcode] = new UnaryInstruction(opcode, type);
 }