Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: runtime/include/dart_api.h

Issue 3001013002: Pass path to platform kernel binary to kernel-service. (Closed)
Patch Set: Add TODO to switch to outline.dill Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after
3123 char* error; 3123 char* error;
3124 3124
3125 uint8_t* kernel; 3125 uint8_t* kernel;
3126 intptr_t kernel_size; 3126 intptr_t kernel_size;
3127 } Dart_KernelCompilationResult; 3127 } Dart_KernelCompilationResult;
3128 3128
3129 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); 3129 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate);
3130 DART_EXPORT bool Dart_KernelIsolateIsRunning(); 3130 DART_EXPORT bool Dart_KernelIsolateIsRunning();
3131 DART_EXPORT Dart_Port Dart_KernelPort(); 3131 DART_EXPORT Dart_Port Dart_KernelPort();
3132 DART_EXPORT Dart_KernelCompilationResult 3132 DART_EXPORT Dart_KernelCompilationResult
3133 Dart_CompileToKernel(const char* script_uri); 3133 Dart_CompileToKernel(const char* script_uri, const char* platform_kernel);
3134 3134
3135 typedef struct { 3135 typedef struct {
3136 const char* uri; 3136 const char* uri;
3137 const char* source; 3137 const char* source;
3138 } Dart_SourceFile; 3138 } Dart_SourceFile;
3139 DART_EXPORT Dart_KernelCompilationResult 3139 DART_EXPORT Dart_KernelCompilationResult
3140 Dart_CompileSourcesToKernel(const char* script_uri, 3140 Dart_CompileSourcesToKernel(const char* script_uri,
3141 const char* platform_kernel,
3141 int source_files_count, 3142 int source_files_count,
3142 Dart_SourceFile source_files[], 3143 Dart_SourceFile source_files[],
3143 bool incremental_compile); 3144 bool incremental_compile);
3144 3145
3145 #define DART_KERNEL_ISOLATE_NAME "kernel-service" 3146 #define DART_KERNEL_ISOLATE_NAME "kernel-service"
3146 3147
3147 /* 3148 /*
3148 * ======= 3149 * =======
3149 * Service 3150 * Service
3150 * ======= 3151 * =======
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
3351 * compiled with DART_PRECOMPILED_RUNTIME). 3352 * compiled with DART_PRECOMPILED_RUNTIME).
3352 */ 3353 */
3353 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3354 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3354 3355
3355 /** 3356 /**
3356 * Print a native stack trace. Used for crash handling. 3357 * Print a native stack trace. Used for crash handling.
3357 */ 3358 */
3358 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3359 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3359 3360
3360 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3361 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698