| 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 3137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3148 uint8_t* kernel; | 3148 uint8_t* kernel; |
| 3149 intptr_t kernel_size; | 3149 intptr_t kernel_size; |
| 3150 } Dart_KernelCompilationResult; | 3150 } Dart_KernelCompilationResult; |
| 3151 | 3151 |
| 3152 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); | 3152 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); |
| 3153 DART_EXPORT bool Dart_KernelIsolateIsRunning(); | 3153 DART_EXPORT bool Dart_KernelIsolateIsRunning(); |
| 3154 DART_EXPORT Dart_Port Dart_KernelPort(); | 3154 DART_EXPORT Dart_Port Dart_KernelPort(); |
| 3155 DART_EXPORT Dart_KernelCompilationResult | 3155 DART_EXPORT Dart_KernelCompilationResult |
| 3156 Dart_CompileToKernel(const char* script_uri); | 3156 Dart_CompileToKernel(const char* script_uri); |
| 3157 | 3157 |
| 3158 typedef struct { | |
| 3159 const char* uri; | |
| 3160 const char* source; | |
| 3161 } Dart_SourceFile; | |
| 3162 DART_EXPORT Dart_KernelCompilationResult | |
| 3163 Dart_CompileSourcesToKernel(const char* script_uri, | |
| 3164 int source_files_count, | |
| 3165 Dart_SourceFile source_files[]); | |
| 3166 | |
| 3167 #define DART_KERNEL_ISOLATE_NAME "kernel-service" | 3158 #define DART_KERNEL_ISOLATE_NAME "kernel-service" |
| 3168 | 3159 |
| 3169 /* | 3160 /* |
| 3170 * ======= | 3161 * ======= |
| 3171 * Service | 3162 * Service |
| 3172 * ======= | 3163 * ======= |
| 3173 */ | 3164 */ |
| 3174 | 3165 |
| 3175 | 3166 |
| 3176 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service" | 3167 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3338 */ | 3329 */ |
| 3339 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3330 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
| 3340 | 3331 |
| 3341 | 3332 |
| 3342 /** | 3333 /** |
| 3343 * Print a native stack trace. Used for crash handling. | 3334 * Print a native stack trace. Used for crash handling. |
| 3344 */ | 3335 */ |
| 3345 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); | 3336 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); |
| 3346 | 3337 |
| 3347 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3338 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |