| 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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 // FIXME(oilpan): finalize objects on the thread that allocated them. | 944 // FIXME(oilpan): finalize objects on the thread that allocated them. |
| 945 ThreadState::MainThreadState()->setPendingAction(&Heap::finalizePendingO
bjects); | 945 ThreadState::MainThreadState()->setPendingAction(&Heap::finalizePendingO
bjects); |
| 946 | 946 |
| 947 #ifndef NDEBUG | 947 #ifndef NDEBUG |
| 948 const double endTime = WTF::monotonicallyIncreasingTime(); | 948 const double endTime = WTF::monotonicallyIncreasingTime(); |
| 949 if (false) { | 949 if (false) { |
| 950 printf("GC "); | 950 printf("GC "); |
| 951 PrintStats(before); | 951 PrintStats(before); |
| 952 printf(" => "); | 952 printf(" => "); |
| 953 PrintStats(*s_statsAfterLastGC); | 953 PrintStats(*s_statsAfterLastGC); |
| 954 printf(" in %.3fs (thread %p)\n", (endTime - startTime), currentThre
ad()); | 954 printf(" in %.3fs (thread %x)\n", (endTime - startTime), currentThre
ad()); |
| 955 } | 955 } |
| 956 #endif | 956 #endif |
| 957 } | 957 } |
| 958 } | 958 } |
| 959 | 959 |
| 960 void Heap::pushAcceptCallback(void* object, AcceptCallback callback) | 960 void Heap::pushAcceptCallback(void* object, AcceptCallback callback) |
| 961 { | 961 { |
| 962 ASSERT(Heap::contains(object)); | 962 ASSERT(Heap::contains(object)); |
| 963 #ifndef NDEBUG | 963 #ifndef NDEBUG |
| 964 FinalizedHeapObjectHeader::fromPayload(object)->checkHeader(); | 964 FinalizedHeapObjectHeader::fromPayload(object)->checkHeader(); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 HeapPage* Heap::s_firstPage; | 1040 HeapPage* Heap::s_firstPage; |
| 1041 int Heap::s_biggestFreeListIndex; | 1041 int Heap::s_biggestFreeListIndex; |
| 1042 FreeListEntry* Heap::s_freeLists[pageSizeLog2]; | 1042 FreeListEntry* Heap::s_freeLists[pageSizeLog2]; |
| 1043 HeapStats* Heap::s_stats; | 1043 HeapStats* Heap::s_stats; |
| 1044 HeapStats* Heap::s_statsAfterLastGC; | 1044 HeapStats* Heap::s_statsAfterLastGC; |
| 1045 bool Heap::s_heapWasInitialized = false; | 1045 bool Heap::s_heapWasInitialized = false; |
| 1046 CallbackStack* Heap::s_markingStack; | 1046 CallbackStack* Heap::s_markingStack; |
| 1047 CallbackStack* Heap::s_weakCallbackStack; | 1047 CallbackStack* Heap::s_weakCallbackStack; |
| 1048 | 1048 |
| 1049 } // namespace WebCore | 1049 } // namespace WebCore |
| OLD | NEW |