Changeset 92046 in webkit for trunk/Source/JavaScriptCore/heap/Handle.h
- Timestamp:
- Jul 29, 2011, 7:49:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/Handle.h
r86883 r92046 81 81 T* operator->() 82 82 { 83 #if ENABLE(JSC_ZOMBIES)84 ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());85 #endif86 83 return static_cast<Base*>(this)->get(); 87 84 } 88 85 const T* operator->() const 89 86 { 90 #if ENABLE(JSC_ZOMBIES)91 ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());92 #endif93 87 return static_cast<const Base*>(this)->get(); 94 88 } … … 96 90 T* operator*() 97 91 { 98 #if ENABLE(JSC_ZOMBIES)99 ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());100 #endif101 92 return static_cast<Base*>(this)->get(); 102 93 } 103 94 const T* operator*() const 104 95 { 105 #if ENABLE(JSC_ZOMBIES)106 ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get()->isZombie());107 #endif108 96 return static_cast<const Base*>(this)->get(); 109 97 } … … 120 108 JSValue jsValue() const 121 109 { 122 #if ENABLE(JSC_ZOMBIES)123 ASSERT(!static_cast<const Base*>(this)->get() || !static_cast<const Base*>(this)->get().isZombie());124 #endif125 110 return static_cast<const Base*>(this)->get(); 126 111 }
Note:
See TracChangeset
for help on using the changeset viewer.