Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

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

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

Powered by Google App Engine
This is Rietveld 408576698