Cosmos/source/Compiler/Indy.IL2CPU.X86/IL/x86/Sizeof.cs
mterwoord_cp acaa8e0a89
2009-10-17 13:45:47 +00:00

37 lines
No EOL
1.3 KiB
C#

//using System;
//using System.Collections.Generic;
//using System.IO;
//using CPU = Indy.IL2CPU.Assembler.X86;
//using Indy.IL2CPU.Assembler;
//using Indy.IL2CPU.Compiler;
//namespace Indy.IL2CPU.IL.X86 {
// [OpCode(OpCodeEnum.Sizeof)]
// public class Sizeof: Op {
// private Type mType;
// //public static void ScanOp(ILReader aReader, MethodInformation aMethodInfo, SortedList<string, object> aMethodData) {
// // Type xTypeRef = aReader.OperandValueType;
// // if (xTypeRef == null)
// // {
// // throw new Exception("Type not found!");
// // }
// // Engine.RegisterType(xTypeRef);
// //}
// public Sizeof(ILReader aReader, MethodInformation aMethodInfo)
// : base(aReader, aMethodInfo) {
// mType = aReader.OperandValueType;
// if (mType == null) {
// throw new Exception("Type not found!");}
// }
// public override void DoAssemble() {
// uint xSize;
// GetService<IMetaDataInfoService>().GetTypeFieldInfo(mType, out xSize);
// new CPU.Push { DestinationValue =xSize};
// Assembler.StackContents.Push(new StackContent(4, typeof(int)));
// }
// }
//}