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

Side by Side Diff: Source/platform/heap/Handle.h

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resize expect size of Persistent Created 5 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 T* get() const { return m_raw; } 327 T* get() const { return m_raw; }
328 328
329 private: 329 private:
330 #if ENABLE(GC_PROFILING) 330 #if ENABLE(GC_PROFILING)
331 void recordBacktrace() 331 void recordBacktrace()
332 { 332 {
333 if (m_raw) 333 if (m_raw)
334 m_tracingName = Heap::createBacktraceString(); 334 m_tracingName = Heap::createBacktraceString();
335 } 335 }
336
337 String m_tracingName; 336 String m_tracingName;
338 #else 337 #else
339 inline void recordBacktrace() const { } 338 inline void recordBacktrace() const { }
340 #endif 339 #endif
341 T* m_raw; 340 T* m_raw;
342 }; 341 };
343 342
344 // Unlike Persistent, we can destruct a CrossThreadPersistent in a thread 343 // Unlike Persistent, we can destruct a CrossThreadPersistent in a thread
345 // different from the construction thread. 344 // different from the construction thread.
346 template<typename T> 345 template<typename T>
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> { 1137 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> {
1139 static_assert(sizeof(T), "T must be fully defined"); 1138 static_assert(sizeof(T), "T must be fully defined");
1140 }; 1139 };
1141 1140
1142 template<typename T> 1141 template<typename T>
1143 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; 1142 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete;
1144 1143
1145 } // namespace WTF 1144 } // namespace WTF
1146 1145
1147 #endif 1146 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698