| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 template<typename T> static Address reallocate(void* previous, size_t); | 911 template<typename T> static Address reallocate(void* previous, size_t); |
| 912 | 912 |
| 913 static void collectGarbage(ThreadState::StackState, ThreadState::CauseOfGC =
ThreadState::NormalGC); | 913 static void collectGarbage(ThreadState::StackState, ThreadState::CauseOfGC =
ThreadState::NormalGC); |
| 914 static void collectGarbageForTerminatingThread(ThreadState*); | 914 static void collectGarbageForTerminatingThread(ThreadState*); |
| 915 static void collectAllGarbage(); | 915 static void collectAllGarbage(); |
| 916 template<CallbackInvocationMode Mode> static void processMarkingStack(); | 916 template<CallbackInvocationMode Mode> static void processMarkingStack(); |
| 917 static void postMarkingProcessing(); | 917 static void postMarkingProcessing(); |
| 918 static void globalWeakProcessing(); | 918 static void globalWeakProcessing(); |
| 919 static void setForcePreciseGCForTesting(); | 919 static void setForcePreciseGCForTesting(); |
| 920 | 920 |
| 921 static void prepareForGC(); | 921 static void preGC(); |
| 922 static void postGC(); |
| 922 | 923 |
| 923 // Conservatively checks whether an address is a pointer in any of the threa
d | 924 // Conservatively checks whether an address is a pointer in any of the threa
d |
| 924 // heaps. If so marks the object pointed to as live. | 925 // heaps. If so marks the object pointed to as live. |
| 925 static Address checkAndMarkPointer(Visitor*, Address); | 926 static Address checkAndMarkPointer(Visitor*, Address); |
| 926 | 927 |
| 927 #if ENABLE(GC_PROFILE_MARKING) | 928 #if ENABLE(GC_PROFILE_MARKING) |
| 928 // Dump the path to specified object on the next GC. This method is to be in
voked from GDB. | 929 // Dump the path to specified object on the next GC. This method is to be in
voked from GDB. |
| 929 static void dumpPathToObjectOnNextGC(void* p); | 930 static void dumpPathToObjectOnNextGC(void* p); |
| 930 | 931 |
| 931 // Forcibly find GCInfo of the object at Address. | 932 // Forcibly find GCInfo of the object at Address. |
| (...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2344 template<typename T, size_t inlineCapacity> | 2345 template<typename T, size_t inlineCapacity> |
| 2345 struct GCInfoTrait<HeapVector<T, inlineCapacity> > : public GCInfoTrait<Vector<T
, inlineCapacity, HeapAllocator> > { }; | 2346 struct GCInfoTrait<HeapVector<T, inlineCapacity> > : public GCInfoTrait<Vector<T
, inlineCapacity, HeapAllocator> > { }; |
| 2346 template<typename T, size_t inlineCapacity> | 2347 template<typename T, size_t inlineCapacity> |
| 2347 struct GCInfoTrait<HeapDeque<T, inlineCapacity> > : public GCInfoTrait<Deque<T,
inlineCapacity, HeapAllocator> > { }; | 2348 struct GCInfoTrait<HeapDeque<T, inlineCapacity> > : public GCInfoTrait<Deque<T,
inlineCapacity, HeapAllocator> > { }; |
| 2348 template<typename T, typename U, typename V> | 2349 template<typename T, typename U, typename V> |
| 2349 struct GCInfoTrait<HeapHashCountedSet<T, U, V> > : public GCInfoTrait<HashCounte
dSet<T, U, V, HeapAllocator> > { }; | 2350 struct GCInfoTrait<HeapHashCountedSet<T, U, V> > : public GCInfoTrait<HashCounte
dSet<T, U, V, HeapAllocator> > { }; |
| 2350 | 2351 |
| 2351 } // namespace blink | 2352 } // namespace blink |
| 2352 | 2353 |
| 2353 #endif // Heap_h | 2354 #endif // Heap_h |
| OLD | NEW |