Changeset 44076 in webkit for trunk/JavaScriptCore/runtime/PutPropertySlot.h
- Timestamp:
- May 22, 2009, 6:48:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/PutPropertySlot.h
r37938 r44076 33 33 34 34 class JSObject; 35 class JSFunction; 35 36 36 37 class PutPropertySlot { 37 38 public: 38 enum Type { Invalid, ExistingProperty, NewProperty };39 enum Type { Uncachable, ExistingProperty, NewProperty }; 39 40 40 41 PutPropertySlot() 41 : m_type( Invalid)42 : m_type(Uncachable) 42 43 , m_base(0) 43 , m_wasTransition(false)44 44 { 45 45 } … … 62 62 JSObject* base() const { return m_base; } 63 63 64 bool isCacheable() const { return m_type != Invalid; }64 bool isCacheable() const { return m_type != Uncachable; } 65 65 size_t cachedOffset() const { 66 66 ASSERT(isCacheable()); 67 67 return m_offset; 68 68 } 69 70 bool wasTransition() const { return m_wasTransition; }71 void setWasTransition(bool wasTransition) { m_wasTransition = wasTransition; }72 69 private: 73 70 Type m_type; 74 71 JSObject* m_base; 75 bool m_wasTransition;76 72 size_t m_offset; 77 73 };
Note:
See TracChangeset
for help on using the changeset viewer.