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

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: Rebase Created 5 years, 4 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
« no previous file with comments | « Source/core/inspector/InspectorAnimationAgent.cpp ('k') | no next file » | 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) 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 Heap::isHeapObjectAlive(m_raw); 249 Heap::isHeapObjectAlive(m_raw);
250 #endif 250 #endif
251 } 251 }
252 252
253 #if ENABLE(GC_PROFILING) 253 #if ENABLE(GC_PROFILING)
254 void recordBacktrace() 254 void recordBacktrace()
255 { 255 {
256 if (m_raw) 256 if (m_raw)
257 m_tracingName = Heap::createBacktraceString(); 257 m_tracingName = Heap::createBacktraceString();
258 } 258 }
259
260 String m_tracingName; 259 String m_tracingName;
261 #else 260 #else
262 inline void recordBacktrace() const { } 261 inline void recordBacktrace() const { }
263 #endif 262 #endif
264 // m_raw is accessed most, so put it at the first field. 263 // m_raw is accessed most, so put it at the first field.
265 T* m_raw; 264 T* m_raw;
266 PersistentNode* m_persistentNode; 265 PersistentNode* m_persistentNode;
267 #if ENABLE(ASSERT) 266 #if ENABLE(ASSERT)
268 ThreadState* m_state; 267 ThreadState* m_state;
269 #endif 268 #endif
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> { 1176 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> {
1178 static_assert(sizeof(T), "T must be fully defined"); 1177 static_assert(sizeof(T), "T must be fully defined");
1179 }; 1178 };
1180 1179
1181 template<typename T> 1180 template<typename T>
1182 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; 1181 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete;
1183 1182
1184 } // namespace WTF 1183 } // namespace WTF
1185 1184
1186 #endif 1185 #endif
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorAnimationAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698