Cosmos/source/Indy.IL2CPU.IL.X86/Newobj.cs
mterwoord_cp 4f1bf676e8
2007-09-03 17:12:38 +00:00

25 lines
No EOL
605 B
C#

using System;
using System.IO;
using Mono.Cecil;
using Mono.Cecil.Cil;
using CPU = Indy.IL2CPU.Assembler.X86;
using Asm = Indy.IL2CPU.Assembler;
namespace Indy.IL2CPU.IL.X86 {
[OpCode(Code.Newobj, true)]
public class Newobj: Op {
public string CtorName;
public Newobj()
: base(null, null) {
}
public Newobj(Mono.Cecil.Cil.Instruction aInstruction, MethodInformation aMethodInfo)
: base(aInstruction, aMethodInfo) {
CtorName = new Asm.Label(((MethodReference)aInstruction.Operand).Name).Name;
}
public override void Assemble() {
Call(CtorName);
}
}
}