| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 pprof_symbol_generator_ = value; | 65 pprof_symbol_generator_ = value; |
| 66 } | 66 } |
| 67 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } | 67 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } |
| 68 | 68 |
| 69 static LocalHandle* AllocateReadOnlyApiHandle(); | 69 static LocalHandle* AllocateReadOnlyApiHandle(); |
| 70 static bool IsReadOnlyApiHandle(Dart_Handle handle); | 70 static bool IsReadOnlyApiHandle(Dart_Handle handle); |
| 71 | 71 |
| 72 static uword AllocateReadOnlyHandle(); | 72 static uword AllocateReadOnlyHandle(); |
| 73 static bool IsReadOnlyHandle(uword address); | 73 static bool IsReadOnlyHandle(uword address); |
| 74 | 74 |
| 75 static const char* FeaturesString(Snapshot::Kind kind); | 75 static const char* FeaturesString(Isolate* isolate, Snapshot::Kind kind); |
| 76 static Snapshot::Kind vm_snapshot_kind() { return vm_snapshot_kind_; } | 76 static Snapshot::Kind vm_snapshot_kind() { return vm_snapshot_kind_; } |
| 77 | 77 |
| 78 static Dart_ThreadExitCallback thread_exit_callback() { | 78 static Dart_ThreadExitCallback thread_exit_callback() { |
| 79 return thread_exit_callback_; | 79 return thread_exit_callback_; |
| 80 } | 80 } |
| 81 static void set_thread_exit_callback(Dart_ThreadExitCallback cback) { | 81 static void set_thread_exit_callback(Dart_ThreadExitCallback cback) { |
| 82 thread_exit_callback_ = cback; | 82 thread_exit_callback_ = cback; |
| 83 } | 83 } |
| 84 static void SetFileCallbacks(Dart_FileOpenCallback file_open, | 84 static void SetFileCallbacks(Dart_FileOpenCallback file_open, |
| 85 Dart_FileReadCallback file_read, | 85 Dart_FileReadCallback file_read, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 static Dart_FileOpenCallback file_open_callback_; | 125 static Dart_FileOpenCallback file_open_callback_; |
| 126 static Dart_FileReadCallback file_read_callback_; | 126 static Dart_FileReadCallback file_read_callback_; |
| 127 static Dart_FileWriteCallback file_write_callback_; | 127 static Dart_FileWriteCallback file_write_callback_; |
| 128 static Dart_FileCloseCallback file_close_callback_; | 128 static Dart_FileCloseCallback file_close_callback_; |
| 129 static Dart_EntropySource entropy_source_callback_; | 129 static Dart_EntropySource entropy_source_callback_; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace dart | 132 } // namespace dart |
| 133 | 133 |
| 134 #endif // RUNTIME_VM_DART_H_ | 134 #endif // RUNTIME_VM_DART_H_ |
| OLD | NEW |