Ejemplo n.º 1
0
        public static Instruction GetBoxedLocal(int index) {
            if (_getBoxedLocal == null) {
                _getBoxedLocal = new Instruction[LocalInstrCacheSize];
            }

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

            return new GetBoxedLocalInstruction(index);
        }
Ejemplo n.º 2
0
        internal static Instruction GetBoxedLocal(int index) {
            if (_loadLocalBoxed == null) {
                _loadLocalBoxed = new Instruction[LocalInstrCacheSize];
            }

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