Exemplo n.º 1
0
        internal void AddLabelInfo(LabelTarget target, LabelInfo info)
        {
            Debug.Assert(CanJumpInto);

            if (_labels == null)
            {
                _labels = new HybridReferenceDictionary <LabelTarget, LabelInfo>();
            }

            _labels[target] = info;
        }
Exemplo n.º 2
0
        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;
        }