Ignore:
Timestamp:
Oct 29, 2007, 1:44:44 AM (18 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Mark.


  • re-enable asserts for access to empty or deleted keys
  • wtf/HashTable.h: (WTF::::lookup): (WTF::::lookupForWriting): (WTF::::fullLookupForWriting): (WTF::::add):

WebCore:

Reviewed by Mark.

  • fixed assertion failures detected by the new assertions
  • bindings/objc/DOMRGBColor.mm: (-[DOMRGBColor dealloc]): Clear _internal before calling [super dealloc] because it's not a pointer and shouldn't be in the normal wrapper cache.
  • dom/Document.cpp: (WebCore::Document::addImageMap): Don't access hashmap if name is null. (WebCore::Document::removeImageMap): ditto
  • dom/StyledElement.cpp: (WebCore::StyledElement::parseMappedAttribute): Don't claim we have a class when the class attribute is empty.
  • platform/TextCodecICU.cpp: (WebCore::gbkCallbackEscape): Don't look up 0 code points.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/HashTable.h

    r27214 r27221  
    403403    {
    404404        ASSERT(m_table);
    405 #if !ASSERT_DISABLED && 0
     405#if !ASSERT_DISABLED
    406406        if (HashFunctions::safeToCompareToEmptyOrDeleted) {
    407407            ASSERT(!HashTranslator::equal(KeyTraits::emptyValue(), key));
     
    453453    {
    454454        ASSERT(m_table);
    455 #if !ASSERT_DISABLED && 0
     455#if !ASSERT_DISABLED
    456456        if (HashFunctions::safeToCompareToEmptyOrDeleted) {
    457457            ASSERT(!HashTranslator::equal(KeyTraits::emptyValue(), key));
     
    510510    {
    511511        ASSERT(m_table);
    512 #if !ASSERT_DISABLED && 0
     512#if !ASSERT_DISABLED
    513513        if (HashFunctions::safeToCompareToEmptyOrDeleted) {
    514514            ASSERT(!HashTranslator::equal(KeyTraits::emptyValue(), key));
     
    566566    inline pair<typename HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::iterator, bool> HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::add(const T& key, const Extra& extra)
    567567    {
    568 #if !ASSERT_DISABLED && 0
     568#if !ASSERT_DISABLED
    569569        if (HashFunctions::safeToCompareToEmptyOrDeleted) {
    570570            ASSERT(!HashTranslator::equal(KeyTraits::emptyValue(), key));
Note: See TracChangeset for help on using the changeset viewer.