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

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

Issue 10875030: Add support for XMM registers in SSA code generation pipeline. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix a bug pointed out by Florian Created 8 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.h » ('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 PLATFORM_GLOBALS_H_ 5 #ifndef PLATFORM_GLOBALS_H_
6 #define PLATFORM_GLOBALS_H_ 6 #define PLATFORM_GLOBALS_H_
7 7
8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to
9 // enable platform independent printf format specifiers. 9 // enable platform independent printf format specifiers.
10 #ifndef __STDC_FORMAT_MACROS 10 #ifndef __STDC_FORMAT_MACROS
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const int64_t kMaxInt64 = DART_INT64_C(0x7FFFFFFFFFFFFFFF); 154 const int64_t kMaxInt64 = DART_INT64_C(0x7FFFFFFFFFFFFFFF);
155 const uint64_t kMaxUint64 = DART_2PART_UINT64_C(0xFFFFFFFF, FFFFFFFF); 155 const uint64_t kMaxUint64 = DART_2PART_UINT64_C(0xFFFFFFFF, FFFFFFFF);
156 156
157 // Types for native machine words. Guaranteed to be able to hold pointers and 157 // Types for native machine words. Guaranteed to be able to hold pointers and
158 // integers. 158 // integers.
159 typedef intptr_t word; 159 typedef intptr_t word;
160 typedef uintptr_t uword; 160 typedef uintptr_t uword;
161 161
162 // Byte sizes. 162 // Byte sizes.
163 const int kWordSize = sizeof(word); 163 const int kWordSize = sizeof(word);
164 const int kDoubleSize = sizeof(double); // NOLINT
164 #ifdef ARCH_IS_32_BIT 165 #ifdef ARCH_IS_32_BIT
165 const int kWordSizeLog2 = 2; 166 const int kWordSizeLog2 = 2;
166 const uword kUwordMax = kMaxUint32; 167 const uword kUwordMax = kMaxUint32;
167 #else 168 #else
168 const int kWordSizeLog2 = 3; 169 const int kWordSizeLog2 = 3;
169 const uword kUwordMax = kMaxUint64; 170 const uword kUwordMax = kMaxUint64;
170 #endif 171 #endif
171 172
172 // Bit sizes. 173 // Bit sizes.
173 const int kBitsPerByte = 8; 174 const int kBitsPerByte = 8;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // separate lines with body in {}s). 353 // separate lines with body in {}s).
353 # define TEMP_FAILURE_RETRY(expression) \ 354 # define TEMP_FAILURE_RETRY(expression) \
354 ({ int64_t __result; \ 355 ({ int64_t __result; \
355 do { \ 356 do { \
356 __result = (int64_t) (expression); \ 357 __result = (int64_t) (expression); \
357 } while (__result == -1L && errno == EINTR); \ 358 } while (__result == -1L && errno == EINTR); \
358 __result; }) 359 __result; })
359 #endif 360 #endif
360 361
361 #endif // PLATFORM_GLOBALS_H_ 362 #endif // PLATFORM_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698