This repository was archived by the owner on Apr 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -1351,20 +1351,10 @@ template <typename sourcechar, typename sinkchar>
1351
1351
void CopyCharsUnsigned (sinkchar* dest, const sourcechar* src, int chars) {
1352
1352
sinkchar* limit = dest + chars;
1353
1353
#ifdef V8_HOST_CAN_READ_UNALIGNED
1354
- if (sizeof (*dest) == sizeof (*src)) {
1355
- if (chars >= static_cast <int >(kMinComplexMemCopy / sizeof (*dest))) {
1356
- MemCopy (dest, src, chars * sizeof (*dest));
1357
- return ;
1358
- }
1359
- // Number of characters in a uintptr_t.
1360
- static const int kStepSize = sizeof (uintptr_t ) / sizeof (*dest); // NOLINT
1361
- DCHECK (dest + kStepSize > dest); // Check for overflow.
1362
- while (dest + kStepSize <= limit) {
1363
- *reinterpret_cast <uintptr_t *>(dest) =
1364
- *reinterpret_cast <const uintptr_t *>(src);
1365
- dest += kStepSize ;
1366
- src += kStepSize ;
1367
- }
1354
+ if ((sizeof (*dest) == sizeof (*src)) &&
1355
+ (chars >= static_cast <int >(kMinComplexMemCopy / sizeof (*dest)))) {
1356
+ MemCopy (dest, src, chars * sizeof (*dest));
1357
+ return ;
1368
1358
}
1369
1359
#endif
1370
1360
while (dest < limit) {
You can’t perform that action at this time.
0 commit comments