OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 int NumberOfGlobalHandles() { | 148 int NumberOfGlobalHandles() { |
149 return number_of_global_handles_; | 149 return number_of_global_handles_; |
150 } | 150 } |
151 | 151 |
152 // Clear the weakness of a global handle. | 152 // Clear the weakness of a global handle. |
153 void ClearWeakness(Object** location); | 153 void ClearWeakness(Object** location); |
154 | 154 |
155 // Clear the weakness of a global handle. | 155 // Clear the weakness of a global handle. |
156 void MarkIndependent(Object** location); | 156 void MarkIndependent(Object** location); |
157 | 157 |
| 158 // Mark the reference to this object externaly unreachable. |
| 159 void MarkExternallyUnreachable(Object** location); |
| 160 |
158 static bool IsIndependent(Object** location); | 161 static bool IsIndependent(Object** location); |
159 | 162 |
160 // Tells whether global handle is near death. | 163 // Tells whether global handle is near death. |
161 static bool IsNearDeath(Object** location); | 164 static bool IsNearDeath(Object** location); |
162 | 165 |
163 // Tells whether global handle is weak. | 166 // Tells whether global handle is weak. |
164 static bool IsWeak(Object** location); | 167 static bool IsWeak(Object** location); |
165 | 168 |
166 // Process pending weak handles. | 169 // Process pending weak handles. |
167 // Returns true if next major GC is likely to collect more garbage. | 170 // Returns true if next major GC is likely to collect more garbage. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 282 |
280 friend class Isolate; | 283 friend class Isolate; |
281 | 284 |
282 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); | 285 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); |
283 }; | 286 }; |
284 | 287 |
285 | 288 |
286 } } // namespace v8::internal | 289 } } // namespace v8::internal |
287 | 290 |
288 #endif // V8_GLOBAL_HANDLES_H_ | 291 #endif // V8_GLOBAL_HANDLES_H_ |
OLD | NEW |