| 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 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2466 * as much cleanup as it will be able to do. | 2466 * as much cleanup as it will be able to do. |
| 2467 */ | 2467 */ |
| 2468 static bool IdleNotification(); | 2468 static bool IdleNotification(); |
| 2469 | 2469 |
| 2470 /** | 2470 /** |
| 2471 * Optional notification that the system is running low on memory. | 2471 * Optional notification that the system is running low on memory. |
| 2472 * V8 uses these notifications to attempt to free memory. | 2472 * V8 uses these notifications to attempt to free memory. |
| 2473 */ | 2473 */ |
| 2474 static void LowMemoryNotification(); | 2474 static void LowMemoryNotification(); |
| 2475 | 2475 |
| 2476 /** |
| 2477 * Optional notification that one or more context have been |
| 2478 * disposed. V8 may choose to collect garbage to get rid of any |
| 2479 * external memory associated with the disposed contexts. |
| 2480 */ |
| 2481 static void ContextDisposedNotification(); |
| 2482 |
| 2476 private: | 2483 private: |
| 2477 V8(); | 2484 V8(); |
| 2478 | 2485 |
| 2479 static internal::Object** GlobalizeReference(internal::Object** handle); | 2486 static internal::Object** GlobalizeReference(internal::Object** handle); |
| 2480 static void DisposeGlobal(internal::Object** global_handle); | 2487 static void DisposeGlobal(internal::Object** global_handle); |
| 2481 static void MakeWeak(internal::Object** global_handle, | 2488 static void MakeWeak(internal::Object** global_handle, |
| 2482 void* data, | 2489 void* data, |
| 2483 WeakReferenceCallback); | 2490 WeakReferenceCallback); |
| 2484 static void ClearWeak(internal::Object** global_handle); | 2491 static void ClearWeak(internal::Object** global_handle); |
| 2485 static bool IsGlobalNearDeath(internal::Object** global_handle); | 2492 static bool IsGlobalNearDeath(internal::Object** global_handle); |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3275 | 3282 |
| 3276 } // namespace v8 | 3283 } // namespace v8 |
| 3277 | 3284 |
| 3278 | 3285 |
| 3279 #undef V8EXPORT | 3286 #undef V8EXPORT |
| 3280 #undef V8EXPORT_INLINE | 3287 #undef V8EXPORT_INLINE |
| 3281 #undef TYPE_CHECK | 3288 #undef TYPE_CHECK |
| 3282 | 3289 |
| 3283 | 3290 |
| 3284 #endif // V8_H_ | 3291 #endif // V8_H_ |
| OLD | NEW |