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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 tuple->AsTuple()->InitElement(1, second); | 744 tuple->AsTuple()->InitElement(1, second); |
745 tuple->AsTuple()->InitElement(2, third); | 745 tuple->AsTuple()->InitElement(2, third); |
746 return tuple; | 746 return tuple; |
747 } | 747 } |
748 | 748 |
749 #define CONSTRUCT_SIMD_TYPE(NAME, Name, name, lane_count, lane_type) \ | 749 #define CONSTRUCT_SIMD_TYPE(NAME, Name, name, lane_count, lane_type) \ |
750 static Type* Name(Isolate* isolate, Zone* zone); | 750 static Type* Name(Isolate* isolate, Zone* zone); |
751 SIMD128_TYPES(CONSTRUCT_SIMD_TYPE) | 751 SIMD128_TYPES(CONSTRUCT_SIMD_TYPE) |
752 #undef CONSTRUCT_SIMD_TYPE | 752 #undef CONSTRUCT_SIMD_TYPE |
753 | 753 |
754 static Type* Union(Type* type1, Type* type2, Zone* reg); | 754 static Type* Union(Type* type1, Type* type2, Zone* zone); |
755 static Type* Intersect(Type* type1, Type* type2, Zone* reg); | 755 static Type* Intersect(Type* type1, Type* type2, Zone* zone); |
756 | 756 |
757 static Type* Of(double value, Zone* zone) { | 757 static Type* Of(double value, Zone* zone) { |
758 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); | 758 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); |
759 } | 759 } |
760 static Type* Of(i::Object* value, Zone* zone) { | 760 static Type* Of(i::Object* value, Zone* zone) { |
761 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); | 761 return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(value))); |
762 } | 762 } |
763 static Type* Of(i::Handle<i::Object> value, Zone* zone) { | 763 static Type* Of(i::Handle<i::Object> value, Zone* zone) { |
764 return Of(*value, zone); | 764 return Of(*value, zone); |
765 } | 765 } |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 | 973 |
974 bool Narrows(Bounds that) { | 974 bool Narrows(Bounds that) { |
975 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 975 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
976 } | 976 } |
977 }; | 977 }; |
978 | 978 |
979 } // namespace internal | 979 } // namespace internal |
980 } // namespace v8 | 980 } // namespace v8 |
981 | 981 |
982 #endif // V8_TYPES_H_ | 982 #endif // V8_TYPES_H_ |
OLD | NEW |