Beispiel #1
0
        internal static BinaryInstruction GetInstruction(OpCodes opcode)
        {
            BinaryInstruction result = _knownInstructions[(int)opcode];

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