| 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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 777   switch (mode) { | 777   switch (mode) { | 
| 778     case TailCallMode::kAllow: | 778     case TailCallMode::kAllow: | 
| 779       return os << "ALLOW_TAIL_CALLS"; | 779       return os << "ALLOW_TAIL_CALLS"; | 
| 780     case TailCallMode::kDisallow: | 780     case TailCallMode::kDisallow: | 
| 781       return os << "DISALLOW_TAIL_CALLS"; | 781       return os << "DISALLOW_TAIL_CALLS"; | 
| 782   } | 782   } | 
| 783   UNREACHABLE(); | 783   UNREACHABLE(); | 
| 784   return os; | 784   return os; | 
| 785 } | 785 } | 
| 786 | 786 | 
|  | 787 // Valid hints for the abstract operation OrdinaryToPrimitive, | 
|  | 788 // implemented according to ES6, section 7.1.1. | 
|  | 789 enum class OrdinaryToPrimitiveHint { kNumber, kString }; | 
|  | 790 | 
|  | 791 // Valid hints for the abstract operation ToPrimitive, | 
|  | 792 // implemented according to ES6, section 7.1.1. | 
|  | 793 enum class ToPrimitiveHint { kDefault, kNumber, kString }; | 
|  | 794 | 
| 787 // Defines specifics about arguments object or rest parameter creation. | 795 // Defines specifics about arguments object or rest parameter creation. | 
| 788 enum class CreateArgumentsType : uint8_t { | 796 enum class CreateArgumentsType : uint8_t { | 
| 789   kMappedArguments, | 797   kMappedArguments, | 
| 790   kUnmappedArguments, | 798   kUnmappedArguments, | 
| 791   kRestParameter | 799   kRestParameter | 
| 792 }; | 800 }; | 
| 793 | 801 | 
| 794 inline size_t hash_value(CreateArgumentsType type) { | 802 inline size_t hash_value(CreateArgumentsType type) { | 
| 795   return bit_cast<uint8_t>(type); | 803   return bit_cast<uint8_t>(type); | 
| 796 } | 804 } | 
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1119   return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> | 1127   return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> | 
| 1120                                kPointerSizeLog2); | 1128                                kPointerSizeLog2); | 
| 1121 } | 1129 } | 
| 1122 | 1130 | 
| 1123 }  // namespace internal | 1131 }  // namespace internal | 
| 1124 }  // namespace v8 | 1132 }  // namespace v8 | 
| 1125 | 1133 | 
| 1126 namespace i = v8::internal; | 1134 namespace i = v8::internal; | 
| 1127 | 1135 | 
| 1128 #endif  // V8_GLOBALS_H_ | 1136 #endif  // V8_GLOBALS_H_ | 
| OLD | NEW | 
|---|