Inheritance: LocalAccessInstruction
Exemplo n.º 1
0
        internal static Instruction StoreLocalBoxed(int index)
        {
            if (_storeLocalBoxed == null)
            {
                _storeLocalBoxed = new Instruction[LocalInstrCacheSize];
            }

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

            return(new StoreLocalBoxedInstruction(index));
        }
Exemplo n.º 2
0
        internal static Instruction StoreLocalBoxed(int index) {
            if (_storeLocalBoxed == null) {
                _storeLocalBoxed = new Instruction[LocalInstrCacheSize];
            }

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