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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 | 703 |
704 // Used to specify if a macro instruction must perform a smi check on tagged | 704 // Used to specify if a macro instruction must perform a smi check on tagged |
705 // values. | 705 // values. |
706 enum SmiCheckType { | 706 enum SmiCheckType { |
707 DONT_DO_SMI_CHECK, | 707 DONT_DO_SMI_CHECK, |
708 DO_SMI_CHECK | 708 DO_SMI_CHECK |
709 }; | 709 }; |
710 | 710 |
711 | 711 |
712 enum ScopeType { | 712 enum ScopeType { |
713 EVAL_SCOPE, // The top-level scope for an eval source. | 713 EVAL_SCOPE, // The top-level scope for an eval source. |
714 FUNCTION_SCOPE, // The top-level scope for a function. | 714 FUNCTION_SCOPE, // The top-level scope for a function. |
715 MODULE_SCOPE, // The scope introduced by a module literal | 715 MODULE_SCOPE, // The scope introduced by a module literal |
716 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. | 716 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. |
717 CATCH_SCOPE, // The scope introduced by catch. | 717 CATCH_SCOPE, // The scope introduced by catch. |
718 BLOCK_SCOPE, // The scope introduced by a new block. | 718 BLOCK_SCOPE, // The scope introduced by a new block. |
719 WITH_SCOPE, // The scope introduced by with. | 719 WITH_SCOPE, // The scope introduced by with. |
720 ARROW_SCOPE // The top-level scope for an arrow function literal. | 720 ARROW_SCOPE, // The top-level scope for an arrow function literal. |
| 721 FUNCTION_BODY_SCOPE // The body of a function |
721 }; | 722 }; |
722 | 723 |
723 // The mips architecture prior to revision 5 has inverted encoding for sNaN. | 724 // The mips architecture prior to revision 5 has inverted encoding for sNaN. |
724 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ | 725 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ |
725 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) | 726 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) |
726 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; | 727 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; |
727 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; | 728 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; |
728 #else | 729 #else |
729 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; | 730 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; |
730 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; | 731 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 944 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
944 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 945 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
945 DCHECK(IsValidFunctionKind(kind)); | 946 DCHECK(IsValidFunctionKind(kind)); |
946 return kind; | 947 return kind; |
947 } | 948 } |
948 } } // namespace v8::internal | 949 } } // namespace v8::internal |
949 | 950 |
950 namespace i = v8::internal; | 951 namespace i = v8::internal; |
951 | 952 |
952 #endif // V8_GLOBALS_H_ | 953 #endif // V8_GLOBALS_H_ |
OLD | NEW |