| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 558 |
| 559 | 559 |
| 560 // ----------------------------------------------------------------------------- | 560 // ----------------------------------------------------------------------------- |
| 561 // Macros | 561 // Macros |
| 562 | 562 |
| 563 // Testers for test. | 563 // Testers for test. |
| 564 | 564 |
| 565 #define HAS_SMI_TAG(value) \ | 565 #define HAS_SMI_TAG(value) \ |
| 566 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) | 566 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) |
| 567 | 567 |
| 568 #define HAS_FAILURE_TAG(value) \ | |
| 569 ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag) | |
| 570 | |
| 571 // OBJECT_POINTER_ALIGN returns the value aligned as a HeapObject pointer | 568 // OBJECT_POINTER_ALIGN returns the value aligned as a HeapObject pointer |
| 572 #define OBJECT_POINTER_ALIGN(value) \ | 569 #define OBJECT_POINTER_ALIGN(value) \ |
| 573 (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask) | 570 (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask) |
| 574 | 571 |
| 575 // POINTER_SIZE_ALIGN returns the value aligned as a pointer. | 572 // POINTER_SIZE_ALIGN returns the value aligned as a pointer. |
| 576 #define POINTER_SIZE_ALIGN(value) \ | 573 #define POINTER_SIZE_ALIGN(value) \ |
| 577 (((value) + kPointerAlignmentMask) & ~kPointerAlignmentMask) | 574 (((value) + kPointerAlignmentMask) & ~kPointerAlignmentMask) |
| 578 | 575 |
| 579 // CODE_POINTER_ALIGN returns the value aligned as a generated code segment. | 576 // CODE_POINTER_ALIGN returns the value aligned as a generated code segment. |
| 580 #define CODE_POINTER_ALIGN(value) \ | 577 #define CODE_POINTER_ALIGN(value) \ |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 DCHECK(IsValidFunctionKind(kind)); | 812 DCHECK(IsValidFunctionKind(kind)); |
| 816 return kind & FunctionKind::kDefaultConstructor; | 813 return kind & FunctionKind::kDefaultConstructor; |
| 817 } | 814 } |
| 818 | 815 |
| 819 | 816 |
| 820 } } // namespace v8::internal | 817 } } // namespace v8::internal |
| 821 | 818 |
| 822 namespace i = v8::internal; | 819 namespace i = v8::internal; |
| 823 | 820 |
| 824 #endif // V8_GLOBALS_H_ | 821 #endif // V8_GLOBALS_H_ |
| OLD | NEW |