| 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 HeapStats& stats() { return m_stats; } | 685 HeapStats& stats() { return m_stats; } |
| 686 HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; } | |
| 687 | 686 |
| 688 void setupHeapsForTermination(); | 687 void setupHeapsForTermination(); |
| 689 | 688 |
| 690 void registerSweepingTask(); | 689 void registerSweepingTask(); |
| 691 void unregisterSweepingTask(); | 690 void unregisterSweepingTask(); |
| 692 | 691 |
| 693 // Request to call a pref-finalizer of the target object before the object | 692 // 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 | 693 // is destructed. The class T must have USING_PRE_FINALIZER(). The |
| 695 // argument should be |*this|. Registering a lot of objects affects GC | 694 // argument should be |*this|. Registering a lot of objects affects GC |
| 696 // performance. We should register an object only if the object really | 695 // performance. We should register an object only if the object really |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 // whether the page is part of a terminting thread or | 942 // whether the page is part of a terminting thread or |
| 944 // if the page is traced after being terminated (orphaned). | 943 // if the page is traced after being terminated (orphaned). |
| 945 uintptr_t m_terminating : 1; | 944 uintptr_t m_terminating : 1; |
| 946 uintptr_t m_tracedAfterOrphaned : 1; | 945 uintptr_t m_tracedAfterOrphaned : 1; |
| 947 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 | 946 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 |
| 948 }; | 947 }; |
| 949 | 948 |
| 950 } | 949 } |
| 951 | 950 |
| 952 #endif // ThreadState_h | 951 #endif // ThreadState_h |
| OLD | NEW |