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

Side by Side Diff: src/global-handles.h

Issue 355041: Made iteration of global handles more efficient on scavenges. (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | src/global-handles.cc » ('j') | src/global-handles.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Tells whether global handle is near death. 89 // Tells whether global handle is near death.
90 static bool IsNearDeath(Object** location); 90 static bool IsNearDeath(Object** location);
91 91
92 // Tells whether global handle is weak. 92 // Tells whether global handle is weak.
93 static bool IsWeak(Object** location); 93 static bool IsWeak(Object** location);
94 94
95 // Process pending weak handles. 95 // Process pending weak handles.
96 static void PostGarbageCollectionProcessing(); 96 static void PostGarbageCollectionProcessing();
97 97
98 // Iterates over all strong handles.
99 static void IterateStrongRoots(ObjectVisitor* v);
100
98 // Iterates over all handles. 101 // Iterates over all handles.
99 static void IterateRoots(ObjectVisitor* v); 102 static void IterateAllRoots(ObjectVisitor* v);
100 103
101 // Iterates over all weak roots in heap. 104 // Iterates over all weak roots in heap.
102 static void IterateWeakRoots(ObjectVisitor* v); 105 static void IterateWeakRoots(ObjectVisitor* v);
103 106
104 // Iterates over weak roots that are bound to a given callback. 107 // Iterates over weak roots that are bound to a given callback.
105 static void IterateWeakRoots(WeakReferenceGuest f, 108 static void IterateWeakRoots(WeakReferenceGuest f,
106 WeakReferenceCallback callback); 109 WeakReferenceCallback callback);
107 110
108 // Find all weak handles satisfying the callback predicate, mark 111 // Find all weak handles satisfying the callback predicate, mark
109 // them as pending. 112 // them as pending.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 static Node* first_deallocated() { return first_deallocated_; } 168 static Node* first_deallocated() { return first_deallocated_; }
166 static void set_first_deallocated(Node* value) { 169 static void set_first_deallocated(Node* value) {
167 first_deallocated_ = value; 170 first_deallocated_ = value;
168 } 171 }
169 }; 172 };
170 173
171 174
172 } } // namespace v8::internal 175 } } // namespace v8::internal
173 176
174 #endif // V8_GLOBAL_HANDLES_H_ 177 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | src/global-handles.cc » ('j') | src/global-handles.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698