| 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 5161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5172 * Optional notification that the system is running low on memory. | 5172 * Optional notification that the system is running low on memory. |
| 5173 * V8 uses these notifications to attempt to free memory. | 5173 * V8 uses these notifications to attempt to free memory. |
| 5174 */ | 5174 */ |
| 5175 void LowMemoryNotification(); | 5175 void LowMemoryNotification(); |
| 5176 | 5176 |
| 5177 /** | 5177 /** |
| 5178 * Optional notification that a context has been disposed. V8 uses | 5178 * Optional notification that a context has been disposed. V8 uses |
| 5179 * these notifications to guide the GC heuristic. Returns the number | 5179 * these notifications to guide the GC heuristic. Returns the number |
| 5180 * of context disposals - including this one - since the last time | 5180 * of context disposals - including this one - since the last time |
| 5181 * V8 had a chance to clean up. | 5181 * V8 had a chance to clean up. |
| 5182 * |
| 5183 * The optional parameter |dependant_context| specifies whether the disposed |
| 5184 * context was depending on state from other contexts or not. |
| 5182 */ | 5185 */ |
| 5183 int ContextDisposedNotification(); | 5186 int ContextDisposedNotification(bool dependant_context = true); |
| 5184 | 5187 |
| 5185 /** | 5188 /** |
| 5186 * Allows the host application to provide the address of a function that is | 5189 * Allows the host application to provide the address of a function that is |
| 5187 * notified each time code is added, moved or removed. | 5190 * notified each time code is added, moved or removed. |
| 5188 * | 5191 * |
| 5189 * \param options options for the JIT code event handler. | 5192 * \param options options for the JIT code event handler. |
| 5190 * \param event_handler the JIT code event handler, which will be invoked | 5193 * \param event_handler the JIT code event handler, which will be invoked |
| 5191 * each time code is added, moved or removed. | 5194 * each time code is added, moved or removed. |
| 5192 * \note \p event_handler won't get notified of existent code. | 5195 * \note \p event_handler won't get notified of existent code. |
| 5193 * \note since code removal notifications are not currently issued, the | 5196 * \note since code removal notifications are not currently issued, the |
| (...skipping 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7563 */ | 7566 */ |
| 7564 | 7567 |
| 7565 | 7568 |
| 7566 } // namespace v8 | 7569 } // namespace v8 |
| 7567 | 7570 |
| 7568 | 7571 |
| 7569 #undef TYPE_CHECK | 7572 #undef TYPE_CHECK |
| 7570 | 7573 |
| 7571 | 7574 |
| 7572 #endif // V8_H_ | 7575 #endif // V8_H_ |
| OLD | NEW |