| 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 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 #else | 1593 #else |
| 1594 if (!s_heapDoesNotContainCache->lookup(address)) | 1594 if (!s_heapDoesNotContainCache->lookup(address)) |
| 1595 s_heapDoesNotContainCache->addEntry(address, true); | 1595 s_heapDoesNotContainCache->addEntry(address, true); |
| 1596 #endif | 1596 #endif |
| 1597 return 0; | 1597 return 0; |
| 1598 } | 1598 } |
| 1599 | 1599 |
| 1600 #if ENABLE(GC_TRACING) | 1600 #if ENABLE(GC_TRACING) |
| 1601 const GCInfo* Heap::findGCInfo(Address address) | 1601 const GCInfo* Heap::findGCInfo(Address address) |
| 1602 { | 1602 { |
| 1603 ThreadState::AttachedThreadStateSet& threads = ThreadState::attachedThreads(
); | 1603 return ThreadState::findGCInfoFromAllThreads(address); |
| 1604 for (ThreadState::AttachedThreadStateSet::iterator it = threads.begin(), end
= threads.end(); it != end; ++it) { | |
| 1605 if (const GCInfo* gcInfo = (*it)->findGCInfo(address)) { | |
| 1606 return gcInfo; | |
| 1607 } | |
| 1608 } | |
| 1609 return 0; | |
| 1610 } | 1604 } |
| 1611 | 1605 |
| 1612 void Heap::dumpPathToObjectOnNextGC(void* p) | 1606 void Heap::dumpPathToObjectOnNextGC(void* p) |
| 1613 { | 1607 { |
| 1614 static_cast<MarkingVisitor*>(s_markingVisitor)->dumpPathToObjectOnNextGC(p); | 1608 static_cast<MarkingVisitor*>(s_markingVisitor)->dumpPathToObjectOnNextGC(p); |
| 1615 } | 1609 } |
| 1616 #endif | 1610 #endif |
| 1617 | 1611 |
| 1618 void Heap::pushTraceCallback(void* object, TraceCallback callback) | 1612 void Heap::pushTraceCallback(void* object, TraceCallback callback) |
| 1619 { | 1613 { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 template class ThreadHeap<FinalizedHeapObjectHeader>; | 1771 template class ThreadHeap<FinalizedHeapObjectHeader>; |
| 1778 template class ThreadHeap<HeapObjectHeader>; | 1772 template class ThreadHeap<HeapObjectHeader>; |
| 1779 | 1773 |
| 1780 Visitor* Heap::s_markingVisitor; | 1774 Visitor* Heap::s_markingVisitor; |
| 1781 CallbackStack* Heap::s_markingStack; | 1775 CallbackStack* Heap::s_markingStack; |
| 1782 CallbackStack* Heap::s_weakCallbackStack; | 1776 CallbackStack* Heap::s_weakCallbackStack; |
| 1783 HeapDoesNotContainCache* Heap::s_heapDoesNotContainCache; | 1777 HeapDoesNotContainCache* Heap::s_heapDoesNotContainCache; |
| 1784 bool Heap::s_shutdownCalled = false; | 1778 bool Heap::s_shutdownCalled = false; |
| 1785 bool Heap::s_lastGCWasConservative = false; | 1779 bool Heap::s_lastGCWasConservative = false; |
| 1786 } | 1780 } |
| OLD | NEW |