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 RUNTIME_INCLUDE_DART_API_H_ | 7 #ifndef RUNTIME_INCLUDE_DART_API_H_ |
8 #define RUNTIME_INCLUDE_DART_API_H_ | 8 #define RUNTIME_INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 3108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3119 Dart_CompileToKernel(const char* script_uri); | 3119 Dart_CompileToKernel(const char* script_uri); |
3120 | 3120 |
3121 typedef struct { | 3121 typedef struct { |
3122 const char* uri; | 3122 const char* uri; |
3123 const char* source; | 3123 const char* source; |
3124 } Dart_SourceFile; | 3124 } Dart_SourceFile; |
3125 DART_EXPORT Dart_KernelCompilationResult | 3125 DART_EXPORT Dart_KernelCompilationResult |
3126 Dart_CompileSourcesToKernel(const char* script_uri, | 3126 Dart_CompileSourcesToKernel(const char* script_uri, |
3127 int source_files_count, | 3127 int source_files_count, |
3128 Dart_SourceFile source_files[]); | 3128 Dart_SourceFile source_files[]); |
3129 DART_EXPORT Dart_KernelCompilationResult | |
3130 Dart_IncrementallyCompileSourcesToKernel(const char* script_uri, | |
3131 int source_files_count, | |
3132 Dart_SourceFile source_files[]); | |
siva
2017/08/07 23:59:29
Could we potentially merge the two API calls
Dart_
aam
2017/08/08 16:27:33
Done.
| |
3129 | 3133 |
3130 #define DART_KERNEL_ISOLATE_NAME "kernel-service" | 3134 #define DART_KERNEL_ISOLATE_NAME "kernel-service" |
3131 | 3135 |
3132 /* | 3136 /* |
3133 * ======= | 3137 * ======= |
3134 * Service | 3138 * Service |
3135 * ======= | 3139 * ======= |
3136 */ | 3140 */ |
3137 | 3141 |
3138 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service" | 3142 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3336 * compiled with DART_PRECOMPILED_RUNTIME). | 3340 * compiled with DART_PRECOMPILED_RUNTIME). |
3337 */ | 3341 */ |
3338 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3342 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
3339 | 3343 |
3340 /** | 3344 /** |
3341 * Print a native stack trace. Used for crash handling. | 3345 * Print a native stack trace. Used for crash handling. |
3342 */ | 3346 */ |
3343 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); | 3347 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); |
3344 | 3348 |
3345 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3349 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |