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 2456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 /** | 2476 /** |
2477 * Optional notification that one or more context have been | 2477 * Optional notification that a context has been disposed. V8 uses |
2478 * disposed. V8 may choose to collect garbage to get rid of any | 2478 * these notifications to guide the garbage collection heuristic. |
2479 * external memory associated with the disposed contexts. | |
2480 */ | 2479 */ |
2481 static void ContextDisposedNotification(); | 2480 static void ContextDisposedNotification(); |
2482 | 2481 |
2483 private: | 2482 private: |
2484 V8(); | 2483 V8(); |
2485 | 2484 |
2486 static internal::Object** GlobalizeReference(internal::Object** handle); | 2485 static internal::Object** GlobalizeReference(internal::Object** handle); |
2487 static void DisposeGlobal(internal::Object** global_handle); | 2486 static void DisposeGlobal(internal::Object** global_handle); |
2488 static void MakeWeak(internal::Object** global_handle, | 2487 static void MakeWeak(internal::Object** global_handle, |
2489 void* data, | 2488 void* data, |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3282 | 3281 |
3283 } // namespace v8 | 3282 } // namespace v8 |
3284 | 3283 |
3285 | 3284 |
3286 #undef V8EXPORT | 3285 #undef V8EXPORT |
3287 #undef V8EXPORT_INLINE | 3286 #undef V8EXPORT_INLINE |
3288 #undef TYPE_CHECK | 3287 #undef TYPE_CHECK |
3289 | 3288 |
3290 | 3289 |
3291 #endif // V8_H_ | 3290 #endif // V8_H_ |
OLD | NEW |