Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1877)

Side by Side Diff: runtime/vm/globals.h

Issue 1421253004: Use the iOS ABI when running SIMARM on Mac or targeting iOS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: R711 -> NOTFP Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 VM_GLOBALS_H_ 5 #ifndef VM_GLOBALS_H_
6 #define VM_GLOBALS_H_ 6 #define 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #endif 102 #endif
103 103
104 #else // !defined(TARGET_OS_WINDOWS)) 104 #else // !defined(TARGET_OS_WINDOWS))
105 105
106 // Assume GCC-like inline syntax is valid. 106 // Assume GCC-like inline syntax is valid.
107 #if defined(HOST_ARCH_IA32) 107 #if defined(HOST_ARCH_IA32)
108 #define COPY_FP_REGISTER(fp) asm volatile ("movl %%ebp, %0" : "=r" (fp) ); 108 #define COPY_FP_REGISTER(fp) asm volatile ("movl %%ebp, %0" : "=r" (fp) );
109 #elif defined(HOST_ARCH_X64) 109 #elif defined(HOST_ARCH_X64)
110 #define COPY_FP_REGISTER(fp) asm volatile ("movq %%rbp, %0" : "=r" (fp) ); 110 #define COPY_FP_REGISTER(fp) asm volatile ("movq %%rbp, %0" : "=r" (fp) );
111 #elif defined(HOST_ARCH_ARM) 111 #elif defined(HOST_ARCH_ARM)
112 # if defined(TARGET_OS_MAC)
113 #define COPY_FP_REGISTER(fp) asm volatile ("mov %0, r7" : "=r" (fp) );
114 # else
112 #define COPY_FP_REGISTER(fp) asm volatile ("mov %0, r11" : "=r" (fp) ); 115 #define COPY_FP_REGISTER(fp) asm volatile ("mov %0, r11" : "=r" (fp) );
116 # endif
113 #elif defined(HOST_ARCH_ARM64) 117 #elif defined(HOST_ARCH_ARM64)
114 #define COPY_FP_REGISTER(fp) asm volatile ("mov %0, x29" : "=r" (fp) ); 118 #define COPY_FP_REGISTER(fp) asm volatile ("mov %0, x29" : "=r" (fp) );
115 #elif defined(HOST_ARCH_MIPS) 119 #elif defined(HOST_ARCH_MIPS)
116 #define COPY_FP_REGISTER(fp) asm volatile ("move %0, $fp" : "=r" (fp) ); 120 #define COPY_FP_REGISTER(fp) asm volatile ("move %0, $fp" : "=r" (fp) );
117 #else 121 #else
118 #error Unknown host architecture. 122 #error Unknown host architecture.
119 #endif 123 #endif
120 124
121 125
122 #endif // !defined(TARGET_OS_WINDOWS)) 126 #endif // !defined(TARGET_OS_WINDOWS))
123 127
124 } // namespace dart 128 } // namespace dart
125 129
126 #endif // VM_GLOBALS_H_ 130 #endif // VM_GLOBALS_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698