OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 4976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4987 * Iterates through all the persistent handles in the current isolate's heap | 4987 * Iterates through all the persistent handles in the current isolate's heap |
4988 * that have class_ids and are candidates to be marked as partially dependent | 4988 * that have class_ids and are candidates to be marked as partially dependent |
4989 * handles. This will visit handles to young objects created since the last | 4989 * handles. This will visit handles to young objects created since the last |
4990 * garbage collection but is free to visit an arbitrary superset of these | 4990 * garbage collection but is free to visit an arbitrary superset of these |
4991 * objects. | 4991 * objects. |
4992 */ | 4992 */ |
4993 static void VisitHandlesForPartialDependence( | 4993 static void VisitHandlesForPartialDependence( |
4994 Isolate* isolate, PersistentHandleVisitor* visitor); | 4994 Isolate* isolate, PersistentHandleVisitor* visitor); |
4995 | 4995 |
4996 /** | 4996 /** |
4997 * Optional notification that the embedder is idle. | |
4998 * V8 uses the notification to reduce memory footprint. | |
4999 * This call can be used repeatedly if the embedder remains idle. | |
5000 * Returns true if the embedder should stop calling IdleNotification | |
5001 * until real work has been done. This indicates that V8 has done | |
5002 * as much cleanup as it will be able to do. | |
5003 * | |
5004 * The hint argument specifies the amount of work to be done in the function | |
5005 * on scale from 1 to 1000. There is no guarantee that the actual work will | |
5006 * match the hint. | |
5007 * | |
5008 * Deprecated, please use Isolate::IdleNotification. | |
5009 */ | |
5010 static bool IdleNotification(int hint = 1000); | |
5011 | |
5012 /** | |
5013 * Optional notification that the system is running low on memory. | |
5014 * V8 uses these notifications to attempt to free memory. | |
5015 * | |
5016 * Deprecated, please use Isolate::LowMemoryNotification. | |
5017 */ | |
5018 static void LowMemoryNotification(); | |
5019 | |
5020 /** | |
5021 * Optional notification that a context has been disposed. V8 uses | |
5022 * these notifications to guide the GC heuristic. Returns the number | |
5023 * of context disposals - including this one - since the last time | |
5024 * V8 had a chance to clean up. | |
5025 * | |
5026 * Deprecated, please use Isolate::ContextDisposedNotification. | |
5027 */ | |
5028 static int ContextDisposedNotification(); | |
5029 | |
5030 /** | |
5031 * Initialize the ICU library bundled with V8. The embedder should only | 4997 * Initialize the ICU library bundled with V8. The embedder should only |
5032 * invoke this method when using the bundled ICU. Returns true on success. | 4998 * invoke this method when using the bundled ICU. Returns true on success. |
5033 * | 4999 * |
5034 * If V8 was compiled with the ICU data in an external file, the location | 5000 * If V8 was compiled with the ICU data in an external file, the location |
5035 * of the data file has to be provided. | 5001 * of the data file has to be provided. |
5036 */ | 5002 */ |
5037 static bool InitializeICU(const char* icu_data_file = NULL); | 5003 static bool InitializeICU(const char* icu_data_file = NULL); |
5038 | 5004 |
5039 /** | 5005 /** |
5040 * Sets the v8::Platform to use. This should be invoked before V8 is | 5006 * Sets the v8::Platform to use. This should be invoked before V8 is |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6769 */ | 6735 */ |
6770 | 6736 |
6771 | 6737 |
6772 } // namespace v8 | 6738 } // namespace v8 |
6773 | 6739 |
6774 | 6740 |
6775 #undef TYPE_CHECK | 6741 #undef TYPE_CHECK |
6776 | 6742 |
6777 | 6743 |
6778 #endif // V8_H_ | 6744 #endif // V8_H_ |
OLD | NEW |