Changeset 51624 in webkit for trunk/JavaScriptCore/runtime/JSValue.h
- Timestamp:
- Dec 2, 2009, 10:25:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSValue.h
r51334 r51624 169 169 uint32_t toUInt32(ExecState*, bool& ok) const; 170 170 171 #if ENABLE(JSC_ZOMBIES) 172 bool isZombie() const; 173 #endif 174 171 175 // Floating point conversions (this is a convenience method for webcore; 172 176 // signle precision float is not a representation used in JS or JSC). … … 439 443 JSValue v; 440 444 v.u.asEncodedJSValue = encodedJSValue; 445 #if ENABLE(JSC_ZOMBIES) 446 ASSERT(!v.isZombie()); 447 #endif 441 448 return v; 442 449 } … … 485 492 u.asBits.tag = EmptyValueTag; 486 493 u.asBits.payload = reinterpret_cast<int32_t>(ptr); 494 #if ENABLE(JSC_ZOMBIES) 495 ASSERT(!isZombie()); 496 #endif 487 497 } 488 498 … … 494 504 u.asBits.tag = EmptyValueTag; 495 505 u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr)); 506 #if ENABLE(JSC_ZOMBIES) 507 ASSERT(!isZombie()); 508 #endif 496 509 } 497 510 … … 794 807 : m_ptr(ptr) 795 808 { 809 #if ENABLE(JSC_ZOMBIES) 810 ASSERT(!isZombie()); 811 #endif 796 812 } 797 813 … … 799 815 : m_ptr(const_cast<JSCell*>(ptr)) 800 816 { 817 #if ENABLE(JSC_ZOMBIES) 818 ASSERT(!isZombie()); 819 #endif 801 820 } 802 821
Note:
See TracChangeset
for help on using the changeset viewer.