コード例 #1
0
        internal static RelationalInstruction GetInstruction(OpCodes opcode)
        {
            RelationalInstruction 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 RelationalInstruction(opcode, type);
 }