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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 size_t getClassTag(const GCInfo*); | 655 size_t getClassTag(const GCInfo*); |
656 }; | 656 }; |
657 | 657 |
658 void snapshot(); | 658 void snapshot(); |
659 #endif | 659 #endif |
660 | 660 |
661 void pushWeakObjectPointerCallback(void*, WeakPointerCallback); | 661 void pushWeakObjectPointerCallback(void*, WeakPointerCallback); |
662 bool popAndInvokeWeakPointerCallback(Visitor*); | 662 bool popAndInvokeWeakPointerCallback(Visitor*); |
663 | 663 |
664 void getStats(HeapStats&); | 664 void getStats(HeapStats&); |
| 665 void getStatsForTesting(HeapStats&); |
665 HeapStats& stats() { return m_stats; } | 666 HeapStats& stats() { return m_stats; } |
666 HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; } | 667 HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; } |
667 | 668 |
668 void setupHeapsForTermination(); | 669 void setupHeapsForTermination(); |
669 | 670 |
670 void registerSweepingTask(); | 671 void registerSweepingTask(); |
671 void unregisterSweepingTask(); | 672 void unregisterSweepingTask(); |
672 | 673 |
673 // Request to call a pref-finalizer of the target object before the object | 674 // Request to call a pref-finalizer of the target object before the object |
674 // is destructed. The class T must have USING_PRE_FINALIZER(). The | 675 // is destructed. The class T must have USING_PRE_FINALIZER(). The |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 // whether the page is part of a terminting thread or | 916 // whether the page is part of a terminting thread or |
916 // if the page is traced after being terminated (orphaned). | 917 // if the page is traced after being terminated (orphaned). |
917 uintptr_t m_terminating : 1; | 918 uintptr_t m_terminating : 1; |
918 uintptr_t m_tracedAfterOrphaned : 1; | 919 uintptr_t m_tracedAfterOrphaned : 1; |
919 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 | 920 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 |
920 }; | 921 }; |
921 | 922 |
922 } | 923 } |
923 | 924 |
924 #endif // ThreadState_h | 925 #endif // ThreadState_h |
OLD | NEW |