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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 recordBacktrace(); | 416 recordBacktrace(); |
417 return *this; | 417 return *this; |
418 } | 418 } |
419 | 419 |
420 T* get() const { return m_raw; } | 420 T* get() const { return m_raw; } |
421 | 421 |
422 private: | 422 private: |
423 #if ENABLE(GC_PROFILE_MARKING) | 423 #if ENABLE(GC_PROFILE_MARKING) |
424 void recordBacktrace() | 424 void recordBacktrace() |
425 { | 425 { |
426 if (m_raw) | 426 //if (m_raw) |
427 m_tracingName = Heap::createBacktraceString(); | 427 // m_tracingName = Heap::createBacktraceString(); |
428 } | 428 } |
429 | 429 |
430 String m_tracingName; | 430 String m_tracingName; |
431 #else | 431 #else |
432 inline void recordBacktrace() const { } | 432 inline void recordBacktrace() const { } |
433 #endif | 433 #endif |
434 T* m_raw; | 434 T* m_raw; |
435 | 435 |
436 friend class CrossThreadPersistent<T>; | 436 friend class CrossThreadPersistent<T>; |
437 }; | 437 }; |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 template<typename T> | 1151 template<typename T> |
1152 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli
nk::IsGarbageCollectedType<T>::value> { | 1152 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli
nk::IsGarbageCollectedType<T>::value> { |
1153 }; | 1153 }; |
1154 | 1154 |
1155 template<typename T> | 1155 template<typename T> |
1156 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; | 1156 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; |
1157 | 1157 |
1158 } // namespace WTF | 1158 } // namespace WTF |
1159 | 1159 |
1160 #endif | 1160 #endif |
OLD | NEW |