| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
| 6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 | 560 |
| 561 | 561 |
| 562 // ----------------------------------------------------------------------------- | 562 // ----------------------------------------------------------------------------- |
| 563 // Macros | 563 // Macros |
| 564 | 564 |
| 565 // Testers for test. | 565 // Testers for test. |
| 566 | 566 |
| 567 #define HAS_SMI_TAG(value) \ | 567 #define HAS_SMI_TAG(value) \ |
| 568 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) | 568 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) |
| 569 | 569 |
| 570 #define HAS_FAILURE_TAG(value) \ | |
| 571 ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag) | |
| 572 | |
| 573 // OBJECT_POINTER_ALIGN returns the value aligned as a HeapObject pointer | 570 // OBJECT_POINTER_ALIGN returns the value aligned as a HeapObject pointer |
| 574 #define OBJECT_POINTER_ALIGN(value) \ | 571 #define OBJECT_POINTER_ALIGN(value) \ |
| 575 (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask) | 572 (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask) |
| 576 | 573 |
| 577 // POINTER_SIZE_ALIGN returns the value aligned as a pointer. | 574 // POINTER_SIZE_ALIGN returns the value aligned as a pointer. |
| 578 #define POINTER_SIZE_ALIGN(value) \ | 575 #define POINTER_SIZE_ALIGN(value) \ |
| 579 (((value) + kPointerAlignmentMask) & ~kPointerAlignmentMask) | 576 (((value) + kPointerAlignmentMask) & ~kPointerAlignmentMask) |
| 580 | 577 |
| 581 // CODE_POINTER_ALIGN returns the value aligned as a generated code segment. | 578 // CODE_POINTER_ALIGN returns the value aligned as a generated code segment. |
| 582 #define CODE_POINTER_ALIGN(value) \ | 579 #define CODE_POINTER_ALIGN(value) \ |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 DCHECK(IsValidFunctionKind(kind)); | 814 DCHECK(IsValidFunctionKind(kind)); |
| 818 return kind & FunctionKind::kDefaultConstructor; | 815 return kind & FunctionKind::kDefaultConstructor; |
| 819 } | 816 } |
| 820 | 817 |
| 821 | 818 |
| 822 } } // namespace v8::internal | 819 } } // namespace v8::internal |
| 823 | 820 |
| 824 namespace i = v8::internal; | 821 namespace i = v8::internal; |
| 825 | 822 |
| 826 #endif // V8_GLOBALS_H_ | 823 #endif // V8_GLOBALS_H_ |
| OLD | NEW |