| 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 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 #if ENABLE(ASSERT) | 1102 #if ENABLE(ASSERT) |
| 1103 static bool weakTableRegistered(const void*); | 1103 static bool weakTableRegistered(const void*); |
| 1104 #endif | 1104 #endif |
| 1105 | 1105 |
| 1106 template<typename T, typename HeapTraits> static Address allocate(size_t); | 1106 template<typename T, typename HeapTraits> static Address allocate(size_t); |
| 1107 // FIXME: remove this once c++11 is allowed everywhere: | 1107 // FIXME: remove this once c++11 is allowed everywhere: |
| 1108 template<typename T> static Address allocate(size_t); | 1108 template<typename T> static Address allocate(size_t); |
| 1109 | 1109 |
| 1110 template<typename T> static Address reallocate(void* previous, size_t); | 1110 template<typename T> static Address reallocate(void* previous, size_t); |
| 1111 | 1111 |
| 1112 static void collectGarbage(ThreadState::StackState); | 1112 static void collectGarbage(ThreadState::StackState, ThreadState::CauseOfGC =
ThreadState::NormalGC); |
| 1113 static void collectGarbageForTerminatingThread(ThreadState*); | 1113 static void collectGarbageForTerminatingThread(ThreadState*); |
| 1114 static void collectAllGarbage(); | 1114 static void collectAllGarbage(); |
| 1115 static void processMarkingStackEntries(int* numberOfMarkingThreads); | 1115 static void processMarkingStackEntries(int* numberOfMarkingThreads); |
| 1116 static void processMarkingStackOnMultipleThreads(); | 1116 static void processMarkingStackOnMultipleThreads(); |
| 1117 static void processMarkingStackInParallel(); | 1117 static void processMarkingStackInParallel(); |
| 1118 template<CallbackInvocationMode Mode> static void processMarkingStack(); | 1118 template<CallbackInvocationMode Mode> static void processMarkingStack(); |
| 1119 static void postMarkingProcessing(); | 1119 static void postMarkingProcessing(); |
| 1120 static void globalWeakProcessing(); | 1120 static void globalWeakProcessing(); |
| 1121 static void setForcePreciseGCForTesting(); | 1121 static void setForcePreciseGCForTesting(); |
| 1122 | 1122 |
| (...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2577 }; | 2577 }; |
| 2578 | 2578 |
| 2579 template<typename T> | 2579 template<typename T> |
| 2580 struct IfWeakMember<WeakMember<T> > { | 2580 struct IfWeakMember<WeakMember<T> > { |
| 2581 static bool isDead(Visitor* visitor, const WeakMember<T>& t) { return !visit
or->isAlive(t.get()); } | 2581 static bool isDead(Visitor* visitor, const WeakMember<T>& t) { return !visit
or->isAlive(t.get()); } |
| 2582 }; | 2582 }; |
| 2583 | 2583 |
| 2584 } | 2584 } |
| 2585 | 2585 |
| 2586 #endif // Heap_h | 2586 #endif // Heap_h |
| OLD | NEW |