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 5330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5341 * Request V8 to interrupt long running JavaScript code and invoke | 5341 * Request V8 to interrupt long running JavaScript code and invoke |
5342 * the given |callback| passing the given |data| to it. After |callback| | 5342 * the given |callback| passing the given |data| to it. After |callback| |
5343 * returns control will be returned to the JavaScript code. | 5343 * returns control will be returned to the JavaScript code. |
5344 * There may be a number of interrupt requests in flight. | 5344 * There may be a number of interrupt requests in flight. |
5345 * Can be called from another thread without acquiring a |Locker|. | 5345 * Can be called from another thread without acquiring a |Locker|. |
5346 * Registered |callback| must not reenter interrupted Isolate. | 5346 * Registered |callback| must not reenter interrupted Isolate. |
5347 */ | 5347 */ |
5348 void RequestInterrupt(InterruptCallback callback, void* data); | 5348 void RequestInterrupt(InterruptCallback callback, void* data); |
5349 | 5349 |
5350 /** | 5350 /** |
5351 * Clear interrupt request created by |RequestInterrupt|. | |
5352 * Can be called from another thread without acquiring a |Locker|. | |
5353 */ | |
5354 V8_DEPRECATED("There's no way to clear interrupts in flight.", | |
5355 void ClearInterrupt()); | |
5356 | |
5357 /** | |
5358 * Request garbage collection in this Isolate. It is only valid to call this | 5351 * Request garbage collection in this Isolate. It is only valid to call this |
5359 * function if --expose_gc was specified. | 5352 * function if --expose_gc was specified. |
5360 * | 5353 * |
5361 * This should only be used for testing purposes and not to enforce a garbage | 5354 * This should only be used for testing purposes and not to enforce a garbage |
5362 * collection schedule. It has strong negative impact on the garbage | 5355 * collection schedule. It has strong negative impact on the garbage |
5363 * collection performance. Use IdleNotification() or LowMemoryNotification() | 5356 * collection performance. Use IdleNotification() or LowMemoryNotification() |
5364 * instead to influence the garbage collection schedule. | 5357 * instead to influence the garbage collection schedule. |
5365 */ | 5358 */ |
5366 void RequestGarbageCollectionForTesting(GarbageCollectionType type); | 5359 void RequestGarbageCollectionForTesting(GarbageCollectionType type); |
5367 | 5360 |
(...skipping 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8001 */ | 7994 */ |
8002 | 7995 |
8003 | 7996 |
8004 } // namespace v8 | 7997 } // namespace v8 |
8005 | 7998 |
8006 | 7999 |
8007 #undef TYPE_CHECK | 8000 #undef TYPE_CHECK |
8008 | 8001 |
8009 | 8002 |
8010 #endif // V8_H_ | 8003 #endif // V8_H_ |
OLD | NEW |