Changeset 127809 in webkit for trunk/Source/JavaScriptCore/runtime
- Timestamp:
- Sep 6, 2012, 6:29:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSString.cpp
r127505 r127809 131 131 StringImpl* string = m_fibers[i]->m_value.impl(); 132 132 unsigned length = string->length(); 133 StringImpl::copyChars(position, string->characters(), length); 133 if (string->is8Bit()) 134 StringImpl::copyChars(position, string->characters8(), length); 135 else 136 StringImpl::copyChars(position, string->characters16(), length); 134 137 position += length; 135 138 m_fibers[i].clear(); … … 203 206 unsigned length = string->length(); 204 207 position -= length; 205 StringImpl::copyChars(position, string->characters(), length); 208 if (string->is8Bit()) 209 StringImpl::copyChars(position, string->characters8(), length); 210 else 211 StringImpl::copyChars(position, string->characters16(), length); 206 212 } 207 213
Note:
See TracChangeset
for help on using the changeset viewer.