| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_MACOS) | 6 #if defined(TARGET_OS_MACOS) |
| 7 | 7 |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 | 9 |
| 10 #include <errno.h> // NOLINT | 10 #include <errno.h> // NOLINT |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 #if TARGET_ARCH_ARM | 162 #if TARGET_ARCH_ARM |
| 163 // Even if we generate code that maintains a stronger alignment, we cannot | 163 // Even if we generate code that maintains a stronger alignment, we cannot |
| 164 // assert the stronger stack alignment because C++ code will not maintain it. | 164 // assert the stronger stack alignment because C++ code will not maintain it. |
| 165 return 8; | 165 return 8; |
| 166 #elif TARGET_ARCH_ARM64 | 166 #elif TARGET_ARCH_ARM64 |
| 167 return 16; | 167 return 16; |
| 168 #elif TARGET_ARCH_IA32 | 168 #elif TARGET_ARCH_IA32 |
| 169 return 16; // iOS simulator | 169 return 16; // iOS simulator |
| 170 #elif TARGET_ARCH_X64 | 170 #elif TARGET_ARCH_X64 |
| 171 return 16; // iOS simulator | 171 return 16; // iOS simulator |
| 172 #elif TARGET_ARCH_DBC |
| 173 return 16; |
| 172 #else | 174 #else |
| 173 #error Unimplemented | 175 #error Unimplemented |
| 174 #endif | 176 #endif |
| 175 #else // TARGET_OS_IOS | 177 #else // TARGET_OS_IOS |
| 176 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI | 178 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI |
| 177 // Function Call Guide". | 179 // Function Call Guide". |
| 178 return 16; | 180 return 16; |
| 179 #endif // TARGET_OS_IOS | 181 #endif // TARGET_OS_IOS |
| 180 } | 182 } |
| 181 | 183 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 } | 389 } |
| 388 | 390 |
| 389 | 391 |
| 390 void OS::Exit(int code) { | 392 void OS::Exit(int code) { |
| 391 exit(code); | 393 exit(code); |
| 392 } | 394 } |
| 393 | 395 |
| 394 } // namespace dart | 396 } // namespace dart |
| 395 | 397 |
| 396 #endif // defined(TARGET_OS_MACOS) | 398 #endif // defined(TARGET_OS_MACOS) |
| OLD | NEW |