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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 int NumberOfGlobalObjectWeakHandles(); | 158 int NumberOfGlobalObjectWeakHandles(); |
159 | 159 |
160 // Returns the current number of handles to global objects. | 160 // Returns the current number of handles to global objects. |
161 int global_handles_count() const { | 161 int global_handles_count() const { |
162 return number_of_global_handles_; | 162 return number_of_global_handles_; |
163 } | 163 } |
164 | 164 |
165 // Clear the weakness of a global handle. | 165 // Clear the weakness of a global handle. |
166 static void* ClearWeakness(Object** location); | 166 static void* ClearWeakness(Object** location); |
167 | 167 |
168 // Clear the weakness of a global handle. | 168 // Mark the reference to this object independent of any object group. |
169 static void MarkIndependent(Object** location); | 169 static void MarkIndependent(Object** location); |
170 | 170 |
171 // Mark the reference to this object externaly unreachable. | 171 // Mark the reference to this object externaly unreachable. |
172 static void MarkPartiallyDependent(Object** location); | 172 static void MarkPartiallyDependent(Object** location); |
173 | 173 |
174 static bool IsIndependent(Object** location); | 174 static bool IsIndependent(Object** location); |
175 | 175 |
176 // Tells whether global handle is near death. | 176 // Tells whether global handle is near death. |
177 static bool IsNearDeath(Object** location); | 177 static bool IsNearDeath(Object** location); |
178 | 178 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; | 455 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; |
456 | 456 |
457 DISALLOW_COPY_AND_ASSIGN(EternalHandles); | 457 DISALLOW_COPY_AND_ASSIGN(EternalHandles); |
458 }; | 458 }; |
459 | 459 |
460 | 460 |
461 } // namespace internal | 461 } // namespace internal |
462 } // namespace v8 | 462 } // namespace v8 |
463 | 463 |
464 #endif // V8_GLOBAL_HANDLES_H_ | 464 #endif // V8_GLOBAL_HANDLES_H_ |
OLD | NEW |