Chromium Code Reviews| 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) { |