| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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_BIN_DFE_H_ | 5 #ifndef RUNTIME_BIN_DFE_H_ |
| 6 #define RUNTIME_BIN_DFE_H_ | 6 #define RUNTIME_BIN_DFE_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
| 10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 } | 27 } |
| 28 | 28 |
| 29 void SetKernelBinaries(const char* name); | 29 void SetKernelBinaries(const char* name); |
| 30 | 30 |
| 31 bool UsePlatformBinary() const { return platform_binary_filename_ != NULL; } | 31 bool UsePlatformBinary() const { return platform_binary_filename_ != NULL; } |
| 32 | 32 |
| 33 void* kernel_platform() const { return kernel_platform_; } | 33 void* kernel_platform() const { return kernel_platform_; } |
| 34 | 34 |
| 35 void* kernel_vmservice_io() const { return kernel_vmservice_io_; } | 35 void* kernel_vmservice_io() const { return kernel_vmservice_io_; } |
| 36 | 36 |
| 37 void unset_kernel_vmservice_io(); |
| 38 |
| 37 bool kernel_file_specified() const { return kernel_file_specified_; } | 39 bool kernel_file_specified() const { return kernel_file_specified_; } |
| 38 void set_kernel_file_specified(bool value) { kernel_file_specified_ = value; } | 40 void set_kernel_file_specified(bool value) { kernel_file_specified_ = value; } |
| 39 | 41 |
| 40 // Method to reload a script into a running a isolate. | 42 // Method to reload a script into a running a isolate. |
| 41 // If the specified script [url] is not a kernel IR, compile it first using | 43 // If the specified script [url] is not a kernel IR, compile it first using |
| 42 // DFE and then reload the resulting kernel IR into the isolate. | 44 // DFE and then reload the resulting kernel IR into the isolate. |
| 43 // Returns Dart_Null if successful, otherwise an error object is returned. | 45 // Returns Dart_Null if successful, otherwise an error object is returned. |
| 44 Dart_Handle ReloadScript(Dart_Isolate isolate, const char* url_string); | 46 Dart_Handle ReloadScript(Dart_Isolate isolate, const char* url_string); |
| 45 | 47 |
| 46 // Compiles a script and reads the resulting kernel file. | 48 // Compiles a script and reads the resulting kernel file. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void* kernel_vmservice_io_; | 83 void* kernel_vmservice_io_; |
| 82 bool kernel_file_specified_; // Kernel file was specified on the cmd line. | 84 bool kernel_file_specified_; // Kernel file was specified on the cmd line. |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(DFE); | 86 DISALLOW_COPY_AND_ASSIGN(DFE); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace bin | 89 } // namespace bin |
| 88 } // namespace dart | 90 } // namespace dart |
| 89 | 91 |
| 90 #endif // RUNTIME_BIN_DFE_H_ | 92 #endif // RUNTIME_BIN_DFE_H_ |
| OLD | NEW |