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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 static void remove(PageMemoryRegion*, RegionTree**); | 1042 static void remove(PageMemoryRegion*, RegionTree**); |
1043 private: | 1043 private: |
1044 PageMemoryRegion* m_region; | 1044 PageMemoryRegion* m_region; |
1045 RegionTree* m_left; | 1045 RegionTree* m_left; |
1046 RegionTree* m_right; | 1046 RegionTree* m_right; |
1047 }; | 1047 }; |
1048 | 1048 |
1049 // Reset counters that track live and allocated-since-last-GC sizes. | 1049 // Reset counters that track live and allocated-since-last-GC sizes. |
1050 static void resetHeapCounters(); | 1050 static void resetHeapCounters(); |
1051 | 1051 |
| 1052 static void ensureCallbackStacks(); |
| 1053 |
1052 static Visitor* s_markingVisitor; | 1054 static Visitor* s_markingVisitor; |
1053 static CallbackStack* s_markingStack; | 1055 static CallbackStack* s_markingStack; |
1054 static CallbackStack* s_postMarkingCallbackStack; | 1056 static CallbackStack* s_postMarkingCallbackStack; |
1055 static CallbackStack* s_weakCallbackStack; | 1057 static CallbackStack* s_weakCallbackStack; |
1056 static CallbackStack* s_ephemeronStack; | 1058 static CallbackStack* s_ephemeronStack; |
1057 static HeapDoesNotContainCache* s_heapDoesNotContainCache; | 1059 static HeapDoesNotContainCache* s_heapDoesNotContainCache; |
1058 static bool s_shutdownCalled; | 1060 static bool s_shutdownCalled; |
1059 static bool s_lastGCWasConservative; | 1061 static bool s_lastGCWasConservative; |
1060 static FreePagePool* s_freePagePool; | 1062 static FreePagePool* s_freePagePool; |
1061 static OrphanedPagePool* s_orphanedPagePool; | 1063 static OrphanedPagePool* s_orphanedPagePool; |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 Value* table = reinterpret_cast<Value*>(pointer); | 2046 Value* table = reinterpret_cast<Value*>(pointer); |
2045 for (unsigned i = 0; i < length; ++i) { | 2047 for (unsigned i = 0; i < length; ++i) { |
2046 if (!Table::isEmptyOrDeletedBucket(table[i])) | 2048 if (!Table::isEmptyOrDeletedBucket(table[i])) |
2047 table[i].~Value(); | 2049 table[i].~Value(); |
2048 } | 2050 } |
2049 } | 2051 } |
2050 | 2052 |
2051 } // namespace blink | 2053 } // namespace blink |
2052 | 2054 |
2053 #endif // Heap_h | 2055 #endif // Heap_h |
OLD | NEW |