Cosmos/source2/IL2PCU/Cosmos.IL2CPU/ILOpCode/Ldftn.cs
kudzu_cp 8f662cb3a6
2009-07-23 15:23:25 +00:00

53 lines
1.6 KiB
C#

using System;
namespace Cosmos.IL2CPU.ILOpCodes
{
[Cosmos.IL2CPU.OpCode(ILOp.Code.Ldftn)]
public class Ldftn: ILOpCode
{
#region Old code
// using System;
// using System.Collections.Generic;
// using System.Linq;
//
//
// using CPU = Indy.IL2CPU.Assembler;
// using CPUx86 = Indy.IL2CPU.Assembler.X86;
// using System.Reflection;
// using Indy.IL2CPU.Assembler;
//
// namespace Indy.IL2CPU.IL.X86 {
// [Cosmos.IL2CPU.OpCode(ILOp.Code.Ldftn)]
// public class Ldftn: ILOpCode {
// private string mFunctionLabel;
//
// //public static void ScanOp(ILReader aReader, MethodInformation aMethodInfo, SortedList<string, object> aMethodData) {
// // MethodBase xMethodRef = aReader.OperandValueMethod;
// // if (xMethodRef == null)
// // {
// // throw new Exception("Unable to determine Method!");
// // }
// // Engine.QueueMethod(xMethodRef);
// //}
//
// public Ldftn(ILReader aReader, MethodInformation aMethodInfo)
// : base(aReader, aMethodInfo) {
// MethodBase xMethodRef = aReader.OperandValueMethod;
// if (xMethodRef == null) {
// throw new Exception("Unable to determine Method!");
// }
// mFunctionLabel = MethodInfoLabelGenerator.GenerateLabelName(xMethodRef);
// }
//
// public override void DoAssemble() {
// new CPUx86.Push { DestinationRef = ElementReference.New(mFunctionLabel) };
// Assembler.StackContents.Push(new StackContent(4, true, false, false));
// }
// }
// }
#endregion
}
}