This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WTF_MAKE_NONCOPYABLE macro
https://bugs.webkit.org/show_bug.cgi?id=46589 Reviewed by Alexey Proskuryakov and Adam Barth. Going forward, we'd like to get rid of the Noncopyable and FastAllocBase classes. The reason for this is that the Itanium C++ ABI states that no empty classes of the same type can be laid out at the same offset in the class. This can result in objects getting larger which leads to memory regressions. (One example of this is the String class which grew by sizeof(void*) when both its base class and its first member variable inherited indirectly from FastAllocBase). * wtf/Noncopyable.h: Add a WTF_MAKE_NONCOPYABLE macro and get rid of NoncopyableCustomAllocated. * runtime/JSCell.h: * wtf/RefCounted.h: Don't inherit from NoncopyableCustomAllocated. Instead, use WTF_MAKE_NONCOPYABLE. Canonical link: https://commits.webkit.org/59104@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@68414 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 4 changed files with 47 additions and 11 deletions.