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_COMPILER_TYPE_CACHE_H_ | 5 #ifndef V8_COMPILER_TYPE_CACHE_H_ |
6 #define V8_COMPILER_TYPE_CACHE_H_ | 6 #define V8_COMPILER_TYPE_CACHE_H_ |
7 | 7 |
8 #include "src/compiler/types.h" | 8 #include "src/compiler/types.h" |
9 #include "src/date.h" | 9 #include "src/date.h" |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 Type* const kZeroish = | 57 Type* const kZeroish = |
58 Type::Union(kSingletonZero, Type::MinusZeroOrNaN(), zone()); | 58 Type::Union(kSingletonZero, Type::MinusZeroOrNaN(), zone()); |
59 Type* const kInteger = CreateRange(-V8_INFINITY, V8_INFINITY); | 59 Type* const kInteger = CreateRange(-V8_INFINITY, V8_INFINITY); |
60 Type* const kIntegerOrMinusZero = | 60 Type* const kIntegerOrMinusZero = |
61 Type::Union(kInteger, Type::MinusZero(), zone()); | 61 Type::Union(kInteger, Type::MinusZero(), zone()); |
62 Type* const kIntegerOrMinusZeroOrNaN = | 62 Type* const kIntegerOrMinusZeroOrNaN = |
63 Type::Union(kIntegerOrMinusZero, Type::NaN(), zone()); | 63 Type::Union(kIntegerOrMinusZero, Type::NaN(), zone()); |
64 Type* const kPositiveInteger = CreateRange(0.0, V8_INFINITY); | 64 Type* const kPositiveInteger = CreateRange(0.0, V8_INFINITY); |
65 Type* const kPositiveIntegerOrMinusZero = | 65 Type* const kPositiveIntegerOrMinusZero = |
66 Type::Union(kPositiveInteger, Type::MinusZero(), zone()); | 66 Type::Union(kPositiveInteger, Type::MinusZero(), zone()); |
| 67 Type* const kPositiveIntegerOrNaN = |
| 68 Type::Union(kPositiveInteger, Type::NaN(), zone()); |
67 Type* const kPositiveIntegerOrMinusZeroOrNaN = | 69 Type* const kPositiveIntegerOrMinusZeroOrNaN = |
68 Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone()); | 70 Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone()); |
69 | 71 |
70 Type* const kAdditiveSafeInteger = | 72 Type* const kAdditiveSafeInteger = |
71 CreateRange(-4503599627370496.0, 4503599627370496.0); | 73 CreateRange(-4503599627370496.0, 4503599627370496.0); |
72 Type* const kSafeInteger = CreateRange(-kMaxSafeInteger, kMaxSafeInteger); | 74 Type* const kSafeInteger = CreateRange(-kMaxSafeInteger, kMaxSafeInteger); |
73 Type* const kAdditiveSafeIntegerOrMinusZero = | 75 Type* const kAdditiveSafeIntegerOrMinusZero = |
74 Type::Union(kAdditiveSafeInteger, Type::MinusZero(), zone()); | 76 Type::Union(kAdditiveSafeInteger, Type::MinusZero(), zone()); |
75 Type* const kSafeIntegerOrMinusZero = | 77 Type* const kSafeIntegerOrMinusZero = |
76 Type::Union(kSafeInteger, Type::MinusZero(), zone()); | 78 Type::Union(kSafeInteger, Type::MinusZero(), zone()); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 159 } |
158 | 160 |
159 Zone* zone() { return &zone_; } | 161 Zone* zone() { return &zone_; } |
160 }; | 162 }; |
161 | 163 |
162 } // namespace compiler | 164 } // namespace compiler |
163 } // namespace internal | 165 } // namespace internal |
164 } // namespace v8 | 166 } // namespace v8 |
165 | 167 |
166 #endif // V8_COMPILER_TYPE_CACHE_H_ | 168 #endif // V8_COMPILER_TYPE_CACHE_H_ |
OLD | NEW |