| OLD | NEW |
| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // Should be only used in GC callback function before a collection. | 155 // Should be only used in GC callback function before a collection. |
| 156 // All groups are destroyed after a mark-compact collection. | 156 // All groups are destroyed after a mark-compact collection. |
| 157 void AddImplicitReferences(HeapObject* parent, | 157 void AddImplicitReferences(HeapObject* parent, |
| 158 Object*** children, | 158 Object*** children, |
| 159 size_t length); | 159 size_t length); |
| 160 | 160 |
| 161 // Returns the object groups. | 161 // Returns the object groups. |
| 162 List<ObjectGroup*>* object_groups() { return &object_groups_; } | 162 List<ObjectGroup*>* object_groups() { return &object_groups_; } |
| 163 | 163 |
| 164 // Returns the implicit references' groups. | 164 // Returns the implicit references' groups. |
| 165 static List<ImplicitRefGroup*>* ImplicitRefGroups(); | 165 List<ImplicitRefGroup*>* implicit_ref_groups() { |
| 166 return &implicit_ref_groups_; |
| 167 } |
| 166 | 168 |
| 167 // Remove bags, this should only happen after GC. | 169 // Remove bags, this should only happen after GC. |
| 168 void RemoveObjectGroups(); | 170 void RemoveObjectGroups(); |
| 169 static void RemoveImplicitRefGroups(); | 171 void RemoveImplicitRefGroups(); |
| 170 | 172 |
| 171 // Tear down the global handle structure. | 173 // Tear down the global handle structure. |
| 172 void TearDown(); | 174 void TearDown(); |
| 173 | 175 |
| 174 Isolate* isolate() { return isolate_; } | 176 Isolate* isolate() { return isolate_; } |
| 175 | 177 |
| 176 #ifdef DEBUG | 178 #ifdef DEBUG |
| 177 void PrintStats(); | 179 void PrintStats(); |
| 178 void Print(); | 180 void Print(); |
| 179 #endif | 181 #endif |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // <- .next_free <- .next_free <- .next_free | 219 // <- .next_free <- .next_free <- .next_free |
| 218 Node* first_deallocated_; | 220 Node* first_deallocated_; |
| 219 Node* first_deallocated() { return first_deallocated_; } | 221 Node* first_deallocated() { return first_deallocated_; } |
| 220 void set_first_deallocated(Node* value) { | 222 void set_first_deallocated(Node* value) { |
| 221 first_deallocated_ = value; | 223 first_deallocated_ = value; |
| 222 } | 224 } |
| 223 | 225 |
| 224 Pool* pool_; | 226 Pool* pool_; |
| 225 int post_gc_processing_count_; | 227 int post_gc_processing_count_; |
| 226 List<ObjectGroup*> object_groups_; | 228 List<ObjectGroup*> object_groups_; |
| 229 List<ImplicitRefGroup*> implicit_ref_groups_; |
| 227 | 230 |
| 228 friend class Isolate; | 231 friend class Isolate; |
| 229 | 232 |
| 230 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); | 233 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); |
| 231 }; | 234 }; |
| 232 | 235 |
| 233 | 236 |
| 234 } } // namespace v8::internal | 237 } } // namespace v8::internal |
| 235 | 238 |
| 236 #endif // V8_GLOBAL_HANDLES_H_ | 239 #endif // V8_GLOBAL_HANDLES_H_ |
| OLD | NEW |