| 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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 // implemented according to ES6, section 7.1.1. | 809 // implemented according to ES6, section 7.1.1. |
| 810 enum class ToPrimitiveHint { kDefault, kNumber, kString }; | 810 enum class ToPrimitiveHint { kDefault, kNumber, kString }; |
| 811 | 811 |
| 812 // Defines specifics about arguments object or rest parameter creation. | 812 // Defines specifics about arguments object or rest parameter creation. |
| 813 enum class CreateArgumentsType : uint8_t { | 813 enum class CreateArgumentsType : uint8_t { |
| 814 kMappedArguments, | 814 kMappedArguments, |
| 815 kUnmappedArguments, | 815 kUnmappedArguments, |
| 816 kRestParameter | 816 kRestParameter |
| 817 }; | 817 }; |
| 818 | 818 |
| 819 enum class HandleDereferenceMode { kAllowed, kDisallowed }; | |
| 820 | |
| 821 inline size_t hash_value(CreateArgumentsType type) { | 819 inline size_t hash_value(CreateArgumentsType type) { |
| 822 return bit_cast<uint8_t>(type); | 820 return bit_cast<uint8_t>(type); |
| 823 } | 821 } |
| 824 | 822 |
| 825 inline std::ostream& operator<<(std::ostream& os, CreateArgumentsType type) { | 823 inline std::ostream& operator<<(std::ostream& os, CreateArgumentsType type) { |
| 826 switch (type) { | 824 switch (type) { |
| 827 case CreateArgumentsType::kMappedArguments: | 825 case CreateArgumentsType::kMappedArguments: |
| 828 return os << "MAPPED_ARGUMENTS"; | 826 return os << "MAPPED_ARGUMENTS"; |
| 829 case CreateArgumentsType::kUnmappedArguments: | 827 case CreateArgumentsType::kUnmappedArguments: |
| 830 return os << "UNMAPPED_ARGUMENTS"; | 828 return os << "UNMAPPED_ARGUMENTS"; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 public: | 1156 public: |
| 1159 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; | 1157 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; |
| 1160 }; | 1158 }; |
| 1161 | 1159 |
| 1162 } // namespace internal | 1160 } // namespace internal |
| 1163 } // namespace v8 | 1161 } // namespace v8 |
| 1164 | 1162 |
| 1165 namespace i = v8::internal; | 1163 namespace i = v8::internal; |
| 1166 | 1164 |
| 1167 #endif // V8_GLOBALS_H_ | 1165 #endif // V8_GLOBALS_H_ |
| OLD | NEW |