| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_OPERATION_TYPER_H_ | 5 #ifndef V8_COMPILER_OPERATION_TYPER_H_ |
| 6 #define V8_COMPILER_OPERATION_TYPER_H_ | 6 #define V8_COMPILER_OPERATION_TYPER_H_ |
| 7 | 7 |
| 8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
| 9 #include "src/compiler/opcodes.h" | 9 #include "src/compiler/opcodes.h" |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 Type* singleton_the_hole() { return singleton_the_hole_; } | 54 Type* singleton_the_hole() { return singleton_the_hole_; } |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 typedef base::Flags<ComparisonOutcomeFlags> ComparisonOutcome; | 57 typedef base::Flags<ComparisonOutcomeFlags> ComparisonOutcome; |
| 58 | 58 |
| 59 ComparisonOutcome Invert(ComparisonOutcome); | 59 ComparisonOutcome Invert(ComparisonOutcome); |
| 60 Type* Invert(Type*); | 60 Type* Invert(Type*); |
| 61 Type* FalsifyUndefined(ComparisonOutcome); | 61 Type* FalsifyUndefined(ComparisonOutcome); |
| 62 | 62 |
| 63 Type* Rangify(Type*); | 63 Type* Rangify(Type*); |
| 64 Type* AddRanger(RangeType* lhs, RangeType* rhs); | 64 Type* AddRanger(double lhs_min, double lhs_max, double rhs_min, |
| 65 double rhs_max); |
| 65 Type* SubtractRanger(RangeType* lhs, RangeType* rhs); | 66 Type* SubtractRanger(RangeType* lhs, RangeType* rhs); |
| 66 Type* MultiplyRanger(Type* lhs, Type* rhs); | 67 Type* MultiplyRanger(Type* lhs, Type* rhs); |
| 67 Type* ModulusRanger(RangeType* lhs, RangeType* rhs); | 68 Type* ModulusRanger(RangeType* lhs, RangeType* rhs); |
| 68 | 69 |
| 69 Zone* zone() { return zone_; } | 70 Zone* zone() { return zone_; } |
| 70 | 71 |
| 71 Zone* zone_; | 72 Zone* zone_; |
| 72 TypeCache const& cache_; | 73 TypeCache const& cache_; |
| 73 | 74 |
| 74 Type* singleton_false_; | 75 Type* singleton_false_; |
| 75 Type* singleton_true_; | 76 Type* singleton_true_; |
| 76 Type* singleton_the_hole_; | 77 Type* singleton_the_hole_; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace compiler | 80 } // namespace compiler |
| 80 } // namespace internal | 81 } // namespace internal |
| 81 } // namespace v8 | 82 } // namespace v8 |
| 82 | 83 |
| 83 #endif // V8_COMPILER_OPERATION_TYPER_H_ | 84 #endif // V8_COMPILER_OPERATION_TYPER_H_ |
| OLD | NEW |