| 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 RUNTIME_VM_GLOBALS_H_ | 5 #ifndef RUNTIME_VM_GLOBALS_H_ |
| 6 #define RUNTIME_VM_GLOBALS_H_ | 6 #define RUNTIME_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 return reinterpret_cast<type*>(result); \ | 72 return reinterpret_cast<type*>(result); \ |
| 73 } while (0) | 73 } while (0) |
| 74 | 74 |
| 75 | 75 |
| 76 // A type large enough to contain the value of the C++ vtable. This is needed | 76 // A type large enough to contain the value of the C++ vtable. This is needed |
| 77 // to support the handle operations. | 77 // to support the handle operations. |
| 78 typedef uword cpp_vtable; | 78 typedef uword cpp_vtable; |
| 79 | 79 |
| 80 | 80 |
| 81 // When using GCC we can use GCC attributes to ensure that certain | 81 // When using GCC we can use GCC attributes to ensure that certain |
| 82 // contants are 8 or 16 byte aligned. | 82 // constants are 8 or 16 byte aligned. |
| 83 #if defined(HOST_OS_WINDOWS) | 83 #if defined(HOST_OS_WINDOWS) |
| 84 #define ALIGN8 __declspec(align(8)) | 84 #define ALIGN8 __declspec(align(8)) |
| 85 #define ALIGN16 __declspec(align(16)) | 85 #define ALIGN16 __declspec(align(16)) |
| 86 #else | 86 #else |
| 87 #define ALIGN8 __attribute__((aligned(8))) | 87 #define ALIGN8 __attribute__((aligned(8))) |
| 88 #define ALIGN16 __attribute__((aligned(16))) | 88 #define ALIGN16 __attribute__((aligned(16))) |
| 89 #endif | 89 #endif |
| 90 | 90 |
| 91 | 91 |
| 92 // Zap value used to indicate uninitialized handle area (debug purposes). | 92 // Zap value used to indicate uninitialized handle area (debug purposes). |
| (...skipping 25 matching lines...) Expand all Loading... |
| 118 | 118 |
| 119 // Assume GCC-compatible builtins. | 119 // Assume GCC-compatible builtins. |
| 120 #define COPY_FP_REGISTER(fp) \ | 120 #define COPY_FP_REGISTER(fp) \ |
| 121 fp = reinterpret_cast<uintptr_t>(__builtin_frame_address(0)); | 121 fp = reinterpret_cast<uintptr_t>(__builtin_frame_address(0)); |
| 122 | 122 |
| 123 #endif // !defined(HOST_OS_WINDOWS)) | 123 #endif // !defined(HOST_OS_WINDOWS)) |
| 124 | 124 |
| 125 } // namespace dart | 125 } // namespace dart |
| 126 | 126 |
| 127 #endif // RUNTIME_VM_GLOBALS_H_ | 127 #endif // RUNTIME_VM_GLOBALS_H_ |
| OLD | NEW |