| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_UTILS_H_ | 5 #ifndef V8_UTILS_H_ |
| 6 #define V8_UTILS_H_ | 6 #define V8_UTILS_H_ |
| 7 | 7 |
| 8 #include <limits.h> | 8 #include <limits.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 } | 501 } |
| 502 #else | 502 #else |
| 503 // Copy memory area to disjoint memory area. | 503 // Copy memory area to disjoint memory area. |
| 504 V8_INLINE void MemCopy(void* dest, const void* src, size_t size) { | 504 V8_INLINE void MemCopy(void* dest, const void* src, size_t size) { |
| 505 memcpy(dest, src, size); | 505 memcpy(dest, src, size); |
| 506 } | 506 } |
| 507 V8_EXPORT_PRIVATE V8_INLINE void MemMove(void* dest, const void* src, | 507 V8_EXPORT_PRIVATE V8_INLINE void MemMove(void* dest, const void* src, |
| 508 size_t size) { | 508 size_t size) { |
| 509 memmove(dest, src, size); | 509 memmove(dest, src, size); |
| 510 } | 510 } |
| 511 const int kMinComplexMemCopy = 16 * kPointerSize; | 511 const int kMinComplexMemCopy = 8; |
| 512 #endif // V8_TARGET_ARCH_IA32 | 512 #endif // V8_TARGET_ARCH_IA32 |
| 513 | 513 |
| 514 | 514 |
| 515 // ---------------------------------------------------------------------------- | 515 // ---------------------------------------------------------------------------- |
| 516 // Miscellaneous | 516 // Miscellaneous |
| 517 | 517 |
| 518 // A static resource holds a static instance that can be reserved in | 518 // A static resource holds a static instance that can be reserved in |
| 519 // a local scope using an instance of Access. Attempts to re-reserve | 519 // a local scope using an instance of Access. Attempts to re-reserve |
| 520 // the instance will cause an error. | 520 // the instance will cause an error. |
| 521 template <typename T> | 521 template <typename T> |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 private: | 1712 private: |
| 1713 T value_; | 1713 T value_; |
| 1714 ThreadedListZoneEntry<T>* next_; | 1714 ThreadedListZoneEntry<T>* next_; |
| 1715 DISALLOW_COPY_AND_ASSIGN(ThreadedListZoneEntry); | 1715 DISALLOW_COPY_AND_ASSIGN(ThreadedListZoneEntry); |
| 1716 }; | 1716 }; |
| 1717 | 1717 |
| 1718 } // namespace internal | 1718 } // namespace internal |
| 1719 } // namespace v8 | 1719 } // namespace v8 |
| 1720 | 1720 |
| 1721 #endif // V8_UTILS_H_ | 1721 #endif // V8_UTILS_H_ |
| OLD | NEW |