| 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 4984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4995 * | 4995 * |
| 4996 * This method can be used by any thread even if that thread has not | 4996 * This method can be used by any thread even if that thread has not |
| 4997 * acquired the V8 lock with a Locker object. | 4997 * acquired the V8 lock with a Locker object. |
| 4998 */ | 4998 */ |
| 4999 void CancelTerminateExecution(); | 4999 void CancelTerminateExecution(); |
| 5000 | 5000 |
| 5001 /** | 5001 /** |
| 5002 * Request V8 to interrupt long running JavaScript code and invoke | 5002 * Request V8 to interrupt long running JavaScript code and invoke |
| 5003 * the given |callback| passing the given |data| to it. After |callback| | 5003 * the given |callback| passing the given |data| to it. After |callback| |
| 5004 * returns control will be returned to the JavaScript code. | 5004 * returns control will be returned to the JavaScript code. |
| 5005 * At any given moment V8 can remember only a single callback for the very | 5005 * There may be a number of interrupt requests in flight. |
| 5006 * last interrupt request. | |
| 5007 * Can be called from another thread without acquiring a |Locker|. | 5006 * Can be called from another thread without acquiring a |Locker|. |
| 5008 * Registered |callback| must not reenter interrupted Isolate. | 5007 * Registered |callback| must not reenter interrupted Isolate. |
| 5009 */ | 5008 */ |
| 5010 void RequestInterrupt(InterruptCallback callback, void* data); | 5009 void RequestInterrupt(InterruptCallback callback, void* data); |
| 5011 | 5010 |
| 5012 /** | 5011 /** |
| 5013 * Clear interrupt request created by |RequestInterrupt|. | 5012 * Clear interrupt request created by |RequestInterrupt|. |
| 5014 * Can be called from another thread without acquiring a |Locker|. | 5013 * Can be called from another thread without acquiring a |Locker|. |
| 5015 */ | 5014 */ |
| 5016 void ClearInterrupt(); | 5015 V8_DEPRECATED("There's no way to clear interrupts in flight.", |
| 5016 void ClearInterrupt()); |
| 5017 | 5017 |
| 5018 /** | 5018 /** |
| 5019 * Request garbage collection in this Isolate. It is only valid to call this | 5019 * Request garbage collection in this Isolate. It is only valid to call this |
| 5020 * function if --expose_gc was specified. | 5020 * function if --expose_gc was specified. |
| 5021 * | 5021 * |
| 5022 * This should only be used for testing purposes and not to enforce a garbage | 5022 * This should only be used for testing purposes and not to enforce a garbage |
| 5023 * collection schedule. It has strong negative impact on the garbage | 5023 * collection schedule. It has strong negative impact on the garbage |
| 5024 * collection performance. Use IdleNotification() or LowMemoryNotification() | 5024 * collection performance. Use IdleNotification() or LowMemoryNotification() |
| 5025 * instead to influence the garbage collection schedule. | 5025 * instead to influence the garbage collection schedule. |
| 5026 */ | 5026 */ |
| (...skipping 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7505 */ | 7505 */ |
| 7506 | 7506 |
| 7507 | 7507 |
| 7508 } // namespace v8 | 7508 } // namespace v8 |
| 7509 | 7509 |
| 7510 | 7510 |
| 7511 #undef TYPE_CHECK | 7511 #undef TYPE_CHECK |
| 7512 | 7512 |
| 7513 | 7513 |
| 7514 #endif // V8_H_ | 7514 #endif // V8_H_ |
| OLD | NEW |