コード例 #1
0
        internal static Instruction InitImmutableRefBox(int index)
        {
            if (_initImmutableRefBox == null)
            {
                _initImmutableRefBox = new Instruction[LocalInstrCacheSize];
            }

            if (index < _initImmutableRefBox.Length)
            {
                return(_initImmutableRefBox[index] ?? (_initImmutableRefBox[index] = new InitializeLocalInstruction.ImmutableBox(index, null)));
            }

            return(new InitializeLocalInstruction.ImmutableBox(index, null));
        }
コード例 #2
0
ファイル: LocalAccess.cs プロジェクト: andreakn/ironruby
        internal static Instruction InitImmutableRefBox(int index) {
            if (_initImmutableRefBox == null) {
                _initImmutableRefBox = new Instruction[LocalInstrCacheSize];
            }

            if (index < _initImmutableRefBox.Length) {
                return _initImmutableRefBox[index] ?? (_initImmutableRefBox[index] = new InitializeLocalInstruction.ImmutableBox(index, null));
            }

            return new InitializeLocalInstruction.ImmutableBox(index, null);
        }