| 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 | 686 |
| 687 | 687 |
| 688 enum ScopeType { | 688 enum ScopeType { |
| 689 EVAL_SCOPE, // The top-level scope for an eval source. | 689 EVAL_SCOPE, // The top-level scope for an eval source. |
| 690 FUNCTION_SCOPE, // The top-level scope for a function. | 690 FUNCTION_SCOPE, // The top-level scope for a function. |
| 691 MODULE_SCOPE, // The scope introduced by a module literal | 691 MODULE_SCOPE, // The scope introduced by a module literal |
| 692 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. | 692 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. |
| 693 CATCH_SCOPE, // The scope introduced by catch. | 693 CATCH_SCOPE, // The scope introduced by catch. |
| 694 BLOCK_SCOPE, // The scope introduced by a new block. | 694 BLOCK_SCOPE, // The scope introduced by a new block. |
| 695 WITH_SCOPE, // The scope introduced by with. | 695 WITH_SCOPE, // The scope introduced by with. |
| 696 ARROW_SCOPE // The top-level scope for an arrow function literal. | 696 ARROW_SCOPE, // The top-level scope for an arrow function literal. |
| 697 CLASS_SCOPE // The top-level scope for a class. |
| 697 }; | 698 }; |
| 698 | 699 |
| 699 // The mips architecture prior to revision 5 has inverted encoding for sNaN. | 700 // The mips architecture prior to revision 5 has inverted encoding for sNaN. |
| 700 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ | 701 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ |
| 701 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) | 702 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) |
| 702 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; | 703 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; |
| 703 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; | 704 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; |
| 704 #else | 705 #else |
| 705 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; | 706 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; |
| 706 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; | 707 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 DCHECK(IsValidFunctionKind(kind)); | 899 DCHECK(IsValidFunctionKind(kind)); |
| 899 return kind & | 900 return kind & |
| 900 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | | 901 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | |
| 901 FunctionKind::kDefaultConstructor); | 902 FunctionKind::kDefaultConstructor); |
| 902 } | 903 } |
| 903 } } // namespace v8::internal | 904 } } // namespace v8::internal |
| 904 | 905 |
| 905 namespace i = v8::internal; | 906 namespace i = v8::internal; |
| 906 | 907 |
| 907 #endif // V8_GLOBALS_H_ | 908 #endif // V8_GLOBALS_H_ |
| OLD | NEW |