| 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 VM_ATOMIC_H_ | 5 #ifndef VM_ATOMIC_H_ |
| 6 #define VM_ATOMIC_H_ | 6 #define 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #endif | 70 #endif |
| 71 | 71 |
| 72 #if defined(USING_SIMULATOR_ATOMICS) | 72 #if defined(USING_SIMULATOR_ATOMICS) |
| 73 // We need to use the simulator to ensure that atomic operations are observed | 73 // We need to use the simulator to ensure that atomic operations are observed |
| 74 // both in C++ and in generated code if the simulator is active. | 74 // both in C++ and in generated code if the simulator is active. |
| 75 #include "vm/atomic_simulator.h" | 75 #include "vm/atomic_simulator.h" |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 #if defined(TARGET_OS_ANDROID) | 78 #if defined(TARGET_OS_ANDROID) |
| 79 #include "vm/atomic_android.h" | 79 #include "vm/atomic_android.h" |
| 80 #elif defined(TARGET_OS_FUCHSIA) |
| 81 #include "vm/atomic_fuchsia.h" |
| 80 #elif defined(TARGET_OS_LINUX) | 82 #elif defined(TARGET_OS_LINUX) |
| 81 #include "vm/atomic_linux.h" | 83 #include "vm/atomic_linux.h" |
| 82 #elif defined(TARGET_OS_MACOS) | 84 #elif defined(TARGET_OS_MACOS) |
| 83 #include "vm/atomic_macos.h" | 85 #include "vm/atomic_macos.h" |
| 84 #elif defined(TARGET_OS_WINDOWS) | 86 #elif defined(TARGET_OS_WINDOWS) |
| 85 #include "vm/atomic_win.h" | 87 #include "vm/atomic_win.h" |
| 86 #else | 88 #else |
| 87 #error Unknown target os. | 89 #error Unknown target os. |
| 88 #endif | 90 #endif |
| 89 | 91 |
| 90 #endif // VM_ATOMIC_H_ | 92 #endif // VM_ATOMIC_H_ |
| OLD | NEW |