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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } | 49 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } |
50 | 50 |
51 static LocalHandle* AllocateReadOnlyApiHandle(); | 51 static LocalHandle* AllocateReadOnlyApiHandle(); |
52 static bool IsReadOnlyApiHandle(Dart_Handle handle); | 52 static bool IsReadOnlyApiHandle(Dart_Handle handle); |
53 | 53 |
54 static uword AllocateReadOnlyHandle(); | 54 static uword AllocateReadOnlyHandle(); |
55 static bool IsReadOnlyHandle(uword address); | 55 static bool IsReadOnlyHandle(uword address); |
56 | 56 |
57 private: | 57 private: |
| 58 static void WaitForIsolateShutdown(); |
| 59 |
58 static Isolate* vm_isolate_; | 60 static Isolate* vm_isolate_; |
59 static ThreadPool* thread_pool_; | 61 static ThreadPool* thread_pool_; |
60 static DebugInfo* pprof_symbol_generator_; | 62 static DebugInfo* pprof_symbol_generator_; |
61 static ReadOnlyHandles* predefined_handles_; | 63 static ReadOnlyHandles* predefined_handles_; |
62 }; | 64 }; |
63 | 65 |
64 } // namespace dart | 66 } // namespace dart |
65 | 67 |
66 #endif // VM_DART_H_ | 68 #endif // VM_DART_H_ |
OLD | NEW |