Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 411 recordBacktrace(); | 411 recordBacktrace(); |
| 412 return *this; | 412 return *this; |
| 413 } | 413 } |
| 414 | 414 |
| 415 T* get() const { return m_raw; } | 415 T* get() const { return m_raw; } |
| 416 | 416 |
| 417 private: | 417 private: |
| 418 #if ENABLE(GC_PROFILE_MARKING) | 418 #if ENABLE(GC_PROFILE_MARKING) |
| 419 void recordBacktrace() | 419 void recordBacktrace() |
| 420 { | 420 { |
| 421 if (m_raw) | 421 //if (m_raw) |
| 422 m_tracingName = Heap::createBacktraceString(); | 422 // m_tracingName = Heap::createBacktraceString(); |
|
keishi
2015/01/27 08:59:00
I forgot why I did this.
| |
| 423 } | 423 } |
| 424 | 424 |
| 425 String m_tracingName; | 425 String m_tracingName; |
| 426 #else | 426 #else |
| 427 inline void recordBacktrace() const { } | 427 inline void recordBacktrace() const { } |
| 428 #endif | 428 #endif |
| 429 T* m_raw; | 429 T* m_raw; |
| 430 | 430 |
| 431 friend class CrossThreadPersistent<T>; | 431 friend class CrossThreadPersistent<T>; |
| 432 }; | 432 }; |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1188 template<typename T> | 1188 template<typename T> |
| 1189 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> { | 1189 struct ParamStorageTraits<RawPtr<T>> : public PointerParamStorageTraits<T*, blin k::IsGarbageCollectedType<T>::value> { |
| 1190 }; | 1190 }; |
| 1191 | 1191 |
| 1192 template<typename T> | 1192 template<typename T> |
| 1193 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; | 1193 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; |
| 1194 | 1194 |
| 1195 } // namespace WTF | 1195 } // namespace WTF |
| 1196 | 1196 |
| 1197 #endif | 1197 #endif |
| OLD | NEW |