Changeset 57912 in webkit for trunk/JavaScriptCore/runtime/JSString.cpp
- Timestamp:
- Apr 20, 2010, 1:33:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.cpp
r57019 r57912 52 52 else { 53 53 for (unsigned i = 0; i < m_fiberCount; ++i) { 54 m_other.m_fibers[i]->deref();54 RopeImpl::deref(m_other.m_fibers[i]); 55 55 m_other.m_fibers[i] = 0; 56 56 } … … 63 63 UChar* position = buffer + m_length; 64 64 65 // Start with the current Rope .66 Vector<Rope ::Fiber, 32> workQueue;67 Rope ::Fiber currentFiber;65 // Start with the current RopeImpl. 66 Vector<RopeImpl::Fiber, 32> workQueue; 67 RopeImpl::Fiber currentFiber; 68 68 for (unsigned i = 0; i < (m_fiberCount - 1); ++i) 69 69 workQueue.append(m_other.m_fibers[i]); 70 70 currentFiber = m_other.m_fibers[m_fiberCount - 1]; 71 71 while (true) { 72 if ( currentFiber->isRope()) {73 Rope * rope = static_cast<URopeImpl*>(currentFiber);72 if (RopeImpl::isRope(currentFiber)) { 73 RopeImpl* rope = static_cast<RopeImpl*>(currentFiber); 74 74 // Copy the contents of the current rope into the workQueue, with the last item in 'currentFiber' 75 75 // (we will be working backwards over the rope). … … 89 89 ASSERT(buffer == position); 90 90 for (unsigned i = 0; i < m_fiberCount; ++i) { 91 m_other.m_fibers[i]->deref();91 RopeImpl::deref(m_other.m_fibers[i]); 92 92 m_other.m_fibers[i] = 0; 93 93 }
Note:
See TracChangeset
for help on using the changeset viewer.