Cosmos/source/Indy.IL2CPU/IL/x86/X86InitVmtImplementationOp.cs
mterwoord_cp 824acc19fc
2008-11-07 18:39:24 +00:00

30 lines
889 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CPU = Indy.IL2CPU.Assembler;
using CPUx86 = Indy.IL2CPU.Assembler.X86;
using System.Reflection;
using Indy.IL2CPU.Assembler;
namespace Indy.IL2CPU.IL.X86 {
public class X86InitVmtImplementationOp: InitVmtImplementationOp {
public X86InitVmtImplementationOp(ILReader aReader, MethodInformation aMethodInfo)
: base(aReader, aMethodInfo) {
}
protected override void Push(uint aValue) {
new CPUx86.Push { DestinationValue = aValue };
}
protected override void Push(string aLabelName) {
new CPUx86.Push { DestinationRef = new ElementReference(aLabelName) };
}
protected override void Call(MethodBase aMethod) {
new CPUx86.Call { DestinationLabel = CPU.Label.GenerateLabelName(aMethod) };
}
}
}