EmitLdargHelper() protected method

protected EmitLdargHelper ( ushort index ) : void
index ushort
return void
Esempio n. 1
0
            internal override void EmitGet(CodeGen g)
            {
                g.EmitLdargHelper(index);

                if (IsReference)
                {
                    g.EmitLdindHelper(Type);
                }
            }
Esempio n. 2
0
            internal override void EmitGet(CodeGen g)
            {
                g.EmitLdargHelper(_index);

                if (IsReference)
                {
                    g.EmitLdindHelper(GetReturnType(g.TypeMapper));
                }
            }
Esempio n. 3
0
            protected internal override void EmitGet(CodeGen g)
            {
                OperandExtensions.SetLeakedState(this, false);
                g.EmitLdargHelper(_index);

                if (IsReference)
                {
                    g.EmitLdindHelper(GetReturnType(g.TypeMapper));
                }
            }
Esempio n. 4
0
 internal override void EmitSet(CodeGen g, Operand value, bool allowExplicitConversion)
 {
     if (IsReference)
     {
         g.EmitLdargHelper(index);
         g.EmitStindHelper(Type, value, allowExplicitConversion);
     }
     else
     {
         g.EmitGetHelper(value, Type, allowExplicitConversion);
         g.EmitStargHelper(index);
     }
 }
Esempio n. 5
0
 internal override void EmitSet(CodeGen g, Operand value, bool allowExplicitConversion)
 {
     if (IsReference)
     {
         g.EmitLdargHelper(_index);
         g.EmitStindHelper(GetReturnType(g.TypeMapper), value, allowExplicitConversion);
     }
     else
     {
         g.EmitGetHelper(value, GetReturnType(g.TypeMapper), allowExplicitConversion);
         g.EmitStargHelper(_index);
     }
 }
Esempio n. 6
0
 protected internal override void EmitSet(CodeGen g, Operand value, bool allowExplicitConversion)
 {
     OperandExtensions.SetLeakedState(this, false);
     if (IsReference)
     {
         g.EmitLdargHelper(_index);
         g.EmitStindHelper(GetReturnType(g.TypeMapper), value, allowExplicitConversion);
     }
     else
     {
         g.EmitGetHelper(value, GetReturnType(g.TypeMapper), allowExplicitConversion);
         g.EmitStargHelper(_index);
     }
 }
Esempio n. 7
0
 internal override void EmitAddressOf(CodeGen g)
 {
     if (IsReference)
     {
         g.EmitLdargHelper(index);
     }
     else
     {
         if (index <= byte.MaxValue)
         {
             g.il.Emit(OpCodes.Ldarga_S, (byte)index);
         }
         else
         {
             g.il.Emit(OpCodes.Ldarga, index);
         }
     }
 }
Esempio n. 8
0
 protected internal override void EmitAddressOf(CodeGen g)
 {
     OperandExtensions.SetLeakedState(this, false);
     if (IsReference)
     {
         g.EmitLdargHelper(_index);
     }
     else
     {
         if (_index <= byte.MaxValue)
         {
             g.IL.Emit(OpCodes.Ldarga_S, (byte)_index);
         }
         else
         {
             g.IL.Emit(OpCodes.Ldarga, _index);
         }
     }
 }
			internal override void EmitAddressOf(CodeGen g)
			{
				if (IsReference)
				{
					g.EmitLdargHelper(index);
				}
				else
				{
					if (index <= byte.MaxValue)
						g.il.Emit(OpCodes.Ldarga_S, (byte)index);
					else
						g.il.Emit(OpCodes.Ldarga, index);
				}
			}
			internal override void EmitSet(CodeGen g, Operand value, bool allowExplicitConversion)
			{
				if (IsReference)
				{
					g.EmitLdargHelper(index);
					g.EmitStindHelper(Type, value, allowExplicitConversion);
				}
				else
				{
					g.EmitGetHelper(value, Type, allowExplicitConversion);
					g.EmitStargHelper(index);
				}
			}
			internal override void EmitGet(CodeGen g)
			{
				g.EmitLdargHelper(index);

				if (IsReference)
					g.EmitLdindHelper(Type);
			}
Esempio n. 12
0
		    protected internal override void EmitAddressOf(CodeGen g)
		    {
		        OperandExtensions.SetLeakedState(this, false);  
				if (IsReference)
				{
					g.EmitLdargHelper(_index);
				}
				else
				{
					if (_index <= byte.MaxValue)
						g.IL.Emit(OpCodes.Ldarga_S, (byte)_index);
					else
						g.IL.Emit(OpCodes.Ldarga, _index);
				}
			}
Esempio n. 13
0
		    protected internal override void EmitSet(CodeGen g, Operand value, bool allowExplicitConversion)
		    {
		        OperandExtensions.SetLeakedState(this, false); 
				if (IsReference)
				{
					g.EmitLdargHelper(_index);
					g.EmitStindHelper(GetReturnType(g.TypeMapper), value, allowExplicitConversion);
				}
				else
				{
					g.EmitGetHelper(value, GetReturnType(g.TypeMapper), allowExplicitConversion);
					g.EmitStargHelper(_index);
				}
			}
Esempio n. 14
0
		    protected internal override void EmitGet(CodeGen g)
		    {
		        OperandExtensions.SetLeakedState(this, false); 
				g.EmitLdargHelper(_index);

				if (IsReference)
					g.EmitLdindHelper(GetReturnType(g.TypeMapper));
			}