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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 }; | 750 }; |
751 | 751 |
752 | 752 |
753 enum ScopeType { | 753 enum ScopeType { |
754 EVAL_SCOPE, // The top-level scope for an eval source. | 754 EVAL_SCOPE, // The top-level scope for an eval source. |
755 FUNCTION_SCOPE, // The top-level scope for a function. | 755 FUNCTION_SCOPE, // The top-level scope for a function. |
756 MODULE_SCOPE, // The scope introduced by a module literal | 756 MODULE_SCOPE, // The scope introduced by a module literal |
757 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. | 757 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. |
758 CATCH_SCOPE, // The scope introduced by catch. | 758 CATCH_SCOPE, // The scope introduced by catch. |
759 BLOCK_SCOPE, // The scope introduced by a new block. | 759 BLOCK_SCOPE, // The scope introduced by a new block. |
760 WITH_SCOPE, // The scope introduced by with. | 760 WITH_SCOPE // The scope introduced by with. |
761 ARROW_SCOPE // The top-level scope for an arrow function literal. | |
762 }; | 761 }; |
763 | 762 |
764 // The mips architecture prior to revision 5 has inverted encoding for sNaN. | 763 // The mips architecture prior to revision 5 has inverted encoding for sNaN. |
765 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ | 764 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ |
766 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) | 765 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) |
767 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; | 766 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; |
768 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; | 767 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; |
769 #else | 768 #else |
770 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; | 769 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; |
771 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; | 770 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 1019 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
1021 DCHECK(IsValidFunctionKind(kind)); | 1020 DCHECK(IsValidFunctionKind(kind)); |
1022 return kind; | 1021 return kind; |
1023 } | 1022 } |
1024 } // namespace internal | 1023 } // namespace internal |
1025 } // namespace v8 | 1024 } // namespace v8 |
1026 | 1025 |
1027 namespace i = v8::internal; | 1026 namespace i = v8::internal; |
1028 | 1027 |
1029 #endif // V8_GLOBALS_H_ | 1028 #endif // V8_GLOBALS_H_ |
OLD | NEW |