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

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

Issue 2651633002: VM: [Kernel] Fix bootstraping when Kernel isolate is used. (Closed)
Patch Set: Created 3 years, 11 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 3105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3116 */ 3116 */
3117 3117
3118 3118
3119 /** 3119 /**
3120 * Experimental support for Dart to Kernel parser isolate. 3120 * Experimental support for Dart to Kernel parser isolate.
3121 * 3121 *
3122 * TODO(hausner): Document finalized interface. 3122 * TODO(hausner): Document finalized interface.
3123 * 3123 *
3124 */ 3124 */
3125 3125
3126 typedef enum {
3127 Dart_KernelCompilationStatus_Unknown = -1,
3128 Dart_KernelCompilationStatus_Ok = 0,
3129 Dart_KernelCompilationStatus_Error = 1,
3130 Dart_KernelCompilationStatus_Crash = 2,
3131 } Dart_KernelCompilationStatus;
3132
3133 typedef struct {
3134 Dart_KernelCompilationStatus status;
3135 char* error;
3136
3137 uint8_t* kernel;
3138 intptr_t kernel_size;
3139 } Dart_KernelCompilationResult;
3140
3126 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); 3141 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate);
3127 DART_EXPORT bool Dart_KernelIsolateIsRunning(); 3142 DART_EXPORT bool Dart_KernelIsolateIsRunning();
3128 DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort(); 3143 DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort();
3129 DART_EXPORT Dart_Port Dart_KernelPort(); 3144 DART_EXPORT Dart_Port Dart_KernelPort();
3145 DART_EXPORT Dart_KernelCompilationResult
3146 Dart_CompileToKernel(const char* script_uri);
3130 3147
3131 #define DART_KERNEL_ISOLATE_NAME "kernel-service" 3148 #define DART_KERNEL_ISOLATE_NAME "kernel-service"
3132 3149
3133 /* 3150 /*
3134 * ======= 3151 * =======
3135 * Service 3152 * Service
3136 * ======= 3153 * =======
3137 */ 3154 */
3138 3155
3139 3156
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 */ 3310 */
3294 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3311 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3295 3312
3296 3313
3297 /** 3314 /**
3298 * Print a native stack trace. Used for crash handling. 3315 * Print a native stack trace. Used for crash handling.
3299 */ 3316 */
3300 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3317 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3301 3318
3302 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3319 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698