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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 enum SmiCheckType { | 644 enum SmiCheckType { |
645 DONT_DO_SMI_CHECK, | 645 DONT_DO_SMI_CHECK, |
646 DO_SMI_CHECK | 646 DO_SMI_CHECK |
647 }; | 647 }; |
648 | 648 |
649 | 649 |
650 enum ScopeType { | 650 enum ScopeType { |
651 EVAL_SCOPE, // The top-level scope for an eval source. | 651 EVAL_SCOPE, // The top-level scope for an eval source. |
652 FUNCTION_SCOPE, // The top-level scope for a function. | 652 FUNCTION_SCOPE, // The top-level scope for a function. |
653 MODULE_SCOPE, // The scope introduced by a module literal | 653 MODULE_SCOPE, // The scope introduced by a module literal |
654 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. | 654 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. |
655 CATCH_SCOPE, // The scope introduced by catch. | 655 CATCH_SCOPE, // The scope introduced by catch. |
656 BLOCK_SCOPE, // The scope introduced by a new block. | 656 BLOCK_SCOPE, // The scope introduced by a new block. |
657 WITH_SCOPE, // The scope introduced by with. | 657 WITH_SCOPE, // The scope introduced by with. |
658 ARROW_SCOPE // The top-level scope for an arrow function literal. | 658 ARROW_SCOPE // The top-level scope for an arrow function literal. |
659 }; | 659 }; |
660 | 660 |
661 | 661 |
662 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; | 662 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; |
663 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; | 663 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; |
664 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; | 664 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 | 826 |
827 inline bool IsDefaultConstructorCallSuper(FunctionKind kind) { | 827 inline bool IsDefaultConstructorCallSuper(FunctionKind kind) { |
828 DCHECK(IsValidFunctionKind(kind)); | 828 DCHECK(IsValidFunctionKind(kind)); |
829 return kind & FunctionKind::kDefaultConstructorCallSuper; | 829 return kind & FunctionKind::kDefaultConstructorCallSuper; |
830 } | 830 } |
831 } } // namespace v8::internal | 831 } } // namespace v8::internal |
832 | 832 |
833 namespace i = v8::internal; | 833 namespace i = v8::internal; |
834 | 834 |
835 #endif // V8_GLOBALS_H_ | 835 #endif // V8_GLOBALS_H_ |
OLD | NEW |