示例#1
0
        internal Interpreter(string name, LocalVariables locals, InstructionArray instructions, DebugInfo[] debugInfos)
        {
            Name = name;
            LocalCount = locals.LocalCount;
            ClosureVariables = locals.ClosureVariables;

            _instructions = instructions;
            _objects = instructions.Objects;
            _labels = instructions.Labels;
            _debugInfos = debugInfos;
        }
        internal Interpreter(string name, LocalVariables locals, HybridReferenceDictionary<LabelTarget, BranchLabel> labelMapping,
            InstructionArray instructions, DebugInfo[] debugInfos)
        {
            Name = name;
            LocalCount = locals.LocalCount;
            LabelMapping = labelMapping;
            ClosureVariables = locals.ClosureVariables;

            _instructions = instructions;
            _objects = instructions.Objects;
            _labels = instructions.Labels;
            _debugInfos = debugInfos;
        }
示例#3
0
 public DebugView(InstructionArray array)
 {
     ContractUtils.RequiresNotNull(array, nameof(array));
     _array = array;
 }
示例#4
0
 public DebugView(InstructionArray array)
 {
     _array = array;
 }
示例#5
0
 public DebugView(InstructionArray array)
 {
     ArgumentNullException.ThrowIfNull(array);
     _array = array;
 }
示例#6
0
 public DebugView(InstructionArray array)
 {
     _array = array;
 }