OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_DART_H_ | 5 #ifndef RUNTIME_VM_DART_H_ |
6 #define RUNTIME_VM_DART_H_ | 6 #define RUNTIME_VM_DART_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/snapshot.h" | 10 #include "vm/snapshot.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace kernel { | 21 namespace kernel { |
22 class Program; | 22 class Program; |
23 } | 23 } |
24 | 24 |
25 class Dart : public AllStatic { | 25 class Dart : public AllStatic { |
26 public: | 26 public: |
27 static char* InitOnce(const uint8_t* vm_snapshot_data, | 27 static char* InitOnce(const uint8_t* vm_snapshot_data, |
28 const uint8_t* vm_snapshot_instructions, | 28 const uint8_t* vm_snapshot_instructions, |
29 Dart_IsolateCreateCallback create, | 29 Dart_IsolateCreateCallback create, |
30 Dart_IsolateShutdownCallback shutdown, | 30 Dart_IsolateShutdownCallback shutdown, |
| 31 Dart_IsolateCleanupCallback cleanup, |
31 Dart_ThreadExitCallback thread_exit, | 32 Dart_ThreadExitCallback thread_exit, |
32 Dart_FileOpenCallback file_open, | 33 Dart_FileOpenCallback file_open, |
33 Dart_FileReadCallback file_read, | 34 Dart_FileReadCallback file_read, |
34 Dart_FileWriteCallback file_write, | 35 Dart_FileWriteCallback file_write, |
35 Dart_FileCloseCallback file_close, | 36 Dart_FileCloseCallback file_close, |
36 Dart_EntropySource entropy_source, | 37 Dart_EntropySource entropy_source, |
37 Dart_GetVMServiceAssetsArchive get_service_assets); | 38 Dart_GetVMServiceAssetsArchive get_service_assets); |
38 static const char* Cleanup(); | 39 static const char* Cleanup(); |
39 | 40 |
40 static Isolate* CreateIsolate(const char* name_prefix, | 41 static Isolate* CreateIsolate(const char* name_prefix, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 static Dart_FileOpenCallback file_open_callback_; | 126 static Dart_FileOpenCallback file_open_callback_; |
126 static Dart_FileReadCallback file_read_callback_; | 127 static Dart_FileReadCallback file_read_callback_; |
127 static Dart_FileWriteCallback file_write_callback_; | 128 static Dart_FileWriteCallback file_write_callback_; |
128 static Dart_FileCloseCallback file_close_callback_; | 129 static Dart_FileCloseCallback file_close_callback_; |
129 static Dart_EntropySource entropy_source_callback_; | 130 static Dart_EntropySource entropy_source_callback_; |
130 }; | 131 }; |
131 | 132 |
132 } // namespace dart | 133 } // namespace dart |
133 | 134 |
134 #endif // RUNTIME_VM_DART_H_ | 135 #endif // RUNTIME_VM_DART_H_ |
OLD | NEW |