| 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 #ifndef RUNTIME_VM_GLOBALS_H_ | 5 #ifndef RUNTIME_VM_GLOBALS_H_ |
| 6 #define RUNTIME_VM_GLOBALS_H_ | 6 #define RUNTIME_VM_GLOBALS_H_ |
| 7 | 7 |
| 8 // This file contains global definitions for the VM library only. Anything that | 8 // This file contains global definitions for the VM library only. Anything that |
| 9 // is more globally useful should be added to 'vm/globals.h'. | 9 // is more globally useful should be added to 'vm/globals.h'. |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 #define COPY_FP_REGISTER(fp) asm volatile("mov %0, r11" : "=r"(fp)); | 128 #define COPY_FP_REGISTER(fp) asm volatile("mov %0, r11" : "=r"(fp)); |
| 129 #endif | 129 #endif |
| 130 #elif defined(HOST_ARCH_ARM64) | 130 #elif defined(HOST_ARCH_ARM64) |
| 131 #define COPY_FP_REGISTER(fp) asm volatile("mov %0, x29" : "=r"(fp)); | 131 #define COPY_FP_REGISTER(fp) asm volatile("mov %0, x29" : "=r"(fp)); |
| 132 #elif defined(HOST_ARCH_MIPS) | 132 #elif defined(HOST_ARCH_MIPS) |
| 133 #define COPY_FP_REGISTER(fp) asm volatile("move %0, $fp" : "=r"(fp)); | 133 #define COPY_FP_REGISTER(fp) asm volatile("move %0, $fp" : "=r"(fp)); |
| 134 #else | 134 #else |
| 135 #error Unknown host architecture. | 135 #error Unknown host architecture. |
| 136 #endif | 136 #endif |
| 137 | 137 |
| 138 | |
| 139 #endif // !defined(TARGET_OS_WINDOWS)) | 138 #endif // !defined(TARGET_OS_WINDOWS)) |
| 140 | 139 |
| 141 // Default value for flag --use-corelib-source-files. | |
| 142 #if defined(TARGET_OS_WINDOWS) | |
| 143 static const bool kDefaultCorelibSourceFlag = true; | |
| 144 #else | |
| 145 static const bool kDefaultCorelibSourceFlag = false; | |
| 146 #endif // defined(TARGET_OS_WINDOWS) | |
| 147 | |
| 148 } // namespace dart | 140 } // namespace dart |
| 149 | 141 |
| 150 #endif // RUNTIME_VM_GLOBALS_H_ | 142 #endif // RUNTIME_VM_GLOBALS_H_ |
| OLD | NEW |