| 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 5326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5337 * - The call will abort if the data is invalid. | 5337 * - The call will abort if the data is invalid. |
| 5338 */ | 5338 */ |
| 5339 static void SetNativesDataBlob(StartupData* startup_blob); | 5339 static void SetNativesDataBlob(StartupData* startup_blob); |
| 5340 static void SetSnapshotDataBlob(StartupData* startup_blob); | 5340 static void SetSnapshotDataBlob(StartupData* startup_blob); |
| 5341 | 5341 |
| 5342 /** | 5342 /** |
| 5343 * Create a new isolate and context for the purpose of capturing a snapshot | 5343 * Create a new isolate and context for the purpose of capturing a snapshot |
| 5344 * Returns { NULL, 0 } on failure. | 5344 * Returns { NULL, 0 } on failure. |
| 5345 * The caller owns the data array in the return value. | 5345 * The caller owns the data array in the return value. |
| 5346 */ | 5346 */ |
| 5347 static StartupData CreateSnapshotDataBlob(); | 5347 static StartupData CreateSnapshotDataBlob(char* custom_source = NULL); |
| 5348 | 5348 |
| 5349 /** | 5349 /** |
| 5350 * Adds a message listener. | 5350 * Adds a message listener. |
| 5351 * | 5351 * |
| 5352 * The same message listener can be added more than once and in that | 5352 * The same message listener can be added more than once and in that |
| 5353 * case it will be called more than once for each message. | 5353 * case it will be called more than once for each message. |
| 5354 * | 5354 * |
| 5355 * If data is specified, it will be passed to the callback when it is called. | 5355 * If data is specified, it will be passed to the callback when it is called. |
| 5356 * Otherwise, the exception object will be passed to the callback instead. | 5356 * Otherwise, the exception object will be passed to the callback instead. |
| 5357 */ | 5357 */ |
| (...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7494 */ | 7494 */ |
| 7495 | 7495 |
| 7496 | 7496 |
| 7497 } // namespace v8 | 7497 } // namespace v8 |
| 7498 | 7498 |
| 7499 | 7499 |
| 7500 #undef TYPE_CHECK | 7500 #undef TYPE_CHECK |
| 7501 | 7501 |
| 7502 | 7502 |
| 7503 #endif // V8_H_ | 7503 #endif // V8_H_ |
| OLD | NEW |