Changeset 134555 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.h
- Timestamp:
- Nov 13, 2012, 11:22:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.h
r134460 r134555 28 28 #include "JSDestructibleObject.h" 29 29 #include "JSScope.h" 30 #include "Watchpoint.h" 30 31 31 32 namespace JSC { … … 133 134 } 134 135 136 Structure* tryGetKnownInheritorID() 137 { 138 if (!m_cachedInheritorID) 139 return 0; 140 if (m_inheritorIDWatchpoint.hasBeenInvalidated()) 141 return 0; 142 return m_cachedInheritorID.get(); 143 } 144 145 void addInheritorIDWatchpoint(Watchpoint* watchpoint) 146 { 147 ASSERT(tryGetKnownInheritorID()); 148 m_inheritorIDWatchpoint.add(watchpoint); 149 } 150 135 151 static size_t offsetOfCachedInheritorID() 136 152 { … … 173 189 WriteBarrier<JSScope> m_scope; 174 190 WriteBarrier<Structure> m_cachedInheritorID; 191 InlineWatchpointSet m_inheritorIDWatchpoint; 175 192 }; 176 193
Note:
See TracChangeset
for help on using the changeset viewer.