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 14 matching lines...) Expand all Loading... |
25 Dart_IsolateInterruptCallback interrupt, | 25 Dart_IsolateInterruptCallback interrupt, |
26 Dart_IsolateUnhandledExceptionCallback unhandled, | 26 Dart_IsolateUnhandledExceptionCallback unhandled, |
27 Dart_IsolateShutdownCallback shutdown, | 27 Dart_IsolateShutdownCallback shutdown, |
28 Dart_FileOpenCallback file_open, | 28 Dart_FileOpenCallback file_open, |
29 Dart_FileReadCallback file_read, | 29 Dart_FileReadCallback file_read, |
30 Dart_FileWriteCallback file_write, | 30 Dart_FileWriteCallback file_write, |
31 Dart_FileCloseCallback file_close, | 31 Dart_FileCloseCallback file_close, |
32 Dart_EntropySource entropy_source); | 32 Dart_EntropySource entropy_source); |
33 static const char* Cleanup(); | 33 static const char* Cleanup(); |
34 | 34 |
35 static Isolate* CreateIsolate(const char* name_prefix); | 35 static Isolate* CreateIsolate(const char* name_prefix, |
| 36 const Dart_IsolateFlags& api_flags); |
36 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); | 37 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); |
37 static void RunShutdownCallback(); | 38 static void RunShutdownCallback(); |
38 static void ShutdownIsolate(); | 39 static void ShutdownIsolate(); |
39 | 40 |
40 static Isolate* vm_isolate() { return vm_isolate_; } | 41 static Isolate* vm_isolate() { return vm_isolate_; } |
41 static ThreadPool* thread_pool() { return thread_pool_; } | 42 static ThreadPool* thread_pool() { return thread_pool_; } |
42 | 43 |
43 static void set_pprof_symbol_generator(DebugInfo* value) { | 44 static void set_pprof_symbol_generator(DebugInfo* value) { |
44 pprof_symbol_generator_ = value; | 45 pprof_symbol_generator_ = value; |
45 } | 46 } |
46 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } | 47 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } |
47 | 48 |
48 static uword AllocateReadOnlyHandle(); | 49 static uword AllocateReadOnlyHandle(); |
49 static bool IsReadOnlyHandle(uword address); | 50 static bool IsReadOnlyHandle(uword address); |
50 | 51 |
51 private: | 52 private: |
52 static Isolate* vm_isolate_; | 53 static Isolate* vm_isolate_; |
53 static ThreadPool* thread_pool_; | 54 static ThreadPool* thread_pool_; |
54 static DebugInfo* pprof_symbol_generator_; | 55 static DebugInfo* pprof_symbol_generator_; |
55 static ReadOnlyHandles* predefined_handles_; | 56 static ReadOnlyHandles* predefined_handles_; |
56 }; | 57 }; |
57 | 58 |
58 } // namespace dart | 59 } // namespace dart |
59 | 60 |
60 #endif // VM_DART_H_ | 61 #endif // VM_DART_H_ |
OLD | NEW |