OLD | NEW |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 | 64 |
65 // When using GCC we can use GCC attributes to ensure that certain | 65 // When using GCC we can use GCC attributes to ensure that certain |
66 // contants are 16 byte aligned. | 66 // contants are 16 byte aligned. |
67 #if defined(TARGET_OS_WINDOWS) | 67 #if defined(TARGET_OS_WINDOWS) |
68 #define ALIGN16 __declspec(align(16)) | 68 #define ALIGN16 __declspec(align(16)) |
69 #else | 69 #else |
70 #define ALIGN16 __attribute__((aligned(16))) | 70 #define ALIGN16 __attribute__((aligned(16))) |
71 #endif | 71 #endif |
72 | 72 |
| 73 |
| 74 // Zap value used to indicate uninitialized handle area (debug purposes). |
| 75 #if defined(ARCH_IS_32_BIT) |
| 76 static const uword kZapUninitializedWord = 0xabababab; |
| 77 #else |
| 78 static const uword kZapUninitializedWord = 0xabababababababab; |
| 79 #endif |
| 80 |
| 81 |
73 } // namespace dart | 82 } // namespace dart |
74 | 83 |
75 #endif // VM_GLOBALS_H_ | 84 #endif // VM_GLOBALS_H_ |
OLD | NEW |