Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 2b4b954e9d9035e2ae50df79a23c0e00f7eb4301..f0200a48329bd3eb8db123bd0087cb5767a34bd8 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -6013,23 +6013,27 @@ DART_EXPORT bool Dart_KernelIsolateIsRunning() { |
} |
-DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort() { |
+DART_EXPORT Dart_Port Dart_KernelPort() { |
#ifdef DART_PRECOMPILED_RUNTIME |
- return ILLEGAL_PORT; |
+ return false; |
#else |
- return KernelIsolate::WaitForKernelPort(); |
+ return KernelIsolate::KernelPort(); |
#endif |
} |
-DART_EXPORT Dart_Port Dart_KernelPort() { |
+ |
+DART_EXPORT Dart_KernelCompilationResult |
+Dart_CompileToKernel(const char* script_uri) { |
#ifdef DART_PRECOMPILED_RUNTIME |
- return false; |
+ Dart_KernelCompilationResult result; |
+ result.status = Dart_KernelCompilationStatus_Unknown; |
+ result.error = strdup("Dart_CompileToKernel is unsupported."); |
+ return result; |
#else |
- return KernelIsolate::KernelPort(); |
+ return KernelIsolate::CompileToKernel(script_uri); |
#endif |
} |
- |
// --- Service support --- |
DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) { |