Changeset 47605 in webkit for trunk/JavaScriptCore/runtime/StructureTransitionTable.h
- Timestamp:
- Aug 20, 2009, 4:05:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/StructureTransitionTable.h
r47601 r47605 70 70 typedef HashMap<StructureTransitionTableHash::Key, Transition, StructureTransitionTableHash, StructureTransitionTableHashTraits> TransitionTable; 71 71 public: 72 inline bool contains(const StructureTransitionTableHash::Key& key, JSCell* specificValue); 73 inline Structure* get(const StructureTransitionTableHash::Key& key, JSCell* specificValue) const; 72 // The contains and get methods accept imprecise matches, so if an unspecialised transition exists 73 // for the given key they will consider that transition to be a match. If a specialised transition 74 // exists and it matches the provided specificValue, get will return the specific transition. 75 inline bool contains(const StructureTransitionTableHash::Key&, JSCell* specificValue); 76 inline Structure* get(const StructureTransitionTableHash::Key&, JSCell* specificValue) const; 74 77 bool hasTransition(const StructureTransitionTableHash::Key& key) 75 78 { … … 100 103 m_table.add(key, Transition(0, structure)); 101 104 } 102 103 105 104 106 }
Note:
See TracChangeset
for help on using the changeset viewer.