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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 Type* upper = Type::Intersect(b.upper, t, zone); | 973 Type* upper = Type::Intersect(b.upper, t, zone); |
974 // Lower bounds are considered approximate, correct as necessary. | 974 // Lower bounds are considered approximate, correct as necessary. |
975 if (!lower->Is(upper)) lower = upper; | 975 if (!lower->Is(upper)) lower = upper; |
976 return Bounds(lower, upper); | 976 return Bounds(lower, upper); |
977 } | 977 } |
978 | 978 |
979 bool Narrows(Bounds that) { | 979 bool Narrows(Bounds that) { |
980 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 980 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
981 } | 981 } |
982 }; | 982 }; |
983 | |
984 } // namespace internal | 983 } // namespace internal |
985 } // namespace v8 | 984 } // namespace v8 |
986 | 985 |
987 #endif // V8_TYPES_H_ | 986 #endif // V8_TYPES_H_ |
OLD | NEW |