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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 2651633002: VM: [Kernel] Fix bootstraping when Kernel isolate is used. (Closed)
Patch Set: Landing issue 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tools/kernel-service.dart ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « runtime/tools/kernel-service.dart ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698