Ejemplo n.º 1
0
        internal static Instruction Parameter(int index)
        {
            if (s_parameter == null)
            {
                s_parameter = new Instruction[LocalInstrCacheSize];
            }

            if (index < s_parameter.Length)
            {
                return(s_parameter[index] ?? (s_parameter[index] = new InitializeLocalInstruction.Parameter(index)));
            }

            return(new InitializeLocalInstruction.Parameter(index));
        }
Ejemplo n.º 2
0
 internal static Instruction Parameter(int index)
 {
     if (InstructionList._parameter == null)
     {
         InstructionList._parameter = new Instruction[64];
     }
     if (index >= (int)InstructionList._parameter.Length)
     {
         return(new InitializeLocalInstruction.Parameter(index));
     }
     else
     {
         Instruction instruction  = InstructionList._parameter[index];
         Instruction instruction1 = instruction;
         if (instruction == null)
         {
             InitializeLocalInstruction.Parameter parameter = new InitializeLocalInstruction.Parameter(index);
             Instruction instruction2 = parameter;
             InstructionList._parameter[index] = parameter;
             instruction1 = instruction2;
         }
         return(instruction1);
     }
 }