| 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_OS_H_ | 5 #ifndef VM_OS_H_ |
| 6 #define VM_OS_H_ | 6 #define VM_OS_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 | 9 |
| 10 // Forward declarations. | 10 // Forward declarations. |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // value. | 111 // value. |
| 112 // Returns false if it is unable to convert the string to a 64 bit value, | 112 // Returns false if it is unable to convert the string to a 64 bit value, |
| 113 // the failure could be because of underflow/overflow or invalid characters. | 113 // the failure could be because of underflow/overflow or invalid characters. |
| 114 // On success the function returns true and 'value' contains the converted | 114 // On success the function returns true and 'value' contains the converted |
| 115 // value. | 115 // value. |
| 116 static bool StringToInt64(const char* str, int64_t* value); | 116 static bool StringToInt64(const char* str, int64_t* value); |
| 117 | 117 |
| 118 // Register code observers relevant to this OS. | 118 // Register code observers relevant to this OS. |
| 119 static void RegisterCodeObservers(); | 119 static void RegisterCodeObservers(); |
| 120 | 120 |
| 121 // Returns the name (runtime symbol) of the function at the given address. |
| 122 static const char* ReverseLookupSymbol(uword address); |
| 123 |
| 121 // Initialize the OS class. | 124 // Initialize the OS class. |
| 122 static void InitOnce(); | 125 static void InitOnce(); |
| 123 | 126 |
| 124 // Shut down the OS class. | 127 // Shut down the OS class. |
| 125 static void Shutdown(); | 128 static void Shutdown(); |
| 126 | 129 |
| 127 static void Abort(); | 130 static void Abort(); |
| 128 | 131 |
| 129 static void Exit(int code); | 132 static void Exit(int code); |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 } // namespace dart | 135 } // namespace dart |
| 133 | 136 |
| 134 #endif // VM_OS_H_ | 137 #endif // VM_OS_H_ |
| OLD | NEW |