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

            if (index < _loadLocalBoxed.Length)
            {
                return(_loadLocalBoxed[index] ?? (_loadLocalBoxed[index] = new LoadLocalBoxedInstruction(index)));
            }
            else
            {
                return(new LoadLocalBoxedInstruction(index));
            }
        }
Esempio n. 2
0
        internal static Instruction LoadLocalBoxed(int index) {
            if (_loadLocalBoxed == null) {
                _loadLocalBoxed = new Instruction[LocalInstrCacheSize];
            }

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