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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // Returns the object groups. | 139 // Returns the object groups. |
140 List<ObjectGroup*>* object_groups() { return &object_groups_; } | 140 List<ObjectGroup*>* object_groups() { return &object_groups_; } |
141 | 141 |
142 // Remove bags, this should only happen after GC. | 142 // Remove bags, this should only happen after GC. |
143 void RemoveObjectGroups(); | 143 void RemoveObjectGroups(); |
144 | 144 |
145 // Tear down the global handle structure. | 145 // Tear down the global handle structure. |
146 void TearDown(); | 146 void TearDown(); |
147 | 147 |
| 148 Isolate* isolate() { return isolate_; } |
| 149 |
148 #ifdef DEBUG | 150 #ifdef DEBUG |
149 void PrintStats(); | 151 void PrintStats(); |
150 void Print(); | 152 void Print(); |
151 #endif | 153 #endif |
152 class Pool; | 154 class Pool; |
153 private: | 155 private: |
154 explicit GlobalHandles(Isolate* isolate); | 156 explicit GlobalHandles(Isolate* isolate); |
155 | 157 |
156 // Internal node structure, one for each global handle. | 158 // Internal node structure, one for each global handle. |
157 class Node; | 159 class Node; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 201 |
200 friend class Isolate; | 202 friend class Isolate; |
201 | 203 |
202 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); | 204 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); |
203 }; | 205 }; |
204 | 206 |
205 | 207 |
206 } } // namespace v8::internal | 208 } } // namespace v8::internal |
207 | 209 |
208 #endif // V8_GLOBAL_HANDLES_H_ | 210 #endif // V8_GLOBAL_HANDLES_H_ |
OLD | NEW |