Exemplo n.º 1
0
        internal static UnaryInstruction GetInstruction(OpCodes opcode)
        {
            UnaryInstruction result = _knownInstructions[(int)opcode];

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