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 5343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5354 * - To avoid unnecessary copies of data, V8 will point directly into the | 5354 * - To avoid unnecessary copies of data, V8 will point directly into the |
5355 * given data blob, so pretty please keep it around until V8 exit. | 5355 * given data blob, so pretty please keep it around until V8 exit. |
5356 * - Compression of the startup blob might be useful, but needs to | 5356 * - Compression of the startup blob might be useful, but needs to |
5357 * handled entirely on the embedders' side. | 5357 * handled entirely on the embedders' side. |
5358 * - The call will abort if the data is invalid. | 5358 * - The call will abort if the data is invalid. |
5359 */ | 5359 */ |
5360 static void SetNativesDataBlob(StartupData* startup_blob); | 5360 static void SetNativesDataBlob(StartupData* startup_blob); |
5361 static void SetSnapshotDataBlob(StartupData* startup_blob); | 5361 static void SetSnapshotDataBlob(StartupData* startup_blob); |
5362 | 5362 |
5363 /** | 5363 /** |
| 5364 * Create a new isolate and context for the purpose of capturing a snapshot |
| 5365 * Returns { NULL, 0 } on failure. |
| 5366 * The caller owns the data array in the return value. |
| 5367 */ |
| 5368 static StartupData CreateSnapshotDataBlob(); |
| 5369 |
| 5370 /** |
5364 * Adds a message listener. | 5371 * Adds a message listener. |
5365 * | 5372 * |
5366 * The same message listener can be added more than once and in that | 5373 * The same message listener can be added more than once and in that |
5367 * case it will be called more than once for each message. | 5374 * case it will be called more than once for each message. |
5368 * | 5375 * |
5369 * If data is specified, it will be passed to the callback when it is called. | 5376 * If data is specified, it will be passed to the callback when it is called. |
5370 * Otherwise, the exception object will be passed to the callback instead. | 5377 * Otherwise, the exception object will be passed to the callback instead. |
5371 */ | 5378 */ |
5372 // TODO(dcarney): deprecate this. | 5379 // TODO(dcarney): deprecate this. |
5373 V8_INLINE static bool AddMessageListener( | 5380 V8_INLINE static bool AddMessageListener( |
(...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7498 */ | 7505 */ |
7499 | 7506 |
7500 | 7507 |
7501 } // namespace v8 | 7508 } // namespace v8 |
7502 | 7509 |
7503 | 7510 |
7504 #undef TYPE_CHECK | 7511 #undef TYPE_CHECK |
7505 | 7512 |
7506 | 7513 |
7507 #endif // V8_H_ | 7514 #endif // V8_H_ |
OLD | NEW |