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

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

Issue 1411383004: Enable generation of instruction buffer on precompilation (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address more CL concerns Created 5 years, 2 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
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/tools/create_snapshot_bin.py » ('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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #if defined(__ANDROID__) 87 #if defined(__ANDROID__)
88 #define TARGET_OS_ANDROID 1 88 #define TARGET_OS_ANDROID 1
89 #elif defined(__linux__) || defined(__FreeBSD__) 89 #elif defined(__linux__) || defined(__FreeBSD__)
90 #define TARGET_OS_LINUX 1 90 #define TARGET_OS_LINUX 1
91 #elif defined(__APPLE__) 91 #elif defined(__APPLE__)
92 // Define the flavor of Mac OS we are running on. 92 // Define the flavor of Mac OS we are running on.
93 #include <TargetConditionals.h> 93 #include <TargetConditionals.h>
94 // TODO(iposva): Rename TARGET_OS_MACOS to TARGET_OS_MAC to inherit 94 // TODO(iposva): Rename TARGET_OS_MACOS to TARGET_OS_MAC to inherit
95 // the value defined in TargetConditionals.h 95 // the value defined in TargetConditionals.h
96 #define TARGET_OS_MACOS 1 96 #define TARGET_OS_MACOS 1
97 #if TARGET_OS_IPHONE && !defined(TARGET_OS_IOS) 97 #if TARGET_OS_IPHONE
98 #define TARGET_OS_IOS 1 98 #define TARGET_OS_IOS 1
99 #endif 99 #endif
100 100
101 #elif defined(_WIN32) 101 #elif defined(_WIN32)
102 #define TARGET_OS_WINDOWS 1 102 #define TARGET_OS_WINDOWS 1
103 #else 103 #else
104 #error Automatic target os detection failed. 104 #error Automatic target os detection failed.
105 #endif 105 #endif
106 106
107 namespace dart { 107 namespace dart {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 #error Mismatched Host/Target architectures. 272 #error Mismatched Host/Target architectures.
273 #endif 273 #endif
274 #endif 274 #endif
275 275
276 // Determine whether we will be using the simulator. 276 // Determine whether we will be using the simulator.
277 #if defined(TARGET_ARCH_IA32) 277 #if defined(TARGET_ARCH_IA32)
278 // No simulator used. 278 // No simulator used.
279 #elif defined(TARGET_ARCH_X64) 279 #elif defined(TARGET_ARCH_X64)
280 // No simulator used. 280 // No simulator used.
281 #elif defined(TARGET_ARCH_ARM) 281 #elif defined(TARGET_ARCH_ARM)
282 #if !defined(HOST_ARCH_ARM) || TARGET_OS_IOS 282 #if !defined(HOST_ARCH_ARM)
283 #define USING_SIMULATOR 1 283 #define USING_SIMULATOR 1
284 #endif 284 #endif
285 285
286 #elif defined(TARGET_ARCH_ARM64) 286 #elif defined(TARGET_ARCH_ARM64)
287 #if !defined(HOST_ARCH_ARM64) || TARGET_OS_IOS 287 #if !defined(HOST_ARCH_ARM64)
288 #define USING_SIMULATOR 1 288 #define USING_SIMULATOR 1
289 #endif 289 #endif
290 290
291 #elif defined(TARGET_ARCH_MIPS) 291 #elif defined(TARGET_ARCH_MIPS)
292 #if !defined(HOST_ARCH_MIPS) || TARGET_OS_IOS 292 #if !defined(HOST_ARCH_MIPS)
293 #define USING_SIMULATOR 1 293 #define USING_SIMULATOR 1
294 #endif 294 #endif
295 295
296 #else 296 #else
297 #error Unknown architecture. 297 #error Unknown architecture.
298 #endif 298 #endif
299 299
300 300
301 // Short form printf format specifiers 301 // Short form printf format specifiers
302 #define Pd PRIdPTR 302 #define Pd PRIdPTR
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 602
603 #if defined(_WIN32) 603 #if defined(_WIN32)
604 #define STDIN_FILENO 0 604 #define STDIN_FILENO 0
605 #define STDOUT_FILENO 1 605 #define STDOUT_FILENO 1
606 #define STDERR_FILENO 2 606 #define STDERR_FILENO 2
607 #endif 607 #endif
608 608
609 } // namespace dart 609 } // namespace dart
610 610
611 #endif // PLATFORM_GLOBALS_H_ 611 #endif // PLATFORM_GLOBALS_H_
OLDNEW
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/tools/create_snapshot_bin.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698