Changeset 13304 in webkit for trunk/JavaScriptCore/kjs/internal.h
- Timestamp:
- Mar 15, 2006, 2:21:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.h
r13153 r13304 94 94 class LabelStack : Noncopyable { 95 95 public: 96 LabelStack(): tos(0), iterationDepth(0), switchDepth(0) {} 96 LabelStack() 97 : tos(0) 98 { 99 } 97 100 ~LabelStack(); 98 101 … … 111 114 void pop(); 112 115 113 void pushIteration() { iterationDepth++; }114 void popIteration() { iterationDepth--; }115 bool inIteration() const { return (iterationDepth > 0); }116 117 void pushSwitch() { switchDepth++; }118 void popSwitch() { switchDepth--; }119 bool inSwitch() const { return (switchDepth > 0); }120 121 116 private: 122 117 struct StackElem { … … 126 121 127 122 StackElem *tos; 128 int iterationDepth;129 int switchDepth;130 123 }; 131 124
Note:
See TracChangeset
for help on using the changeset viewer.