690 |
|
|
691 |
ArrayList<int> polyphonicIntMemory; |
ArrayList<int> polyphonicIntMemory; |
692 |
VMExecStatus_t status; |
VMExecStatus_t status; |
693 |
|
StmtFlags_t flags; |
694 |
ArrayList<StackFrame> stack; |
ArrayList<StackFrame> stack; |
695 |
int stackFrame; |
int stackFrame; |
696 |
int suspendMicroseconds; |
int suspendMicroseconds; |
697 |
size_t instructionsCount; |
size_t instructionsCount; |
698 |
|
|
699 |
ExecContext() : |
ExecContext() : |
700 |
status(VM_EXEC_NOT_RUNNING), stackFrame(-1), suspendMicroseconds(0), |
status(VM_EXEC_NOT_RUNNING), flags(STMT_SUCCESS), stackFrame(-1), |
701 |
instructionsCount(0) {} |
suspendMicroseconds(0), instructionsCount(0) {} |
702 |
|
|
703 |
virtual ~ExecContext() {} |
virtual ~ExecContext() {} |
704 |
|
|
721 |
stack[0].statement = NULL; |
stack[0].statement = NULL; |
722 |
stack[0].subindex = -1; |
stack[0].subindex = -1; |
723 |
stackFrame = -1; |
stackFrame = -1; |
724 |
|
flags = STMT_SUCCESS; |
725 |
} |
} |
726 |
|
|
727 |
int suspensionTimeMicroseconds() const OVERRIDE { |
int suspensionTimeMicroseconds() const OVERRIDE { |
736 |
size_t instructionsPerformed() const OVERRIDE { |
size_t instructionsPerformed() const OVERRIDE { |
737 |
return instructionsCount; |
return instructionsCount; |
738 |
} |
} |
739 |
|
|
740 |
|
void signalAbort() OVERRIDE { |
741 |
|
flags = StmtFlags_t(flags | STMT_ABORT_SIGNALLED); |
742 |
|
} |
743 |
}; |
}; |
744 |
|
|
745 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |