Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: Source/platform/heap/Heap.h

Issue 559383002: Oilpan: Add trace events for the GC marking and sweeping phases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/v8/V8GCController.cpp ('k') | Source/platform/heap/Heap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8GCController.cpp ('k') | Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698