| 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 VM_DART_H_ | 5 #ifndef VM_DART_H_ |
| 6 #define VM_DART_H_ | 6 #define 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 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 const uint8_t* vm_isolate_snapshot, | 24 const uint8_t* vm_isolate_snapshot, |
| 25 const uint8_t* instructions_snapshot, | 25 const uint8_t* instructions_snapshot, |
| 26 Dart_IsolateCreateCallback create, | 26 Dart_IsolateCreateCallback create, |
| 27 Dart_IsolateInterruptCallback interrupt, | 27 Dart_IsolateInterruptCallback interrupt, |
| 28 Dart_IsolateUnhandledExceptionCallback unhandled, | 28 Dart_IsolateUnhandledExceptionCallback unhandled, |
| 29 Dart_IsolateShutdownCallback shutdown, | 29 Dart_IsolateShutdownCallback shutdown, |
| 30 Dart_FileOpenCallback file_open, | 30 Dart_FileOpenCallback file_open, |
| 31 Dart_FileReadCallback file_read, | 31 Dart_FileReadCallback file_read, |
| 32 Dart_FileWriteCallback file_write, | 32 Dart_FileWriteCallback file_write, |
| 33 Dart_FileCloseCallback file_close, | 33 Dart_FileCloseCallback file_close, |
| 34 Dart_EntropySource entropy_source); | 34 Dart_EntropySource entropy_source, |
| 35 Dart_GetVMServiceAssetsArchive get_service_assets); |
| 35 static const char* Cleanup(); | 36 static const char* Cleanup(); |
| 36 | 37 |
| 37 static Isolate* CreateIsolate(const char* name_prefix, | 38 static Isolate* CreateIsolate(const char* name_prefix, |
| 38 const Dart_IsolateFlags& api_flags); | 39 const Dart_IsolateFlags& api_flags); |
| 39 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); | 40 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); |
| 40 static void RunShutdownCallback(); | 41 static void RunShutdownCallback(); |
| 41 static void ShutdownIsolate(); | 42 static void ShutdownIsolate(); |
| 42 | 43 |
| 43 static Isolate* vm_isolate() { return vm_isolate_; } | 44 static Isolate* vm_isolate() { return vm_isolate_; } |
| 44 static ThreadPool* thread_pool() { return thread_pool_; } | 45 static ThreadPool* thread_pool() { return thread_pool_; } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 70 static Isolate* vm_isolate_; | 71 static Isolate* vm_isolate_; |
| 71 static ThreadPool* thread_pool_; | 72 static ThreadPool* thread_pool_; |
| 72 static DebugInfo* pprof_symbol_generator_; | 73 static DebugInfo* pprof_symbol_generator_; |
| 73 static ReadOnlyHandles* predefined_handles_; | 74 static ReadOnlyHandles* predefined_handles_; |
| 74 static const uint8_t* instructions_snapshot_buffer_; | 75 static const uint8_t* instructions_snapshot_buffer_; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace dart | 78 } // namespace dart |
| 78 | 79 |
| 79 #endif // VM_DART_H_ | 80 #endif // VM_DART_H_ |
| OLD | NEW |