| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 Type* ToPrimitive(Type* type); | 33 Type* ToPrimitive(Type* type); |
| 34 | 34 |
| 35 // Helpers for number operation typing. | 35 // Helpers for number operation typing. |
| 36 Type* ToNumber(Type* type); | 36 Type* ToNumber(Type* type); |
| 37 Type* WeakenRange(Type* current_range, Type* previous_range); | 37 Type* WeakenRange(Type* current_range, Type* previous_range); |
| 38 | 38 |
| 39 // Number unary operators. | 39 // Number unary operators. |
| 40 #define DECLARE_METHOD(Name) Type* Name(Type* type); | 40 #define DECLARE_METHOD(Name) Type* Name(Type* type); |
| 41 SIMPLIFIED_NUMBER_UNOP_LIST(DECLARE_METHOD) | 41 SIMPLIFIED_NUMBER_UNOP_LIST(DECLARE_METHOD) |
| 42 SIMPLIFIED_SPECULATIVE_NUMBER_UNOP_LIST(DECLARE_METHOD) |
| 42 #undef DECLARE_METHOD | 43 #undef DECLARE_METHOD |
| 43 | 44 |
| 44 // Number binary operators. | 45 // Number binary operators. |
| 45 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs); | 46 #define DECLARE_METHOD(Name) Type* Name(Type* lhs, Type* rhs); |
| 46 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD) | 47 SIMPLIFIED_NUMBER_BINOP_LIST(DECLARE_METHOD) |
| 47 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD) | 48 SIMPLIFIED_SPECULATIVE_NUMBER_BINOP_LIST(DECLARE_METHOD) |
| 48 #undef DECLARE_METHOD | 49 #undef DECLARE_METHOD |
| 49 | 50 |
| 50 Type* TypeTypeGuard(const Operator* sigma_op, Type* input); | 51 Type* TypeTypeGuard(const Operator* sigma_op, Type* input); |
| 51 | 52 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 Type* singleton_the_hole_; | 86 Type* singleton_the_hole_; |
| 86 Type* signed32ish_; | 87 Type* signed32ish_; |
| 87 Type* unsigned32ish_; | 88 Type* unsigned32ish_; |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace compiler | 91 } // namespace compiler |
| 91 } // namespace internal | 92 } // namespace internal |
| 92 } // namespace v8 | 93 } // namespace v8 |
| 93 | 94 |
| 94 #endif // V8_COMPILER_OPERATION_TYPER_H_ | 95 #endif // V8_COMPILER_OPERATION_TYPER_H_ |
| OLD | NEW |