Changeset 36316 in webkit for trunk/JavaScriptCore/kjs/StructureID.h
- Timestamp:
- Sep 10, 2008, 1:42:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StructureID.h
r36285 r36316 27 27 #define StructureID_h 28 28 29 #include "JSType.h" 29 30 #include "JSValue.h" 30 31 #include "PropertyMap.h" … … 72 73 class StructureID : public RefCounted<StructureID> { 73 74 public: 74 static PassRefPtr<StructureID> create(JSValue* prototype )75 static PassRefPtr<StructureID> create(JSValue* prototype, JSType type = ObjectType) 75 76 { 76 return adoptRef(new StructureID(prototype ));77 return adoptRef(new StructureID(prototype, type)); 77 78 } 78 79 … … 93 94 bool isDictionary() const { return m_isDictionary; } 94 95 95 JSValue* prototype() const { return m_prototype; } 96 96 JSValue* storedPrototype() const { return m_prototype; } 97 JSValue* prototypeForLookup(ExecState*); 98 97 99 void setCachedPrototypeChain(PassRefPtr<StructureIDChain> cachedPrototypeChain) { m_cachedPrototypeChain = cachedPrototypeChain; } 98 100 StructureIDChain* cachedPrototypeChain() const { return m_cachedPrototypeChain.get(); } … … 105 107 typedef HashMap<TransitionTableKey, StructureID*, TransitionTableHash, TransitionTableHashTraits> TransitionTable; 106 108 107 StructureID(JSValue* prototype );109 StructureID(JSValue* prototype, JSType); 108 110 109 111 static const size_t s_maxTransitionLength = 64; 110 112 111 113 bool m_isDictionary; 114 JSType m_type; 112 115 113 116 JSValue* m_prototype;
Note:
See TracChangeset
for help on using the changeset viewer.