OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 | 845 |
846 typedef void (*Dart_FileCloseCallback)(void* stream); | 846 typedef void (*Dart_FileCloseCallback)(void* stream); |
847 | 847 |
848 typedef bool (*Dart_EntropySource)(uint8_t* buffer, intptr_t length); | 848 typedef bool (*Dart_EntropySource)(uint8_t* buffer, intptr_t length); |
849 | 849 |
850 /** | 850 /** |
851 * Initializes the VM. | 851 * Initializes the VM. |
852 * | 852 * |
853 * \param vm_isolate_snapshot A buffer containing a snapshot of the VM isolate | 853 * \param vm_isolate_snapshot A buffer containing a snapshot of the VM isolate |
854 * or NULL if no snapshot is provided. | 854 * or NULL if no snapshot is provided. |
| 855 * \param instructions_snapshot A buffer containing a snapshot of precompiled |
| 856 * instructions, or NULL if no snapshot is provided. |
855 * \param create A function to be called during isolate creation. | 857 * \param create A function to be called during isolate creation. |
856 * See Dart_IsolateCreateCallback. | 858 * See Dart_IsolateCreateCallback. |
857 * \param interrupt A function to be called when an isolate is interrupted. | 859 * \param interrupt A function to be called when an isolate is interrupted. |
858 * See Dart_IsolateInterruptCallback. | 860 * See Dart_IsolateInterruptCallback. |
859 * \param unhandled_exception A function to be called if an isolate has an | 861 * \param unhandled_exception A function to be called if an isolate has an |
860 * unhandled exception. Set Dart_IsolateUnhandledExceptionCallback. | 862 * unhandled exception. Set Dart_IsolateUnhandledExceptionCallback. |
861 * \param shutdown A function to be called when an isolate is shutdown. | 863 * \param shutdown A function to be called when an isolate is shutdown. |
862 * See Dart_IsolateShutdownCallback. | 864 * See Dart_IsolateShutdownCallback. |
863 * | 865 * |
864 * \return True if initialization is successful. | 866 * \return True if initialization is successful. |
(...skipping 1988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2853 | 2855 |
2854 /** | 2856 /** |
2855 * Returns the port that script load requests should be sent on. | 2857 * Returns the port that script load requests should be sent on. |
2856 * | 2858 * |
2857 * \return Returns the port for load requests or ILLEGAL_PORT if the service | 2859 * \return Returns the port for load requests or ILLEGAL_PORT if the service |
2858 * isolate failed to startup or does not support load requests. | 2860 * isolate failed to startup or does not support load requests. |
2859 */ | 2861 */ |
2860 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort(); | 2862 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort(); |
2861 | 2863 |
2862 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2864 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |