Changeset 9551 in webkit for trunk/JavaScriptCore/kjs/internal.h
- Timestamp:
- Jun 30, 2005, 5:45:50 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.h
r9145 r9551 164 164 class LabelStack { 165 165 public: 166 LabelStack(): tos(0L) {}166 LabelStack(): tos(0L), iterationDepth(0), switchDepth(0) {} 167 167 ~LabelStack(); 168 168 … … 183 183 */ 184 184 void pop(); 185 186 void pushIteration() { iterationDepth++; } 187 void popIteration() { iterationDepth--; } 188 bool inIteration() const { return (iterationDepth > 0); } 189 190 void pushSwitch() { switchDepth++; } 191 void popSwitch() { switchDepth--; } 192 bool inSwitch() const { return (switchDepth > 0); } 193 185 194 private: 186 195 struct StackElem { … … 191 200 StackElem *tos; 192 201 void clear(); 202 int iterationDepth; 203 int switchDepth; 193 204 }; 194 205
Note:
See TracChangeset
for help on using the changeset viewer.