| 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 FUNCTION_SCOPE, // The top-level scope for a function. | 649 FUNCTION_SCOPE, // The top-level scope for a function. |
| 650 MODULE_SCOPE, // The scope introduced by a module literal | 650 MODULE_SCOPE, // The scope introduced by a module literal |
| 651 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. | 651 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. |
| 652 CATCH_SCOPE, // The scope introduced by catch. | 652 CATCH_SCOPE, // The scope introduced by catch. |
| 653 BLOCK_SCOPE, // The scope introduced by a new block. | 653 BLOCK_SCOPE, // The scope introduced by a new block. |
| 654 WITH_SCOPE, // The scope introduced by with. | 654 WITH_SCOPE, // The scope introduced by with. |
| 655 ARROW_SCOPE // The top-level scope for an arrow function literal. | 655 ARROW_SCOPE // The top-level scope for an arrow function literal. |
| 656 }; | 656 }; |
| 657 | 657 |
| 658 | 658 |
| 659 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; | 659 const uint32_t kHoleNanUpper32 = 0x7FF00000; |
| 660 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; | 660 const uint32_t kHoleNanLower32 = 0x7FF00000; |
| 661 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; | |
| 662 | 661 |
| 663 const uint64_t kHoleNanInt64 = | 662 const uint64_t kHoleNanInt64 = |
| 664 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; | 663 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; |
| 665 const uint64_t kLastNonNaNInt64 = | |
| 666 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); | |
| 667 | 664 |
| 668 | 665 |
| 669 // The order of this enum has to be kept in sync with the predicates below. | 666 // The order of this enum has to be kept in sync with the predicates below. |
| 670 enum VariableMode { | 667 enum VariableMode { |
| 671 // User declared variables: | 668 // User declared variables: |
| 672 VAR, // declared via 'var', and 'function' declarations | 669 VAR, // declared via 'var', and 'function' declarations |
| 673 | 670 |
| 674 CONST_LEGACY, // declared via legacy 'const' declarations | 671 CONST_LEGACY, // declared via legacy 'const' declarations |
| 675 | 672 |
| 676 LET, // declared via 'let' declarations (first lexical) | 673 LET, // declared via 'let' declarations (first lexical) |
| (...skipping 140 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 |