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

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

Issue 717923005: Profile FreeList Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 11 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
« no previous file with comments | « Source/build/features.gypi ('k') | Source/platform/heap/Heap.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) 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 recordBacktrace(); 399 recordBacktrace();
400 return *this; 400 return *this;
401 } 401 }
402 402
403 T* get() const { return m_raw; } 403 T* get() const { return m_raw; }
404 404
405 private: 405 private:
406 #if ENABLE(GC_PROFILE_MARKING) 406 #if ENABLE(GC_PROFILE_MARKING)
407 void recordBacktrace() 407 void recordBacktrace()
408 { 408 {
409 if (m_raw) 409 //if (m_raw)
410 m_tracingName = Heap::createBacktraceString(); 410 // m_tracingName = Heap::createBacktraceString();
411 } 411 }
412 412
413 String m_tracingName; 413 String m_tracingName;
414 #else 414 #else
415 inline void recordBacktrace() const { } 415 inline void recordBacktrace() const { }
416 #endif 416 #endif
417 T* m_raw; 417 T* m_raw;
418 418
419 friend class CrossThreadPersistent<T>; 419 friend class CrossThreadPersistent<T>;
420 }; 420 };
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 template<typename T> 1177 template<typename T>
1178 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> { 1178 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> {
1179 }; 1179 };
1180 1180
1181 template<typename T> 1181 template<typename T>
1182 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; 1182 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete;
1183 1183
1184 } // namespace WTF 1184 } // namespace WTF
1185 1185
1186 #endif 1186 #endif
OLDNEW
« no previous file with comments | « Source/build/features.gypi ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698