| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ATOMIC_H_ | 5 #ifndef RUNTIME_VM_ATOMIC_H_ |
| 6 #define RUNTIME_VM_ATOMIC_H_ | 6 #define RUNTIME_VM_ATOMIC_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #if defined(USING_SIMULATOR) && !defined(TARGET_ARCH_DBC) | 66 #if defined(USING_SIMULATOR) && !defined(TARGET_ARCH_DBC) |
| 67 #define USING_SIMULATOR_ATOMICS | 67 #define USING_SIMULATOR_ATOMICS |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 #if defined(USING_SIMULATOR_ATOMICS) | 70 #if defined(USING_SIMULATOR_ATOMICS) |
| 71 // We need to use the simulator to ensure that atomic operations are observed | 71 // We need to use the simulator to ensure that atomic operations are observed |
| 72 // both in C++ and in generated code if the simulator is active. | 72 // both in C++ and in generated code if the simulator is active. |
| 73 #include "vm/atomic_simulator.h" | 73 #include "vm/atomic_simulator.h" |
| 74 #endif | 74 #endif |
| 75 | 75 |
| 76 #if defined(TARGET_OS_ANDROID) | 76 #if defined(HOST_OS_ANDROID) |
| 77 #include "vm/atomic_android.h" | 77 #include "vm/atomic_android.h" |
| 78 #elif defined(TARGET_OS_FUCHSIA) | 78 #elif defined(HOST_OS_FUCHSIA) |
| 79 #include "vm/atomic_fuchsia.h" | 79 #include "vm/atomic_fuchsia.h" |
| 80 #elif defined(TARGET_OS_LINUX) | 80 #elif defined(HOST_OS_LINUX) |
| 81 #include "vm/atomic_linux.h" | 81 #include "vm/atomic_linux.h" |
| 82 #elif defined(TARGET_OS_MACOS) | 82 #elif defined(HOST_OS_MACOS) |
| 83 #include "vm/atomic_macos.h" | 83 #include "vm/atomic_macos.h" |
| 84 #elif defined(TARGET_OS_WINDOWS) | 84 #elif defined(HOST_OS_WINDOWS) |
| 85 #include "vm/atomic_win.h" | 85 #include "vm/atomic_win.h" |
| 86 #else | 86 #else |
| 87 #error Unknown target os. | 87 #error Unknown target os. |
| 88 #endif | 88 #endif |
| 89 | 89 |
| 90 #endif // RUNTIME_VM_ATOMIC_H_ | 90 #endif // RUNTIME_VM_ATOMIC_H_ |
| OLD | NEW |