| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 #if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS) | 1001 #if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS) |
| 1002 #define DISALLOW_ALLOCATION() \ | 1002 #define DISALLOW_ALLOCATION() \ |
| 1003 private: \ | 1003 private: \ |
| 1004 void* operator new(size_t) = delete; | 1004 void* operator new(size_t) = delete; |
| 1005 #else | 1005 #else |
| 1006 #define DISALLOW_ALLOCATION() \ | 1006 #define DISALLOW_ALLOCATION() \ |
| 1007 private: \ | 1007 private: \ |
| 1008 void* operator new(size_t); | 1008 void* operator new(size_t); |
| 1009 #endif | 1009 #endif |
| 1010 | 1010 |
| 1011 #define ALLOW_ONLY_INLINE_ALLOCATION()
\ |
| 1012 public:
\ |
| 1013 void* operator new(size_t, NotNullTag, void* location) { return location
; } \ |
| 1014 void* operator new(size_t, void* location) { return location; }
\ |
| 1015 DISALLOW_ALLOCATION() |
| 1016 |
| 1011 NO_SANITIZE_ADDRESS | 1017 NO_SANITIZE_ADDRESS |
| 1012 void HeapObjectHeader::checkHeader() const | 1018 void HeapObjectHeader::checkHeader() const |
| 1013 { | 1019 { |
| 1014 ASSERT(m_magic == magic); | 1020 ASSERT(m_magic == magic); |
| 1015 } | 1021 } |
| 1016 | 1022 |
| 1017 Address HeapObjectHeader::payload() | 1023 Address HeapObjectHeader::payload() |
| 1018 { | 1024 { |
| 1019 return reinterpret_cast<Address>(this) + objectHeaderSize; | 1025 return reinterpret_cast<Address>(this) + objectHeaderSize; |
| 1020 } | 1026 } |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 // to export. This forces it to export all the methods from ThreadHeap. | 1668 // to export. This forces it to export all the methods from ThreadHeap. |
| 1663 template<> void ThreadHeap<FinalizedHeapObjectHeader>::addPageToHeap(const GCInf
o*); | 1669 template<> void ThreadHeap<FinalizedHeapObjectHeader>::addPageToHeap(const GCInf
o*); |
| 1664 template<> void ThreadHeap<HeapObjectHeader>::addPageToHeap(const GCInfo*); | 1670 template<> void ThreadHeap<HeapObjectHeader>::addPageToHeap(const GCInfo*); |
| 1665 extern template class HEAP_EXPORT ThreadHeap<FinalizedHeapObjectHeader>; | 1671 extern template class HEAP_EXPORT ThreadHeap<FinalizedHeapObjectHeader>; |
| 1666 extern template class HEAP_EXPORT ThreadHeap<HeapObjectHeader>; | 1672 extern template class HEAP_EXPORT ThreadHeap<HeapObjectHeader>; |
| 1667 #endif | 1673 #endif |
| 1668 | 1674 |
| 1669 } | 1675 } |
| 1670 | 1676 |
| 1671 #endif // Heap_h | 1677 #endif // Heap_h |
| OLD | NEW |