| 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/date.h" | 8 #include "src/date.h" |
| 9 #include "src/types.h" | 9 #include "src/types.h" |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 Type* const kSingletonZero = CreateRange(0.0, 0.0); | 40 Type* const kSingletonZero = CreateRange(0.0, 0.0); |
| 41 Type* const kSingletonOne = CreateRange(1.0, 1.0); | 41 Type* const kSingletonOne = CreateRange(1.0, 1.0); |
| 42 Type* const kSingletonTen = CreateRange(10.0, 10.0); | 42 Type* const kSingletonTen = CreateRange(10.0, 10.0); |
| 43 Type* const kSingletonMinusOne = CreateRange(-1.0, -1.0); | 43 Type* const kSingletonMinusOne = CreateRange(-1.0, -1.0); |
| 44 Type* const kZeroOrUndefined = | 44 Type* const kZeroOrUndefined = |
| 45 Type::Union(kSingletonZero, Type::Undefined(), zone()); | 45 Type::Union(kSingletonZero, Type::Undefined(), zone()); |
| 46 Type* const kTenOrUndefined = | 46 Type* const kTenOrUndefined = |
| 47 Type::Union(kSingletonTen, Type::Undefined(), zone()); | 47 Type::Union(kSingletonTen, Type::Undefined(), zone()); |
| 48 Type* const kMinusOneOrZero = CreateRange(-1.0, 0.0); | 48 Type* const kMinusOneOrZero = CreateRange(-1.0, 0.0); |
| 49 Type* const kMinusOneToOne = CreateRange(-1.0, 1.0); | 49 Type* const kMinusOneToOneOrMinusZeroOrNaN = Type::Union( |
| 50 Type::Union(CreateRange(-1.0, 1.0), Type::MinusZero(), zone()), |
| 51 Type::NaN(), zone()); |
| 50 Type* const kZeroOrOne = CreateRange(0.0, 1.0); | 52 Type* const kZeroOrOne = CreateRange(0.0, 1.0); |
| 51 Type* const kZeroOrOneOrNaN = Type::Union(kZeroOrOne, Type::NaN(), zone()); | 53 Type* const kZeroOrOneOrNaN = Type::Union(kZeroOrOne, Type::NaN(), zone()); |
| 52 Type* const kZeroToThirtyOne = CreateRange(0.0, 31.0); | 54 Type* const kZeroToThirtyOne = CreateRange(0.0, 31.0); |
| 53 Type* const kZeroToThirtyTwo = CreateRange(0.0, 32.0); | 55 Type* const kZeroToThirtyTwo = CreateRange(0.0, 32.0); |
| 54 Type* const kZeroish = | 56 Type* const kZeroish = |
| 55 Type::Union(kSingletonZero, Type::MinusZeroOrNaN(), zone()); | 57 Type::Union(kSingletonZero, Type::MinusZeroOrNaN(), zone()); |
| 56 Type* const kInteger = CreateRange(-V8_INFINITY, V8_INFINITY); | 58 Type* const kInteger = CreateRange(-V8_INFINITY, V8_INFINITY); |
| 57 Type* const kIntegerOrMinusZero = | 59 Type* const kIntegerOrMinusZero = |
| 58 Type::Union(kInteger, Type::MinusZero(), zone()); | 60 Type::Union(kInteger, Type::MinusZero(), zone()); |
| 59 Type* const kIntegerOrMinusZeroOrNaN = | 61 Type* const kIntegerOrMinusZeroOrNaN = |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 162 } |
| 161 | 163 |
| 162 Zone* zone() { return &zone_; } | 164 Zone* zone() { return &zone_; } |
| 163 }; | 165 }; |
| 164 | 166 |
| 165 } // namespace compiler | 167 } // namespace compiler |
| 166 } // namespace internal | 168 } // namespace internal |
| 167 } // namespace v8 | 169 } // namespace v8 |
| 168 | 170 |
| 169 #endif // V8_COMPILER_TYPE_CACHE_H_ | 171 #endif // V8_COMPILER_TYPE_CACHE_H_ |
| OLD | NEW |