| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_GLOBAL_HANDLES_H_ | 5 #ifndef V8_GLOBAL_HANDLES_H_ |
| 6 #define V8_GLOBAL_HANDLES_H_ | 6 #define V8_GLOBAL_HANDLES_H_ |
| 7 | 7 |
| 8 #include "include/v8.h" | 8 #include "include/v8.h" |
| 9 #include "include/v8-profiler.h" | 9 #include "include/v8-profiler.h" |
| 10 | 10 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void ResetNumberOfPhantomHandleResets() { | 160 void ResetNumberOfPhantomHandleResets() { |
| 161 number_of_phantom_handle_resets_ = 0; | 161 number_of_phantom_handle_resets_ = 0; |
| 162 } | 162 } |
| 163 | 163 |
| 164 // Clear the weakness of a global handle. | 164 // Clear the weakness of a global handle. |
| 165 static void* ClearWeakness(Object** location); | 165 static void* ClearWeakness(Object** location); |
| 166 | 166 |
| 167 // Mark the reference to this object independent of any object group. | 167 // Mark the reference to this object independent of any object group. |
| 168 static void MarkIndependent(Object** location); | 168 static void MarkIndependent(Object** location); |
| 169 | 169 |
| 170 // Mark the reference to this object externaly unreachable. | |
| 171 static void MarkPartiallyDependent(Object** location); | |
| 172 | |
| 173 static bool IsIndependent(Object** location); | 170 static bool IsIndependent(Object** location); |
| 174 | 171 |
| 175 // Tells whether global handle is near death. | 172 // Tells whether global handle is near death. |
| 176 static bool IsNearDeath(Object** location); | 173 static bool IsNearDeath(Object** location); |
| 177 | 174 |
| 178 // Tells whether global handle is weak. | 175 // Tells whether global handle is weak. |
| 179 static bool IsWeak(Object** location); | 176 static bool IsWeak(Object** location); |
| 180 | 177 |
| 181 // Process pending weak handles. | 178 // Process pending weak handles. |
| 182 // Returns the number of freed nodes. | 179 // Returns the number of freed nodes. |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; | 453 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; |
| 457 | 454 |
| 458 DISALLOW_COPY_AND_ASSIGN(EternalHandles); | 455 DISALLOW_COPY_AND_ASSIGN(EternalHandles); |
| 459 }; | 456 }; |
| 460 | 457 |
| 461 | 458 |
| 462 } // namespace internal | 459 } // namespace internal |
| 463 } // namespace v8 | 460 } // namespace v8 |
| 464 | 461 |
| 465 #endif // V8_GLOBAL_HANDLES_H_ | 462 #endif // V8_GLOBAL_HANDLES_H_ |
| OLD | NEW |