| 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_JS_TYPED_LOWERING_H_ | 5 #ifndef V8_COMPILER_JS_TYPED_LOWERING_H_ |
| 6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ | 6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ |
| 7 | 7 |
| 8 #include "src/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
| 9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 Reduction ReduceJSToBoolean(Node* node); | 45 Reduction ReduceJSToBoolean(Node* node); |
| 46 Reduction ReduceJSToNumberInput(Node* input); | 46 Reduction ReduceJSToNumberInput(Node* input); |
| 47 Reduction ReduceJSToNumber(Node* node); | 47 Reduction ReduceJSToNumber(Node* node); |
| 48 Reduction ReduceJSToStringInput(Node* input); | 48 Reduction ReduceJSToStringInput(Node* input); |
| 49 Reduction ReduceJSToString(Node* node); | 49 Reduction ReduceJSToString(Node* node); |
| 50 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); | 50 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); |
| 51 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); | 51 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); |
| 52 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, | 52 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, |
| 53 const Operator* shift_op); | 53 const Operator* shift_op); |
| 54 | 54 |
| 55 Node* ConvertToNumber(Node* input); | 55 Node* ConvertPrimitiveToNumber(Node* input); |
| 56 template <IrOpcode::Value> | 56 template <IrOpcode::Value> |
| 57 Node* FindConversion(Node* input); | 57 Node* FindConversion(Node* input); |
| 58 void InsertConversion(Node* conversion); | 58 void InsertConversion(Node* conversion); |
| 59 | 59 |
| 60 Node* Word32Shl(Node* const lhs, int32_t const rhs); | 60 Node* Word32Shl(Node* const lhs, int32_t const rhs); |
| 61 | 61 |
| 62 Factory* factory() const; | 62 Factory* factory() const; |
| 63 Graph* graph() const; | 63 Graph* graph() const; |
| 64 JSGraph* jsgraph() const { return jsgraph_; } | 64 JSGraph* jsgraph() const { return jsgraph_; } |
| 65 JSOperatorBuilder* javascript() const; | 65 JSOperatorBuilder* javascript() const; |
| 66 CommonOperatorBuilder* common() const; | 66 CommonOperatorBuilder* common() const; |
| 67 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 67 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
| 68 MachineOperatorBuilder* machine() const; | 68 MachineOperatorBuilder* machine() const; |
| 69 | 69 |
| 70 JSGraph* jsgraph_; | 70 JSGraph* jsgraph_; |
| 71 SimplifiedOperatorBuilder simplified_; | 71 SimplifiedOperatorBuilder simplified_; |
| 72 ZoneVector<Node*> conversions_; // Cache inserted JSToXXX() conversions. | 72 ZoneVector<Node*> conversions_; // Cache inserted JSToXXX() conversions. |
| 73 Type* zero_range_; | 73 Type* zero_range_; |
| 74 Type* one_range_; | 74 Type* one_range_; |
| 75 Type* zero_thirtyone_range_; | 75 Type* zero_thirtyone_range_; |
| 76 Type* shifted_int32_ranges_[4]; | 76 Type* shifted_int32_ranges_[4]; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace compiler | 79 } // namespace compiler |
| 80 } // namespace internal | 80 } // namespace internal |
| 81 } // namespace v8 | 81 } // namespace v8 |
| 82 | 82 |
| 83 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ | 83 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ |
| OLD | NEW |