Exemplo n.º 1
0
 public void Execute()
 {
     State &= ~VMState.BREAK;
     while (!State.HasFlag(VMState.HALT) && !State.HasFlag(VMState.FAULT) && !State.HasFlag(VMState.BREAK))
     {
         StepInto();
     }
 }
Exemplo n.º 2
0
        public void StepOut()
        {
            State &= ~VMState.BREAK;
            int c = InvocationStack.Count;

            while (!State.HasFlag(VMState.HALT) && !State.HasFlag(VMState.FAULT) && !State.HasFlag(VMState.BREAK) && InvocationStack.Count >= c)
            {
                StepInto();
            }
        }
Exemplo n.º 3
0
 public void Execute(Action <ExecutionEngine> onStep = null)
 {
     State &= ~VMState.BREAK;
     while (!State.HasFlag(VMState.HALT) && !State.HasFlag(VMState.FAULT) && !State.HasFlag(VMState.BREAK))
     {
         if (onStep != null)
         {
             onStep(this);
         }
         StepInto();
     }
 }
Exemplo n.º 4
0
        public void StepOver()
        {
            if (State.HasFlag(VMState.HALT) || State.HasFlag(VMState.FAULT))
            {
                return;
            }
            State &= ~VMState.BREAK;
            int c = InvocationStack.Count;

            do
            {
                StepInto();
            } while (!State.HasFlag(VMState.HALT) && !State.HasFlag(VMState.FAULT) && !State.HasFlag(VMState.BREAK) && InvocationStack.Count > c);
        }
Exemplo n.º 5
0
 public bool GetRunningState()
 {
     return(!State.HasFlag(VMState.HALT) && !State.HasFlag(VMState.FAULT) && !State.HasFlag(VMState.BREAK));
 }