Inheritance: LocalAccessInstruction
Esempio n. 1
0
        internal static Instruction AssignLocalBoxed(int index)
        {
            if (_assignLocalBoxed == null)
            {
                _assignLocalBoxed = new Instruction[LocalInstrCacheSize];
            }

            if (index < _assignLocalBoxed.Length)
            {
                return(_assignLocalBoxed[index] ?? (_assignLocalBoxed[index] = new AssignLocalBoxedInstruction(index)));
            }

            return(new AssignLocalBoxedInstruction(index));
        }
Esempio n. 2
0
        internal static Instruction AssignLocalBoxed(int index) {
            if (_assignLocalBoxed == null) {
                _assignLocalBoxed = new Instruction[LocalInstrCacheSize];
            }

            if (index < _assignLocalBoxed.Length) {
                return _assignLocalBoxed[index] ?? (_assignLocalBoxed[index] = new AssignLocalBoxedInstruction(index));
            } else {
                return new AssignLocalBoxedInstruction(index);
            }
        }