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

Unified Diff: runtime/vm/dart_api_impl.cc

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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 9a4f823b171ea40d4637d9068fbaa340bcc807c3..11883929c759331125c43c515ac967641ba6cbb6 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -6015,6 +6015,7 @@ DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort() {
#endif
}
+
DART_EXPORT Dart_Port Dart_KernelPort() {
hausner 2017/01/24 00:50:55 ditto.
Vyacheslav Egorov (Google) 2017/01/30 19:34:13 Acknowledged.
#ifdef DART_PRECOMPILED_RUNTIME
return false;
@@ -6024,6 +6025,15 @@ DART_EXPORT Dart_Port Dart_KernelPort() {
}
+DART_EXPORT Dart_KernelCompilationResult
+Dart_CompileToKernel(const char* script_uri) {
+#ifdef DART_PRECOMPILED_RUNTIME
+ return false;
kustermann 2017/01/30 12:14:25 The return type is Dart_KernelCompilationResult wh
Vyacheslav Egorov (Google) 2017/01/30 19:34:13 Done.
+#else
+ return KernelIsolate::CompileToKernel(script_uri);
+#endif
+}
+
// --- Service support ---
DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) {

Powered by Google App Engine
This is Rietveld 408576698