Chromium Code Reviews

Side by Side Diff: Source/heap/Heap.h

Issue 137863007: Revert of Move most of the [Pass]RefPtr's of CSSPrimitiveValue to our transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « Source/heap/Handle.h ('k') | Source/wtf/RawPtr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...)
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 DISALLOW_ALLOCATION()
1015
1016 NO_SANITIZE_ADDRESS 1011 NO_SANITIZE_ADDRESS
1017 void HeapObjectHeader::checkHeader() const 1012 void HeapObjectHeader::checkHeader() const
1018 { 1013 {
1019 ASSERT(m_magic == magic); 1014 ASSERT(m_magic == magic);
1020 } 1015 }
1021 1016
1022 Address HeapObjectHeader::payload() 1017 Address HeapObjectHeader::payload()
1023 { 1018 {
1024 return reinterpret_cast<Address>(this) + objectHeaderSize; 1019 return reinterpret_cast<Address>(this) + objectHeaderSize;
1025 } 1020 }
(...skipping 641 matching lines...)
1667 // to export. This forces it to export all the methods from ThreadHeap. 1662 // to export. This forces it to export all the methods from ThreadHeap.
1668 template<> void ThreadHeap<FinalizedHeapObjectHeader>::addPageToHeap(const GCInf o*); 1663 template<> void ThreadHeap<FinalizedHeapObjectHeader>::addPageToHeap(const GCInf o*);
1669 template<> void ThreadHeap<HeapObjectHeader>::addPageToHeap(const GCInfo*); 1664 template<> void ThreadHeap<HeapObjectHeader>::addPageToHeap(const GCInfo*);
1670 extern template class HEAP_EXPORT ThreadHeap<FinalizedHeapObjectHeader>; 1665 extern template class HEAP_EXPORT ThreadHeap<FinalizedHeapObjectHeader>;
1671 extern template class HEAP_EXPORT ThreadHeap<HeapObjectHeader>; 1666 extern template class HEAP_EXPORT ThreadHeap<HeapObjectHeader>;
1672 #endif 1667 #endif
1673 1668
1674 } 1669 }
1675 1670
1676 #endif // Heap_h 1671 #endif // Heap_h
OLDNEW
« no previous file with comments | « Source/heap/Handle.h ('k') | Source/wtf/RawPtr.h » ('j') | no next file with comments »

Powered by Google App Engine