| 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 5472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5483 */ | 5483 */ |
| 5484 void Exit(); | 5484 void Exit(); |
| 5485 | 5485 |
| 5486 /** | 5486 /** |
| 5487 * Disposes the isolate. The isolate must not be entered by any | 5487 * Disposes the isolate. The isolate must not be entered by any |
| 5488 * thread to be disposable. | 5488 * thread to be disposable. |
| 5489 */ | 5489 */ |
| 5490 void Dispose(); | 5490 void Dispose(); |
| 5491 | 5491 |
| 5492 /** | 5492 /** |
| 5493 * Discards all V8 thread-specific data for the Isolate. Should be used |
| 5494 * if a thread is terminating and it has used an Isolate that will outlive |
| 5495 * the thread -- all thread-specific data for an Isolate is discarded when |
| 5496 * an Isolate is disposed so this call is pointless if an Isolate is about |
| 5497 * to be Disposed. |
| 5498 */ |
| 5499 void DiscardThreadSpecificMetadata(); |
| 5500 |
| 5501 /** |
| 5493 * Associate embedder-specific data with the isolate. |slot| has to be | 5502 * Associate embedder-specific data with the isolate. |slot| has to be |
| 5494 * between 0 and GetNumberOfDataSlots() - 1. | 5503 * between 0 and GetNumberOfDataSlots() - 1. |
| 5495 */ | 5504 */ |
| 5496 V8_INLINE void SetData(uint32_t slot, void* data); | 5505 V8_INLINE void SetData(uint32_t slot, void* data); |
| 5497 | 5506 |
| 5498 /** | 5507 /** |
| 5499 * Retrieve embedder-specific data from the isolate. | 5508 * Retrieve embedder-specific data from the isolate. |
| 5500 * Returns NULL if SetData has never been called for the given |slot|. | 5509 * Returns NULL if SetData has never been called for the given |slot|. |
| 5501 */ | 5510 */ |
| 5502 V8_INLINE void* GetData(uint32_t slot); | 5511 V8_INLINE void* GetData(uint32_t slot); |
| (...skipping 2971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8474 */ | 8483 */ |
| 8475 | 8484 |
| 8476 | 8485 |
| 8477 } // namespace v8 | 8486 } // namespace v8 |
| 8478 | 8487 |
| 8479 | 8488 |
| 8480 #undef TYPE_CHECK | 8489 #undef TYPE_CHECK |
| 8481 | 8490 |
| 8482 | 8491 |
| 8483 #endif // INCLUDE_V8_H_ | 8492 #endif // INCLUDE_V8_H_ |
| OLD | NEW |