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 6451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6462 int raw_size; | 6462 int raw_size; |
6463 }; | 6463 }; |
6464 | 6464 |
6465 | 6465 |
6466 /** | 6466 /** |
6467 * EntropySource is used as a callback function when v8 needs a source | 6467 * EntropySource is used as a callback function when v8 needs a source |
6468 * of entropy. | 6468 * of entropy. |
6469 */ | 6469 */ |
6470 typedef bool (*EntropySource)(unsigned char* buffer, size_t length); | 6470 typedef bool (*EntropySource)(unsigned char* buffer, size_t length); |
6471 | 6471 |
6472 | |
6473 /** | 6472 /** |
6474 * ReturnAddressLocationResolver is used as a callback function when v8 is | 6473 * ReturnAddressLocationResolver is used as a callback function when v8 is |
6475 * resolving the location of a return address on the stack. Profilers that | 6474 * resolving the location of a return address on the stack. Profilers that |
6476 * change the return address on the stack can use this to resolve the stack | 6475 * change the return address on the stack can use this to resolve the stack |
6477 * location to whereever the profiler stashed the original return address. | 6476 * location to whereever the profiler stashed the original return address. |
6478 * | 6477 * |
6479 * \param return_addr_location points to a location on stack where a machine | 6478 * \param return_addr_location A location on stack where a machine |
6480 * return address resides. | 6479 * return address resides. |
6481 * \returns either return_addr_location, or else a pointer to the profiler's | 6480 * \returns Either return_addr_location, or else a pointer to the profiler's |
6482 * copy of the original return address. | 6481 * copy of the original return address. |
6483 * | 6482 * |
6484 * \note the resolver function must not cause garbage collection. | 6483 * \note The resolver function must not cause garbage collection. |
6485 */ | 6484 */ |
6486 typedef uintptr_t (*ReturnAddressLocationResolver)( | 6485 typedef uintptr_t (*ReturnAddressLocationResolver)( |
6487 uintptr_t return_addr_location); | 6486 uintptr_t return_addr_location); |
6488 | 6487 |
6489 | 6488 |
6490 /** | 6489 /** |
6491 * Container class for static utility functions. | 6490 * Container class for static utility functions. |
6492 */ | 6491 */ |
6493 class V8_EXPORT V8 { | 6492 class V8_EXPORT V8 { |
6494 public: | 6493 public: |
(...skipping 2491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8986 */ | 8985 */ |
8987 | 8986 |
8988 | 8987 |
8989 } // namespace v8 | 8988 } // namespace v8 |
8990 | 8989 |
8991 | 8990 |
8992 #undef TYPE_CHECK | 8991 #undef TYPE_CHECK |
8993 | 8992 |
8994 | 8993 |
8995 #endif // INCLUDE_V8_H_ | 8994 #endif // INCLUDE_V8_H_ |
OLD | NEW |