| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 static Isolate* vm_isolate() { return vm_isolate_; } | 42 static Isolate* vm_isolate() { return vm_isolate_; } |
| 43 static ThreadPool* thread_pool() { return thread_pool_; } | 43 static ThreadPool* thread_pool() { return thread_pool_; } |
| 44 | 44 |
| 45 static void set_pprof_symbol_generator(DebugInfo* value) { | 45 static void set_pprof_symbol_generator(DebugInfo* value) { |
| 46 pprof_symbol_generator_ = value; | 46 pprof_symbol_generator_ = value; |
| 47 } | 47 } |
| 48 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } | 48 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } |
| 49 | 49 |
| 50 static LocalHandle* AllocateReadOnlyApiHandle(); | 50 static LocalHandle* AllocateReadOnlyApiHandle(); |
| 51 static bool IsReadOnlyApiHandle(Dart_Handle handle); |
| 51 | 52 |
| 52 static uword AllocateReadOnlyHandle(); | 53 static uword AllocateReadOnlyHandle(); |
| 53 static bool IsReadOnlyHandle(uword address); | 54 static bool IsReadOnlyHandle(uword address); |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 static Isolate* vm_isolate_; | 57 static Isolate* vm_isolate_; |
| 57 static ThreadPool* thread_pool_; | 58 static ThreadPool* thread_pool_; |
| 58 static DebugInfo* pprof_symbol_generator_; | 59 static DebugInfo* pprof_symbol_generator_; |
| 59 static ReadOnlyHandles* predefined_handles_; | 60 static ReadOnlyHandles* predefined_handles_; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace dart | 63 } // namespace dart |
| 63 | 64 |
| 64 #endif // VM_DART_H_ | 65 #endif // VM_DART_H_ |
| OLD | NEW |