public DebugIdentifierOperand(ConstantOperand <string> name, bool isReadOnly, int frameIndex, int id) { Name = name; IsReadOnly = isReadOnly; FrameIndex = frameIndex; Id = id; }
public ConstantOperand <T> GetOperand(T value) { if (_operands.TryGetValue(value, out var operand)) { return(operand); } operand = new ConstantOperand <T>(_nextId++, value); _operands.Add(value, operand); return(operand); }
public int LoadField(ConstantOperand <string> operand) { Emit(new Instruction(InstructionType.LdFld, operand)); return(-1 + 1); }
public int StoreField(ConstantOperand <string> operand) { Emit(new Instruction(InstructionType.StFld, operand)); return(-2); }