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

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

Issue 1858283002: Initial SIMDBC interpreter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 #define DART_NORETURN __attribute__((noreturn)) 272 #define DART_NORETURN __attribute__((noreturn))
273 #else 273 #else
274 #error Automatic compiler detection failed. 274 #error Automatic compiler detection failed.
275 #endif 275 #endif
276 276
277 #if !defined(TARGET_ARCH_MIPS) 277 #if !defined(TARGET_ARCH_MIPS)
278 #if !defined(TARGET_ARCH_ARM) 278 #if !defined(TARGET_ARCH_ARM)
279 #if !defined(TARGET_ARCH_X64) 279 #if !defined(TARGET_ARCH_X64)
280 #if !defined(TARGET_ARCH_IA32) 280 #if !defined(TARGET_ARCH_IA32)
281 #if !defined(TARGET_ARCH_ARM64) 281 #if !defined(TARGET_ARCH_ARM64)
282 #if !defined(TARGET_ARCH_DBC)
282 // No target architecture specified pick the one matching the host architecture. 283 // No target architecture specified pick the one matching the host architecture.
283 #if defined(HOST_ARCH_MIPS) 284 #if defined(HOST_ARCH_MIPS)
284 #define TARGET_ARCH_MIPS 1 285 #define TARGET_ARCH_MIPS 1
285 #elif defined(HOST_ARCH_ARM) 286 #elif defined(HOST_ARCH_ARM)
286 #define TARGET_ARCH_ARM 1 287 #define TARGET_ARCH_ARM 1
287 #elif defined(HOST_ARCH_X64) 288 #elif defined(HOST_ARCH_X64)
288 #define TARGET_ARCH_X64 1 289 #define TARGET_ARCH_X64 1
289 #elif defined(HOST_ARCH_IA32) 290 #elif defined(HOST_ARCH_IA32)
290 #define TARGET_ARCH_IA32 1 291 #define TARGET_ARCH_IA32 1
291 #elif defined(HOST_ARCH_ARM64) 292 #elif defined(HOST_ARCH_ARM64)
292 #define TARGET_ARCH_ARM64 1 293 #define TARGET_ARCH_ARM64 1
293 #else 294 #else
294 #error Automatic target architecture detection failed. 295 #error Automatic target architecture detection failed.
295 #endif 296 #endif
296 #endif 297 #endif
297 #endif 298 #endif
298 #endif 299 #endif
299 #endif 300 #endif
300 #endif 301 #endif
302 #endif
301 303
302 // Verify that host and target architectures match, we cannot 304 // Verify that host and target architectures match, we cannot
303 // have a 64 bit Dart VM generating 32 bit code or vice-versa. 305 // have a 64 bit Dart VM generating 32 bit code or vice-versa.
304 #if defined(TARGET_ARCH_X64) || \ 306 #if defined(TARGET_ARCH_X64) || \
305 defined(TARGET_ARCH_ARM64) 307 defined(TARGET_ARCH_ARM64)
306 #if !defined(ARCH_IS_64_BIT) 308 #if !defined(ARCH_IS_64_BIT)
307 #error Mismatched Host/Target architectures. 309 #error Mismatched Host/Target architectures.
308 #endif 310 #endif
309 #elif defined(TARGET_ARCH_IA32) || \ 311 #elif defined(TARGET_ARCH_IA32) || \
310 defined(TARGET_ARCH_ARM) || \ 312 defined(TARGET_ARCH_ARM) || \
(...skipping 16 matching lines...) Expand all
327 #elif defined(TARGET_ARCH_ARM64) 329 #elif defined(TARGET_ARCH_ARM64)
328 #if !defined(HOST_ARCH_ARM64) 330 #if !defined(HOST_ARCH_ARM64)
329 #define USING_SIMULATOR 1 331 #define USING_SIMULATOR 1
330 #endif 332 #endif
331 333
332 #elif defined(TARGET_ARCH_MIPS) 334 #elif defined(TARGET_ARCH_MIPS)
333 #if !defined(HOST_ARCH_MIPS) 335 #if !defined(HOST_ARCH_MIPS)
334 #define USING_SIMULATOR 1 336 #define USING_SIMULATOR 1
335 #endif 337 #endif
336 338
339 #elif defined(TARGET_ARCH_DBC)
340 #define USING_SIMULATOR 1
341
337 #else 342 #else
338 #error Unknown architecture. 343 #error Unknown architecture.
339 #endif 344 #endif
340 345
341 346
342 // Short form printf format specifiers 347 // Short form printf format specifiers
343 #define Pd PRIdPTR 348 #define Pd PRIdPTR
344 #define Pu PRIuPTR 349 #define Pu PRIuPTR
345 #define Px PRIxPTR 350 #define Px PRIxPTR
346 #define Pd64 PRId64 351 #define Pd64 PRId64
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 648
644 #if defined(_WIN32) 649 #if defined(_WIN32)
645 #define STDIN_FILENO 0 650 #define STDIN_FILENO 0
646 #define STDOUT_FILENO 1 651 #define STDOUT_FILENO 1
647 #define STDERR_FILENO 2 652 #define STDERR_FILENO 2
648 #endif 653 #endif
649 654
650 } // namespace dart 655 } // namespace dart
651 656
652 #endif // PLATFORM_GLOBALS_H_ 657 #endif // PLATFORM_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698