Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/IL/Ldsflda.cs
kudzu_cp 1459fd78c3
2009-07-26 05:04:23 +00:00

46 lines
1.4 KiB
C#

using System;
namespace Cosmos.IL2CPU.X86.IL
{
[Cosmos.IL2CPU.OpCode(ILOpCode.Code.Ldsflda)]
public class Ldsflda: ILOp
{
public Ldsflda(ILOpCode aOpCode):base(aOpCode)
{
}
#region Old code
// using System;
// using System.Collections.Generic;
// using Indy.IL2CPU.Compiler;
// using CPU = Indy.IL2CPU.Assembler.X86;
// using System.Reflection;
// using Indy.IL2CPU.Assembler;
//
// namespace Indy.IL2CPU.IL.X86 {
// [OpCode(OpCodeEnum.Ldsflda)]
// public class Ldsflda: Op {
// private string mDataName;
// private FieldInfo mField;
//
// //public static void ScanOp(ILReader aReader, MethodInformation aMethodInfo, SortedList<string, object> aMethodData) {
// // FieldInfo xField = aReader.OperandValueField;
// // Engine.QueueStaticField(xField);
// //}
//
// public Ldsflda(ILReader aReader, MethodInformation aMethodInfo)
// : base(aReader, aMethodInfo) {
// mField = aReader.OperandValueField;
//
// }
//
// public override void DoAssemble() {
// mDataName = GetService<IMetaDataInfoService>().GetStaticFieldLabel(mField);
// new CPU.Push { DestinationRef = ElementReference.New(mDataName) };
// Assembler.StackContents.Push(new StackContent(4, true, false, false));
// }
// }
// }
#endregion Old code
}
}