OLD | NEW |
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2500 static bool IdleNotification(); | 2500 static bool IdleNotification(); |
2501 | 2501 |
2502 /** | 2502 /** |
2503 * Optional notification that the system is running low on memory. | 2503 * Optional notification that the system is running low on memory. |
2504 * V8 uses these notifications to attempt to free memory. | 2504 * V8 uses these notifications to attempt to free memory. |
2505 */ | 2505 */ |
2506 static void LowMemoryNotification(); | 2506 static void LowMemoryNotification(); |
2507 | 2507 |
2508 /** | 2508 /** |
2509 * Optional notification that a context has been disposed. V8 uses | 2509 * Optional notification that a context has been disposed. V8 uses |
2510 * these notifications to guide the garbage collection heuristic. | 2510 * these notifications to guide the GC heuristic. Returns the number |
| 2511 * of context disposals - including this one - since the last time |
| 2512 * V8 had a chance to clean up. |
2511 */ | 2513 */ |
2512 static void ContextDisposedNotification(); | 2514 static int ContextDisposedNotification(); |
2513 | 2515 |
2514 private: | 2516 private: |
2515 V8(); | 2517 V8(); |
2516 | 2518 |
2517 static internal::Object** GlobalizeReference(internal::Object** handle); | 2519 static internal::Object** GlobalizeReference(internal::Object** handle); |
2518 static void DisposeGlobal(internal::Object** global_handle); | 2520 static void DisposeGlobal(internal::Object** global_handle); |
2519 static void MakeWeak(internal::Object** global_handle, | 2521 static void MakeWeak(internal::Object** global_handle, |
2520 void* data, | 2522 void* data, |
2521 WeakReferenceCallback); | 2523 WeakReferenceCallback); |
2522 static void ClearWeak(internal::Object** global_handle); | 2524 static void ClearWeak(internal::Object** global_handle); |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3313 | 3315 |
3314 } // namespace v8 | 3316 } // namespace v8 |
3315 | 3317 |
3316 | 3318 |
3317 #undef V8EXPORT | 3319 #undef V8EXPORT |
3318 #undef V8EXPORT_INLINE | 3320 #undef V8EXPORT_INLINE |
3319 #undef TYPE_CHECK | 3321 #undef TYPE_CHECK |
3320 | 3322 |
3321 | 3323 |
3322 #endif // V8_H_ | 3324 #endif // V8_H_ |
OLD | NEW |