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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |