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 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2194 * Releases any resources used by v8 and stops any utility threads | 2194 * Releases any resources used by v8 and stops any utility threads |
2195 * that may be running. Note that disposing v8 is permanent, it | 2195 * that may be running. Note that disposing v8 is permanent, it |
2196 * cannot be reinitialized. | 2196 * cannot be reinitialized. |
2197 * | 2197 * |
2198 * It should generally not be necessary to dispose v8 before exiting | 2198 * It should generally not be necessary to dispose v8 before exiting |
2199 * a process, this should happen automatically. It is only necessary | 2199 * a process, this should happen automatically. It is only necessary |
2200 * to use if the process needs the resources taken up by v8. | 2200 * to use if the process needs the resources taken up by v8. |
2201 */ | 2201 */ |
2202 static bool Dispose(); | 2202 static bool Dispose(); |
2203 | 2203 |
| 2204 |
| 2205 /** |
| 2206 * Optional notification that the embedder is idle. |
| 2207 * V8 uses the notification to reduce memory footprint. |
| 2208 * \param is_high_priority tells whether the embedder is high priority. |
| 2209 */ |
| 2210 static void IdleNotification(bool is_high_priority); |
| 2211 |
2204 private: | 2212 private: |
2205 V8(); | 2213 V8(); |
2206 | 2214 |
2207 static void** GlobalizeReference(void** handle); | 2215 static void** GlobalizeReference(void** handle); |
2208 static void DisposeGlobal(void** global_handle); | 2216 static void DisposeGlobal(void** global_handle); |
2209 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback); | 2217 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback); |
2210 static void ClearWeak(void** global_handle); | 2218 static void ClearWeak(void** global_handle); |
2211 static bool IsGlobalNearDeath(void** global_handle); | 2219 static bool IsGlobalNearDeath(void** global_handle); |
2212 static bool IsGlobalWeak(void** global_handle); | 2220 static bool IsGlobalWeak(void** global_handle); |
2213 | 2221 |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2680 | 2688 |
2681 } // namespace v8 | 2689 } // namespace v8 |
2682 | 2690 |
2683 | 2691 |
2684 #undef V8EXPORT | 2692 #undef V8EXPORT |
2685 #undef V8EXPORT_INLINE | 2693 #undef V8EXPORT_INLINE |
2686 #undef TYPE_CHECK | 2694 #undef TYPE_CHECK |
2687 | 2695 |
2688 | 2696 |
2689 #endif // V8_H_ | 2697 #endif // V8_H_ |
OLD | NEW |