internal static Instruction AssignLocalBoxed(int index) { if (s_assignLocalBoxed == null) { s_assignLocalBoxed = new Instruction[LocalInstrCacheSize]; } if (index < s_assignLocalBoxed.Length) { return(s_assignLocalBoxed[index] ?? (s_assignLocalBoxed[index] = new AssignLocalBoxedInstruction(index))); } else { return(new AssignLocalBoxedInstruction(index)); } }
internal static Instruction AssignLocalBoxed(int index) { if (InstructionList._assignLocalBoxed == null) { InstructionList._assignLocalBoxed = new Instruction[64]; } if (index >= (int)InstructionList._assignLocalBoxed.Length) { return(new AssignLocalBoxedInstruction(index)); } else { Instruction instruction = InstructionList._assignLocalBoxed[index]; Instruction instruction1 = instruction; if (instruction == null) { AssignLocalBoxedInstruction assignLocalBoxedInstruction = new AssignLocalBoxedInstruction(index); Instruction instruction2 = assignLocalBoxedInstruction; InstructionList._assignLocalBoxed[index] = assignLocalBoxedInstruction; instruction1 = instruction2; } return(instruction1); } }