Changeset 90529 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Jul 6, 2011, 8:42:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.h
r90423 r90529 130 130 struct MethodCallLinkInfo { 131 131 MethodCallLinkInfo() 132 : seen(false) 132 133 { 133 134 } … … 135 136 bool seenOnce() 136 137 { 137 ASSERT(!cachedStructure); 138 return cachedPrototypeStructure.isFlagged(); 138 return seen; 139 139 } 140 140 141 141 void setSeen() 142 142 { 143 ASSERT(!cachedStructure && !cachedPrototypeStructure); 144 // We use the values of cachedStructure & cachedPrototypeStructure to indicate the 145 // current state. 146 // - In the initial state, both are null. 147 // - Once this transition has been taken once, cachedStructure is 148 // null and cachedPrototypeStructure is set to a nun-null value. 149 // - Once the call is linked both structures are set to non-null values. 150 cachedPrototypeStructure.setFlagOnBarrier(); 143 seen = true; 151 144 } 152 145 … … 156 149 JITWriteBarrier<JSFunction> cachedFunction; 157 150 JITWriteBarrier<JSObject> cachedPrototype; 151 bool seen; 158 152 }; 159 153
Note:
See TracChangeset
for help on using the changeset viewer.