| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_TYPES_H_ | 5 #ifndef V8_TYPES_H_ |
| 6 #define V8_TYPES_H_ | 6 #define V8_TYPES_H_ |
| 7 | 7 |
| 8 #include "src/conversions.h" | 8 #include "src/conversions.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 #include "src/objects.h" | 10 #include "src/objects.h" |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 tuple->AsTuple()->InitElement(1, second); | 736 tuple->AsTuple()->InitElement(1, second); |
| 737 tuple->AsTuple()->InitElement(2, third); | 737 tuple->AsTuple()->InitElement(2, third); |
| 738 return tuple; | 738 return tuple; |
| 739 } | 739 } |
| 740 | 740 |
| 741 #define CONSTRUCT_SIMD_TYPE(NAME, Name, name, lane_count, lane_type) \ | 741 #define CONSTRUCT_SIMD_TYPE(NAME, Name, name, lane_count, lane_type) \ |
| 742 static Type* Name(Isolate* isolate, Zone* zone); | 742 static Type* Name(Isolate* isolate, Zone* zone); |
| 743 SIMD128_TYPES(CONSTRUCT_SIMD_TYPE) | 743 SIMD128_TYPES(CONSTRUCT_SIMD_TYPE) |
| 744 #undef CONSTRUCT_SIMD_TYPE | 744 #undef CONSTRUCT_SIMD_TYPE |
| 745 | 745 |
| 746 static Type* Union(Type* type1, Type* type2, Zone* reg); | 746 static Type* Union(Type* type1, Type* type2, Zone* zone); |
| 747 static Type* Intersect(Type* type1, Type* type2, Zone* reg); | 747 static Type* Intersect(Type* type1, Type* type2, Zone* zone); |
| 748 | 748 |
| 749 static Type* Of(double value, Zone* zone) { | 749 static Type* Of(double value, Zone* zone) { |
| 750 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); | 750 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); |
| 751 } | 751 } |
| 752 static Type* Of(i::Object* value, Zone* zone) { | 752 static Type* Of(i::Object* value, Zone* zone) { |
| 753 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); | 753 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); |
| 754 } | 754 } |
| 755 static Type* Of(i::Handle<i::Object> value, Zone* zone) { | 755 static Type* Of(i::Handle<i::Object> value, Zone* zone) { |
| 756 return Of(*value, zone); | 756 return Of(*value, zone); |
| 757 } | 757 } |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 965 |
| 966 bool Narrows(Bounds that) { | 966 bool Narrows(Bounds that) { |
| 967 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 967 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
| 968 } | 968 } |
| 969 }; | 969 }; |
| 970 | 970 |
| 971 } // namespace internal | 971 } // namespace internal |
| 972 } // namespace v8 | 972 } // namespace v8 |
| 973 | 973 |
| 974 #endif // V8_TYPES_H_ | 974 #endif // V8_TYPES_H_ |
| OLD | NEW |