Exemple #1
0
        public FrameDebugInfo(InstructionEnumerator instructions,
                              FunctionSignature signature, ExecutionScope scope = null)
        {
            _instructions = instructions;

            FunctionSignature = signature;
            Scope             = scope;
        }
Exemple #2
0
        public ExecutionContext(Computer computer, SignatureResolver resolver)
        {
            Computer          = computer;
            SignatureResolver = resolver;
            Instructions      = new InstructionEnumerator();

            FrameDebugInfo mainFrame
                = new FrameDebugInfo(Instructions, FunctionSignature.Main);

            Memory = new Memory(new SprakConverter(resolver, this), mainFrame);

            Reset();
        }