Changeset 53323 in webkit for trunk/JavaScriptCore/runtime/JSString.cpp
- Timestamp:
- Jan 14, 2010, 11:48:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.cpp
r53320 r53323 65 65 { 66 66 destructNonRecursive(); 67 }68 69 #define ROPE_COPY_CHARS_INLINE_CUTOFF 2070 71 static inline void copyChars(UChar* destination, const UChar* source, unsigned numCharacters)72 {73 #ifdef ROPE_COPY_CHARS_INLINE_CUTOFF74 if (numCharacters <= ROPE_COPY_CHARS_INLINE_CUTOFF) {75 for (unsigned i = 0; i < numCharacters; ++i)76 destination[i] = source[i];77 return;78 }79 #endif80 memcpy(destination, source, numCharacters * sizeof(UChar));81 67 } 82 68 … … 129 115 unsigned length = string->size(); 130 116 position -= length; 131 copyChars(position, string->data(), length);117 UStringImpl::copyChars(position, string->data(), length); 132 118 133 119 // Was this the last item in the work queue?
Note:
See TracChangeset
for help on using the changeset viewer.