internal Call(OpCode opcode)
		{
			this.opcode = opcode;
		}
		public Simple(OpCode opcode)
		{
			this.opcode = opcode;
		}
Example #3
0
 public static Instruction Create(OpCode opcode)
 {
     Instruction i = new Instruction();
     i.opCode = opcode;
     i.type = InstructionType.OpCode;
     i.operandType = typeof(Empty);
     i.operand = new Empty();
     return i;
 }
		public static bool TakesSingleByteArgument(OpCode inst)
		{
			switch (inst.Value)
			{
				case 14:
				case 15:
				case 16:
				case 17:
				case 18:
				case 19:
				case 31:
				case 43:
				case 44:
				case 45:
				case 46:
				case 47:
				case 48:
				case 49:
				case 50:
				case 51:
				case 52:
				case 53:
				case 54:
				case 55:
				case 222:
				case -494:
					return true;
				default:
					return false;
			}
		}
Example #5
0
 public void Emit(IKVM.Reflection.Emit.OpCode opcode, Label[] labels) => generator.Emit(opcode, labels);
Example #6
0
 public void Emit(IKVM.Reflection.Emit.OpCode opcode, MethodInfo meth) => generator.Emit(opcode, meth);
Example #7
0
 internal static Instruction Create(OpCode opcode, Label label)
 {
     Instruction i = new Instruction();
     i.opCode = opcode;
     i.type = InstructionType.OpCode;
     i.operand = label;
     i.operandType = typeof(Label);
     return i;
 }
Example #8
0
 public void Emit(IKVM.Reflection.Emit.OpCode opcode) => generator.Emit(opcode);
Example #9
0
 internal static Instruction Create(OpCode opcode, long number)
 {
     Instruction i = new Instruction();
     i.opCode = opcode;
     i.type = InstructionType.OpCode;
     i.operand = number;
     i.operandType = typeof(long);
     return i;
 }
Example #10
0
 internal static Instruction Create(OpCode opcode, LocalBuilder lvar)
 {
     Instruction i = new Instruction();
     i.opCode = opcode;
     i.type = InstructionType.OpCode;
     i.operand = lvar;
     i.operandType = typeof(LocalBuilder);
     return i;
 }
Example #11
0
 public static Instruction Create(OpCode opcode, IKType type)
 {
     Instruction i = new Instruction();
     i.opCode = opcode;
     i.type = InstructionType.OpCode;
     i.operand = type;
     i.operandType = typeof(IKType);
     return i;
 }
Example #12
0
 public static Instruction Create(OpCode opcode, IKMethod met)
 {
     Instruction i = new Instruction();
     i.opCode = opcode;
     i.type = InstructionType.OpCode;
     i.operand = met;
     i.operandType = typeof(IKMethod);
     return i;
 }
Example #13
0
 public static Instruction Create(OpCode opcode, string str)
 {
     Instruction i = new Instruction();
     i.opCode = opcode;
     i.type = InstructionType.OpCode;
     i.operand = str;
     i.operandType = typeof(string);
     return i;
 }
Example #14
0
		internal TypeInstruction(OpCode opcode)
		{
			this.opcode = opcode;
		}
Example #15
0
 public void Emit(OpCode opcode)
 {
     Append(Instruction.Create(opcode));
 }
Example #16
0
		public Branch(OpCode opcode)
		{
			this.opcode = opcode;
		}
Example #17
0
 public void Emit(OpCode opcode, string str)
 {
     Append(Instruction.Create(opcode, str));
 }
Example #18
0
 public void Emit(IKVM.Reflection.Emit.OpCode opcode, double arg) => generator.Emit(opcode, arg);
Example #19
0
 public void Emit(OpCode opcode, IKMethod met)
 {
     Append(Instruction.Create(opcode, met));
 }
Example #20
0
 public void Emit(IKVM.Reflection.Emit.OpCode opcode, FieldInfo field) => generator.Emit(opcode, field);
Example #21
0
 public void Emit(OpCode opcode, IKCtor ctor)
 {
     Append(Instruction.Create(opcode, ctor));
 }
Example #22
0
 public void Emit(IKVM.Reflection.Emit.OpCode opcode, ConstructorInfo con) => generator.Emit(opcode, con);
		public bool Equals(OpCode other)
		{
			return this == other;
		}