/[svn]/linuxsampler/trunk/src/scriptvm/tree.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tree.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3207 by schoenebeck, Thu May 25 10:53:45 2017 UTC revision 3253 by schoenebeck, Tue May 30 12:08:45 2017 UTC
# Line 20  Line 20 
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"
# Line 196  public: Line 197  public:
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  };  };
# Line 679  public: Line 681  public:
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    
# Line 714  public: Line 718  public:
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

Legend:
Removed from v.3207  
changed lines
  Added in v.3253

  ViewVC Help
Powered by ViewVC