internal static Instruction StoreLocalBoxed(int index)
        {
            if (s_storeLocalBoxed == null)
            {
                s_storeLocalBoxed = new Instruction[LocalInstrCacheSize];
            }

            if (index < s_storeLocalBoxed.Length)
            {
                return(s_storeLocalBoxed[index] ?? (s_storeLocalBoxed[index] = new StoreLocalBoxedInstruction(index)));
            }
            else
            {
                return(new StoreLocalBoxedInstruction(index));
            }
        }
示例#2
0
 internal static Instruction StoreLocalBoxed(int index)
 {
     if (InstructionList._storeLocalBoxed == null)
     {
         InstructionList._storeLocalBoxed = new Instruction[64];
     }
     if (index >= (int)InstructionList._storeLocalBoxed.Length)
     {
         return(new StoreLocalBoxedInstruction(index));
     }
     else
     {
         Instruction instruction  = InstructionList._storeLocalBoxed[index];
         Instruction instruction1 = instruction;
         if (instruction == null)
         {
             StoreLocalBoxedInstruction storeLocalBoxedInstruction = new StoreLocalBoxedInstruction(index);
             Instruction instruction2 = storeLocalBoxedInstruction;
             InstructionList._storeLocalBoxed[index] = storeLocalBoxedInstruction;
             instruction1 = instruction2;
         }
         return(instruction1);
     }
 }