Changeset 34607 in webkit for trunk/JavaScriptCore/kjs/PropertyNameArray.h
- Timestamp:
- Jun 16, 2008, 4:28:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/PropertyNameArray.h
r34372 r34607 34 34 typedef Vector<Identifier>::const_iterator const_iterator; 35 35 36 PropertyNameArray(JSGlobalData* globalData) : m_globalData(globalData) {} 37 PropertyNameArray(ExecState* exec) : m_globalData(&exec->globalData()) {} 38 36 39 void add(const Identifier& identifier) { add(identifier.ustring().rep()); } 37 40 void add(UString::Rep*); 38 void addKnownUnique(UString::Rep* identifier) { m_vector.append( identifier); }41 void addKnownUnique(UString::Rep* identifier) { m_vector.append(Identifier(m_globalData, identifier)); } 39 42 40 43 const_iterator begin() const { return m_vector.begin(); } … … 53 56 Vector<Identifier, 20> m_vector; 54 57 IdentifierSet m_set; 58 JSGlobalData* m_globalData; 55 59 }; 56 60
Note:
See TracChangeset
for help on using the changeset viewer.