Changeset 37497 in webkit for trunk/JavaScriptCore/kjs/JSObject.h


Ignore:
Timestamp:
Oct 10, 2008, 7:05:08 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-10 Sam Weinig <[email protected]>

Reviewed by Darin Adler

Add Assertions to JSObject constructor.

  • kjs/JSObject.h: (JSC::JSObject::JSObject):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSObject.h

    r37400 r37497  
    203203{
    204204    ASSERT(m_structureID);
     205    ASSERT(m_structureID->propertyStorageCapacity() == inlineStorageCapacity);
     206    ASSERT(m_structureID->propertyMap().isEmpty());
    205207    ASSERT(prototype()->isNull() || Heap::heap(this) == Heap::heap(prototype()));
    206208}
Note: See TracChangeset for help on using the changeset viewer.