Ignore:
Timestamp:
Mar 8, 2010, 12:31:02 PM (15 years ago)
Author:
[email protected]
Message:

Reverting 55035, this caused a regression.
(https://bugs.webkit.org/show_bug.cgi?id=35843)

Reviewed by NOBODY (reverting regression).

  • runtime/JSString.cpp:

(JSC::JSString::resolveRope):
(JSC::JSString::getStringPropertyDescriptor):

  • runtime/JSString.h:

(JSC::jsSingleCharacterSubstring):
(JSC::JSString::getIndex):
(JSC::JSString::getStringPropertySlot):

  • runtime/UStringImpl.cpp:
  • runtime/UStringImpl.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSString.cpp

    r55035 r55679  
    5151        m_value = newImpl;
    5252    else {
     53        for (unsigned i = 0; i < m_fiberCount; ++i) {
     54            m_other.m_fibers[i]->deref();
     55            m_other.m_fibers[i] = 0;
     56        }
     57        m_fiberCount = 0;
     58        ASSERT(!isRope());
     59        ASSERT(m_value == UString());
    5360        throwOutOfMemoryError(exec);
    5461        return;
     
    181188    unsigned i = propertyName.toStrictUInt32(&isStrictUInt32);
    182189    if (isStrictUInt32 && i < m_length) {
    183         descriptor.setDescriptor(getIndex(exec, i), DontDelete | ReadOnly);
     190        descriptor.setDescriptor(jsSingleCharacterSubstring(exec, value(exec), i), DontDelete | ReadOnly);
    184191        return true;
    185192    }
Note: See TracChangeset for help on using the changeset viewer.