| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RUNTIME_VM_KERNEL_ISOLATE_H_ | 5 #ifndef RUNTIME_VM_KERNEL_ISOLATE_H_ |
| 6 #define RUNTIME_VM_KERNEL_ISOLATE_H_ | 6 #define RUNTIME_VM_KERNEL_ISOLATE_H_ |
| 7 | 7 |
| 8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 9 | 9 |
| 10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 static void Run(); | 22 static void Run(); |
| 23 | 23 |
| 24 static bool Exists(); | 24 static bool Exists(); |
| 25 static bool IsRunning(); | 25 static bool IsRunning(); |
| 26 static bool IsKernelIsolate(const Isolate* isolate); | 26 static bool IsKernelIsolate(const Isolate* isolate); |
| 27 static Dart_Port WaitForKernelPort(); | 27 static Dart_Port WaitForKernelPort(); |
| 28 static Dart_Port KernelPort() { return kernel_port_; } | 28 static Dart_Port KernelPort() { return kernel_port_; } |
| 29 | 29 |
| 30 static Dart_KernelCompilationResult CompileToKernel( | 30 static Dart_KernelCompilationResult CompileToKernel( |
| 31 const char* script_uri, | 31 const char* script_uri, |
| 32 const char* platform_kernel = NULL, |
| 32 int source_files_count = 0, | 33 int source_files_count = 0, |
| 33 Dart_SourceFile source_files[] = NULL, | 34 Dart_SourceFile source_files[] = NULL, |
| 34 bool incremental_compile = false); | 35 bool incremental_compile = false); |
| 35 | 36 |
| 36 protected: | 37 protected: |
| 37 static Monitor* monitor_; | 38 static Monitor* monitor_; |
| 38 static Dart_IsolateCreateCallback create_callback_; | 39 static Dart_IsolateCreateCallback create_callback_; |
| 39 | 40 |
| 40 static void InitCallback(Isolate* I); | 41 static void InitCallback(Isolate* I); |
| 41 static void SetKernelIsolate(Isolate* isolate); | 42 static void SetKernelIsolate(Isolate* isolate); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 52 | 53 |
| 53 friend class Dart; | 54 friend class Dart; |
| 54 friend class RunKernelTask; | 55 friend class RunKernelTask; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace dart | 58 } // namespace dart |
| 58 | 59 |
| 59 #endif // DART_PRECOMPILED_RUNTIME | 60 #endif // DART_PRECOMPILED_RUNTIME |
| 60 | 61 |
| 61 #endif // RUNTIME_VM_KERNEL_ISOLATE_H_ | 62 #endif // RUNTIME_VM_KERNEL_ISOLATE_H_ |
| OLD | NEW |