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

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

Issue 1715123003: - Add DEBUG_ONLY and NOT_IN_PRODUCT macros. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update status files. Created 4 years, 10 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/vm/dart_api_impl.cc ('k') | runtime/vm/object.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
11 #include "platform/globals.h" 11 #include "platform/globals.h"
12 12
13 #if defined(_WIN32) 13 #if defined(_WIN32)
14 // Undef conflicting defines. 14 // Undef conflicting defines.
15 #undef PARITY_EVEN 15 #undef PARITY_EVEN
16 #undef PARITY_ODD 16 #undef PARITY_ODD
17 #undef near 17 #undef near
18 #endif 18 #endif // defined(_WIN32)
19 19
20 // The following #defines are invalidated. 20 // The following #defines are invalidated.
21 #undef OVERFLOW // From math.h conflicts in constants_ia32.h 21 #undef OVERFLOW // From math.h conflicts in constants_ia32.h
22 22
23 namespace dart { 23 namespace dart {
24 // Smi value range is from -(2^N) to (2^N)-1. 24 // Smi value range is from -(2^N) to (2^N)-1.
25 // N=30 (32-bit build) or N=62 (64-bit build). 25 // N=30 (32-bit build) or N=62 (64-bit build).
26 const intptr_t kSmiBits = kBitsPerWord - 2; 26 const intptr_t kSmiBits = kBitsPerWord - 2;
27 const intptr_t kSmiMax = (static_cast<intptr_t>(1) << kSmiBits) - 1; 27 const intptr_t kSmiMax = (static_cast<intptr_t>(1) << kSmiBits) - 1;
28 const intptr_t kSmiMin = -(static_cast<intptr_t>(1) << kSmiBits); 28 const intptr_t kSmiMin = -(static_cast<intptr_t>(1) << kSmiBits);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #else 126 #else
127 #error Unknown host architecture. 127 #error Unknown host architecture.
128 #endif 128 #endif
129 129
130 130
131 #endif // !defined(TARGET_OS_WINDOWS)) 131 #endif // !defined(TARGET_OS_WINDOWS))
132 132
133 } // namespace dart 133 } // namespace dart
134 134
135 #endif // VM_GLOBALS_H_ 135 #endif // VM_GLOBALS_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698