| 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 23 matching lines...) Expand all Loading... |
| 34 Reduction ReduceJSAdd(Node* node); | 34 Reduction ReduceJSAdd(Node* node); |
| 35 Reduction ReduceJSBitwiseOr(Node* node); | 35 Reduction ReduceJSBitwiseOr(Node* node); |
| 36 Reduction ReduceJSMultiply(Node* node); | 36 Reduction ReduceJSMultiply(Node* node); |
| 37 Reduction ReduceJSComparison(Node* node); | 37 Reduction ReduceJSComparison(Node* node); |
| 38 Reduction ReduceJSLoadProperty(Node* node); | 38 Reduction ReduceJSLoadProperty(Node* node); |
| 39 Reduction ReduceJSStoreProperty(Node* node); | 39 Reduction ReduceJSStoreProperty(Node* node); |
| 40 Reduction ReduceJSLoadContext(Node* node); | 40 Reduction ReduceJSLoadContext(Node* node); |
| 41 Reduction ReduceJSStoreContext(Node* node); | 41 Reduction ReduceJSStoreContext(Node* node); |
| 42 Reduction ReduceJSEqual(Node* node, bool invert); | 42 Reduction ReduceJSEqual(Node* node, bool invert); |
| 43 Reduction ReduceJSStrictEqual(Node* node, bool invert); | 43 Reduction ReduceJSStrictEqual(Node* node, bool invert); |
| 44 Reduction ReduceJSToBooleanInput(Node* input); | 44 Reduction ReduceJSUnaryNot(Node* node); |
| 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* ConvertToBoolean(Node* input); | |
| 56 Node* ConvertToNumber(Node* input); | 55 Node* ConvertToNumber(Node* input); |
| 57 template <IrOpcode::Value> | 56 template <IrOpcode::Value> |
| 58 Node* FindConversion(Node* input); | 57 Node* FindConversion(Node* input); |
| 59 void InsertConversion(Node* conversion); | 58 void InsertConversion(Node* conversion); |
| 60 | 59 |
| 61 Node* Word32Shl(Node* const lhs, int32_t const rhs); | 60 Node* Word32Shl(Node* const lhs, int32_t const rhs); |
| 62 | 61 |
| 63 Factory* factory() const; | 62 Factory* factory() const; |
| 64 Graph* graph() const; | 63 Graph* graph() const; |
| 65 JSGraph* jsgraph() const { return jsgraph_; } | 64 JSGraph* jsgraph() const { return jsgraph_; } |
| 66 JSOperatorBuilder* javascript() const; | 65 JSOperatorBuilder* javascript() const; |
| 67 CommonOperatorBuilder* common() const; | 66 CommonOperatorBuilder* common() const; |
| 68 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 67 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
| 69 MachineOperatorBuilder* machine() const; | 68 MachineOperatorBuilder* machine() const; |
| 70 | 69 |
| 71 JSGraph* jsgraph_; | 70 JSGraph* jsgraph_; |
| 72 SimplifiedOperatorBuilder simplified_; | 71 SimplifiedOperatorBuilder simplified_; |
| 73 ZoneVector<Node*> conversions_; // Cache inserted JSToXXX() conversions. | 72 ZoneVector<Node*> conversions_; // Cache inserted JSToXXX() conversions. |
| 74 Type* zero_range_; | 73 Type* zero_range_; |
| 75 Type* one_range_; | 74 Type* one_range_; |
| 76 Type* zero_thirtyone_range_; | 75 Type* zero_thirtyone_range_; |
| 77 Type* shifted_int32_ranges_[4]; | 76 Type* shifted_int32_ranges_[4]; |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 } // namespace compiler | 79 } // namespace compiler |
| 81 } // namespace internal | 80 } // namespace internal |
| 82 } // namespace v8 | 81 } // namespace v8 |
| 83 | 82 |
| 84 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ | 83 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ |
| OLD | NEW |