| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 CallbackStack* ephemeronStack() const { return m_ephemeronStack.get(); } | 284 CallbackStack* ephemeronStack() const { return m_ephemeronStack.get(); } |
| 285 | 285 |
| 286 void attach(ThreadState*); | 286 void attach(ThreadState*); |
| 287 void detach(ThreadState*); | 287 void detach(ThreadState*); |
| 288 void lockThreadAttachMutex(); | 288 void lockThreadAttachMutex(); |
| 289 void unlockThreadAttachMutex(); | 289 void unlockThreadAttachMutex(); |
| 290 | 290 |
| 291 void visitPersistentRoots(Visitor*); | 291 void visitPersistentRoots(Visitor*); |
| 292 void visitStackRoots(Visitor*); | 292 void visitStackRoots(Visitor*); |
| 293 void enterSafePoint(ThreadState*); | 293 void enterSafePoint(ThreadState*); |
| 294 void leaveSafePoint(ThreadState*, SafePointAwareMutexLocker*); | 294 void leaveSafePoint(); |
| 295 | 295 |
| 296 // Add a weak pointer callback to the weak callback work list. General | 296 // Add a weak pointer callback to the weak callback work list. General |
| 297 // object pointer callbacks are added to a thread local weak callback work | 297 // object pointer callbacks are added to a thread local weak callback work |
| 298 // list and the callback is called on the thread that owns the object, with | 298 // list and the callback is called on the thread that owns the object, with |
| 299 // the closure pointer as an argument. Most of the time, the closure and | 299 // the closure pointer as an argument. Most of the time, the closure and |
| 300 // the containerObject can be the same thing, but the containerObject is | 300 // the containerObject can be the same thing, but the containerObject is |
| 301 // constrained to be on the heap, since the heap is used to identify the | 301 // constrained to be on the heap, since the heap is used to identify the |
| 302 // correct thread. | 302 // correct thread. |
| 303 void pushThreadLocalWeakCallback(void* closure, | 303 void pushThreadLocalWeakCallback(void* closure, |
| 304 void* containerObject, | 304 void* containerObject, |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 T** cell = reinterpret_cast<T**>(object); | 695 T** cell = reinterpret_cast<T**>(object); |
| 696 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell)) | 696 if (*cell && !ObjectAliveTrait<T>::isHeapObjectAlive(*cell)) |
| 697 *cell = nullptr; | 697 *cell = nullptr; |
| 698 } | 698 } |
| 699 | 699 |
| 700 } // namespace blink | 700 } // namespace blink |
| 701 | 701 |
| 702 #include "platform/heap/VisitorImpl.h" | 702 #include "platform/heap/VisitorImpl.h" |
| 703 | 703 |
| 704 #endif // Heap_h | 704 #endif // Heap_h |
| OLD | NEW |