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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 size_t getClassTag(const GCInfo*); | 675 size_t getClassTag(const GCInfo*); |
676 }; | 676 }; |
677 | 677 |
678 void snapshot(); | 678 void snapshot(); |
679 #endif | 679 #endif |
680 | 680 |
681 void pushWeakObjectPointerCallback(void*, WeakPointerCallback); | 681 void pushWeakObjectPointerCallback(void*, WeakPointerCallback); |
682 bool popAndInvokeWeakPointerCallback(Visitor*); | 682 bool popAndInvokeWeakPointerCallback(Visitor*); |
683 | 683 |
684 void getStats(HeapStats&); | 684 void getStats(HeapStats&); |
| 685 void getStatsForTesting(HeapStats&); |
685 HeapStats& stats() { return m_stats; } | 686 HeapStats& stats() { return m_stats; } |
686 HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; } | 687 HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; } |
687 | 688 |
688 void setupHeapsForTermination(); | 689 void setupHeapsForTermination(); |
689 | 690 |
690 void registerSweepingTask(); | 691 void registerSweepingTask(); |
691 void unregisterSweepingTask(); | 692 void unregisterSweepingTask(); |
692 | 693 |
693 // Request to call a pref-finalizer of the target object before the object | 694 // Request to call a pref-finalizer of the target object before the object |
694 // is destructed. The class T must have USING_PRE_FINALIZER(). The | 695 // is destructed. The class T must have USING_PRE_FINALIZER(). The |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 // whether the page is part of a terminting thread or | 944 // whether the page is part of a terminting thread or |
944 // if the page is traced after being terminated (orphaned). | 945 // if the page is traced after being terminated (orphaned). |
945 uintptr_t m_terminating : 1; | 946 uintptr_t m_terminating : 1; |
946 uintptr_t m_tracedAfterOrphaned : 1; | 947 uintptr_t m_tracedAfterOrphaned : 1; |
947 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 | 948 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 |
948 }; | 949 }; |
949 | 950 |
950 } | 951 } |
951 | 952 |
952 #endif // ThreadState_h | 953 #endif // ThreadState_h |
OLD | NEW |