OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 2266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2277 static bool Dispose(); | 2277 static bool Dispose(); |
2278 | 2278 |
2279 | 2279 |
2280 /** | 2280 /** |
2281 * Optional notification that the embedder is idle. | 2281 * Optional notification that the embedder is idle. |
2282 * V8 uses the notification to reduce memory footprint. | 2282 * V8 uses the notification to reduce memory footprint. |
2283 * \param is_high_priority tells whether the embedder is high priority. | 2283 * \param is_high_priority tells whether the embedder is high priority. |
2284 */ | 2284 */ |
2285 static void IdleNotification(bool is_high_priority); | 2285 static void IdleNotification(bool is_high_priority); |
2286 | 2286 |
| 2287 /** |
| 2288 * Optional notification that the system is running low on memory. |
| 2289 * V8 uses these notifications to attempt to free memory. |
| 2290 */ |
| 2291 static void LowMemoryNotification(); |
| 2292 |
2287 private: | 2293 private: |
2288 V8(); | 2294 V8(); |
2289 | 2295 |
2290 static void** GlobalizeReference(void** handle); | 2296 static void** GlobalizeReference(void** handle); |
2291 static void DisposeGlobal(void** global_handle); | 2297 static void DisposeGlobal(void** global_handle); |
2292 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback); | 2298 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback); |
2293 static void ClearWeak(void** global_handle); | 2299 static void ClearWeak(void** global_handle); |
2294 static bool IsGlobalNearDeath(void** global_handle); | 2300 static bool IsGlobalNearDeath(void** global_handle); |
2295 static bool IsGlobalWeak(void** global_handle); | 2301 static bool IsGlobalWeak(void** global_handle); |
2296 | 2302 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2785 | 2791 |
2786 } // namespace v8 | 2792 } // namespace v8 |
2787 | 2793 |
2788 | 2794 |
2789 #undef V8EXPORT | 2795 #undef V8EXPORT |
2790 #undef V8EXPORT_INLINE | 2796 #undef V8EXPORT_INLINE |
2791 #undef TYPE_CHECK | 2797 #undef TYPE_CHECK |
2792 | 2798 |
2793 | 2799 |
2794 #endif // V8_H_ | 2800 #endif // V8_H_ |
OLD | NEW |