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