20 |
#include <iostream> |
#include <iostream> |
21 |
#include <map> |
#include <map> |
22 |
#include <set> |
#include <set> |
23 |
|
#include <string.h> // for memset() |
24 |
#include "../common/global.h" |
#include "../common/global.h" |
25 |
#include "../common/Ref.h" |
#include "../common/Ref.h" |
26 |
#include "../common/ArrayList.h" |
#include "../common/ArrayList.h" |
197 |
BuiltInIntArrayVariable(const String& name, VMInt8Array* array); |
BuiltInIntArrayVariable(const String& name, VMInt8Array* array); |
198 |
int arraySize() const { return array->size; } |
int arraySize() const { return array->size; } |
199 |
int evalIntElement(uint i); |
int evalIntElement(uint i); |
200 |
|
bool isAssignable() const OVERRIDE { return !array->readonly; } |
201 |
void assignIntElement(uint i, int value); |
void assignIntElement(uint i, int value); |
202 |
void dump(int level = 0); |
void dump(int level = 0); |
203 |
}; |
}; |
681 |
ArrayList<StackFrame> stack; |
ArrayList<StackFrame> stack; |
682 |
int stackFrame; |
int stackFrame; |
683 |
int suspendMicroseconds; |
int suspendMicroseconds; |
684 |
|
size_t instructionsCount; |
685 |
|
|
686 |
ExecContext() : |
ExecContext() : |
687 |
status(VM_EXEC_NOT_RUNNING), stackFrame(-1), suspendMicroseconds(0) {} |
status(VM_EXEC_NOT_RUNNING), stackFrame(-1), suspendMicroseconds(0), |
688 |
|
instructionsCount(0) {} |
689 |
|
|
690 |
virtual ~ExecContext() {} |
virtual ~ExecContext() {} |
691 |
|
|
718 |
if (polyphonicIntMemory.empty()) return; |
if (polyphonicIntMemory.empty()) return; |
719 |
memset(&polyphonicIntMemory[0], 0, polyphonicIntMemory.size() * sizeof(int)); |
memset(&polyphonicIntMemory[0], 0, polyphonicIntMemory.size() * sizeof(int)); |
720 |
} |
} |
721 |
|
|
722 |
|
size_t instructionsPerformed() const OVERRIDE { |
723 |
|
return instructionsCount; |
724 |
|
} |
725 |
}; |
}; |
726 |
|
|
727 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |