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 4978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4989 * Optional notification that the embedder is idle. | 4989 * Optional notification that the embedder is idle. |
4990 * V8 uses the notification to reduce memory footprint. | 4990 * V8 uses the notification to reduce memory footprint. |
4991 * This call can be used repeatedly if the embedder remains idle. | 4991 * This call can be used repeatedly if the embedder remains idle. |
4992 * Returns true if the embedder should stop calling IdleNotification | 4992 * Returns true if the embedder should stop calling IdleNotification |
4993 * until real work has been done. This indicates that V8 has done | 4993 * until real work has been done. This indicates that V8 has done |
4994 * as much cleanup as it will be able to do. | 4994 * as much cleanup as it will be able to do. |
4995 * | 4995 * |
4996 * The idle_time_in_ms argument specifies the time V8 has to do reduce | 4996 * The idle_time_in_ms argument specifies the time V8 has to do reduce |
4997 * the memory footprint. There is no guarantee that the actual work will be | 4997 * the memory footprint. There is no guarantee that the actual work will be |
4998 * done within the time limit. | 4998 * done within the time limit. |
4999 * The deadline argument specifies the deadline V8 has to reduce | |
5000 * the memory footprint. There is no guarantee that the actual work will be | |
5001 * done within the time limit. | |
rmcilroy
2014/11/25 14:28:06
nit - mention that deadline_seconds is compared wi
Hannes Payer (out of office)
2014/11/25 16:01:36
Done.
| |
4999 */ | 5002 */ |
5000 bool IdleNotification(int idle_time_in_ms); | 5003 bool IdleNotification(int idle_time_in_ms); |
5004 bool IdleNotification(double deadline_in_seconds); | |
5001 | 5005 |
5002 /** | 5006 /** |
5003 * Optional notification that the system is running low on memory. | 5007 * Optional notification that the system is running low on memory. |
5004 * V8 uses these notifications to attempt to free memory. | 5008 * V8 uses these notifications to attempt to free memory. |
5005 */ | 5009 */ |
5006 void LowMemoryNotification(); | 5010 void LowMemoryNotification(); |
5007 | 5011 |
5008 /** | 5012 /** |
5009 * Optional notification that a context has been disposed. V8 uses | 5013 * Optional notification that a context has been disposed. V8 uses |
5010 * these notifications to guide the GC heuristic. Returns the number | 5014 * these notifications to guide the GC heuristic. Returns the number |
(...skipping 2366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7377 */ | 7381 */ |
7378 | 7382 |
7379 | 7383 |
7380 } // namespace v8 | 7384 } // namespace v8 |
7381 | 7385 |
7382 | 7386 |
7383 #undef TYPE_CHECK | 7387 #undef TYPE_CHECK |
7384 | 7388 |
7385 | 7389 |
7386 #endif // V8_H_ | 7390 #endif // V8_H_ |
OLD | NEW |