| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // Returns the object groups. | 126 // Returns the object groups. |
| 127 List<ObjectGroup*>* object_groups() { return &object_groups_; } | 127 List<ObjectGroup*>* object_groups() { return &object_groups_; } |
| 128 | 128 |
| 129 // Remove bags, this should only happen after GC. | 129 // Remove bags, this should only happen after GC. |
| 130 void RemoveObjectGroups(); | 130 void RemoveObjectGroups(); |
| 131 | 131 |
| 132 // Tear down the global handle structure. | 132 // Tear down the global handle structure. |
| 133 void TearDown(); | 133 void TearDown(); |
| 134 | 134 |
| 135 Isolate* isolate() { return isolate_; } |
| 136 |
| 135 #ifdef DEBUG | 137 #ifdef DEBUG |
| 136 void PrintStats(); | 138 void PrintStats(); |
| 137 void Print(); | 139 void Print(); |
| 138 #endif | 140 #endif |
| 139 class Pool; | 141 class Pool; |
| 140 private: | 142 private: |
| 141 explicit GlobalHandles(Isolate* isolate); | 143 explicit GlobalHandles(Isolate* isolate); |
| 142 | 144 |
| 143 // Internal node structure, one for each global handle. | 145 // Internal node structure, one for each global handle. |
| 144 class Node; | 146 class Node; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 188 |
| 187 friend class Isolate; | 189 friend class Isolate; |
| 188 | 190 |
| 189 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); | 191 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); |
| 190 }; | 192 }; |
| 191 | 193 |
| 192 | 194 |
| 193 } } // namespace v8::internal | 195 } } // namespace v8::internal |
| 194 | 196 |
| 195 #endif // V8_GLOBAL_HANDLES_H_ | 197 #endif // V8_GLOBAL_HANDLES_H_ |
| OLD | NEW |