| 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 30 matching lines...) Expand all Loading... |
| 41 SIMPLIFIED_NUMBER_UNOP_LIST(DECLARE_METHOD) | 41 SIMPLIFIED_NUMBER_UNOP_LIST(DECLARE_METHOD) |
| 42 SIMPLIFIED_SPECULATIVE_NUMBER_UNOP_LIST(DECLARE_METHOD) | 42 SIMPLIFIED_SPECULATIVE_NUMBER_UNOP_LIST(DECLARE_METHOD) |
| 43 #undef DECLARE_METHOD | 43 #undef DECLARE_METHOD |
| 44 | 44 |
| 45 // Number binary operators. | 45 // Number binary operators. |
| 46 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs); | 46 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs); |
| 47 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD) | 47 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD) |
| 48 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD) | 48 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD) |
| 49 #undef DECLARE_METHOD | 49 #undef DECLARE_METHOD |
| 50 | 50 |
| 51 // Check operators. |
| 52 Type* CheckFloat64Hole(Type* type); |
| 53 Type* CheckNumber(Type* type); |
| 54 |
| 51 Type* TypeTypeGuard(const Operator* sigma_op, Type* input); | 55 Type* TypeTypeGuard(const Operator* sigma_op, Type* input); |
| 52 | 56 |
| 53 enum ComparisonOutcomeFlags { | 57 enum ComparisonOutcomeFlags { |
| 54 kComparisonTrue = 1, | 58 kComparisonTrue = 1, |
| 55 kComparisonFalse = 2, | 59 kComparisonFalse = 2, |
| 56 kComparisonUndefined = 4 | 60 kComparisonUndefined = 4 |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 Type* singleton_false() const { return singleton_false_; } | 63 Type* singleton_false() const { return singleton_false_; } |
| 60 Type* singleton_true() const { return singleton_true_; } | 64 Type* singleton_true() const { return singleton_true_; } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 86 Type* singleton_the_hole_; | 90 Type* singleton_the_hole_; |
| 87 Type* signed32ish_; | 91 Type* signed32ish_; |
| 88 Type* unsigned32ish_; | 92 Type* unsigned32ish_; |
| 89 }; | 93 }; |
| 90 | 94 |
| 91 } // namespace compiler | 95 } // namespace compiler |
| 92 } // namespace internal | 96 } // namespace internal |
| 93 } // namespace v8 | 97 } // namespace v8 |
| 94 | 98 |
| 95 #endif // V8_COMPILER_OPERATION_TYPER_H_ | 99 #endif // V8_COMPILER_OPERATION_TYPER_H_ |
| OLD | NEW |