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

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

Issue 2651633002: VM: [Kernel] Fix bootstraping when Kernel isolate is used. (Closed)
Patch Set: Landing issue Created 3 years, 10 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
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_native_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 */ 3120 */
3121 3121
3122 3122
3123 /** 3123 /**
3124 * Experimental support for Dart to Kernel parser isolate. 3124 * Experimental support for Dart to Kernel parser isolate.
3125 * 3125 *
3126 * TODO(hausner): Document finalized interface. 3126 * TODO(hausner): Document finalized interface.
3127 * 3127 *
3128 */ 3128 */
3129 3129
3130 typedef enum {
3131 Dart_KernelCompilationStatus_Unknown = -1,
3132 Dart_KernelCompilationStatus_Ok = 0,
3133 Dart_KernelCompilationStatus_Error = 1,
3134 Dart_KernelCompilationStatus_Crash = 2,
3135 } Dart_KernelCompilationStatus;
3136
3137 typedef struct {
3138 Dart_KernelCompilationStatus status;
3139 char* error;
3140
3141 uint8_t* kernel;
3142 intptr_t kernel_size;
3143 } Dart_KernelCompilationResult;
3144
3130 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); 3145 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate);
3131 DART_EXPORT bool Dart_KernelIsolateIsRunning(); 3146 DART_EXPORT bool Dart_KernelIsolateIsRunning();
3132 DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort();
3133 DART_EXPORT Dart_Port Dart_KernelPort(); 3147 DART_EXPORT Dart_Port Dart_KernelPort();
3148 DART_EXPORT Dart_KernelCompilationResult
3149 Dart_CompileToKernel(const char* script_uri);
3134 3150
3135 #define DART_KERNEL_ISOLATE_NAME "kernel-service" 3151 #define DART_KERNEL_ISOLATE_NAME "kernel-service"
3136 3152
3137 /* 3153 /*
3138 * ======= 3154 * =======
3139 * Service 3155 * Service
3140 * ======= 3156 * =======
3141 */ 3157 */
3142 3158
3143 3159
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
3298 */ 3314 */
3299 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3315 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3300 3316
3301 3317
3302 /** 3318 /**
3303 * Print a native stack trace. Used for crash handling. 3319 * Print a native stack trace. Used for crash handling.
3304 */ 3320 */
3305 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3321 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3306 3322
3307 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3323 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_native_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698