| 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_OPERATOR_REDUCERS_H_ | 5 #ifndef V8_COMPILER_OPERATOR_REDUCERS_H_ |
| 6 #define V8_COMPILER_OPERATOR_REDUCERS_H_ | 6 #define V8_COMPILER_OPERATOR_REDUCERS_H_ |
| 7 | 7 |
| 8 #include "src/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 private: | 32 private: |
| 33 friend class JSBinopReduction; | 33 friend class JSBinopReduction; |
| 34 JSGraph* jsgraph_; | 34 JSGraph* jsgraph_; |
| 35 SimplifiedOperatorBuilder simplified_; | 35 SimplifiedOperatorBuilder simplified_; |
| 36 MachineOperatorBuilder machine_; | 36 MachineOperatorBuilder machine_; |
| 37 | 37 |
| 38 Reduction ReplaceEagerly(Node* old, Node* node); | 38 Reduction ReplaceEagerly(Node* old, Node* node); |
| 39 Reduction ReplaceWith(Node* node) { return Reducer::Replace(node); } | 39 Reduction ReplaceWith(Node* node) { return Reducer::Replace(node); } |
| 40 Reduction ReduceJSAdd(Node* node); | 40 Reduction ReduceJSAdd(Node* node); |
| 41 Reduction ReduceJSComparison(Node* node); | 41 Reduction ReduceJSComparison(Node* node); |
| 42 Reduction ReduceJSPropertyLoad(Node* node); |
| 42 Reduction ReduceJSEqual(Node* node, bool invert); | 43 Reduction ReduceJSEqual(Node* node, bool invert); |
| 43 Reduction ReduceJSStrictEqual(Node* node, bool invert); | 44 Reduction ReduceJSStrictEqual(Node* node, bool invert); |
| 44 Reduction ReduceJSToNumberInput(Node* input); | 45 Reduction ReduceJSToNumberInput(Node* input); |
| 45 Reduction ReduceJSToStringInput(Node* input); | 46 Reduction ReduceJSToStringInput(Node* input); |
| 46 Reduction ReduceJSToBooleanInput(Node* input); | 47 Reduction ReduceJSToBooleanInput(Node* input); |
| 47 Reduction ReduceNumberBinop(Node* node, Operator* numberOp); | 48 Reduction ReduceNumberBinop(Node* node, Operator* numberOp); |
| 48 Reduction ReduceI32Binop(Node* node, bool left_signed, bool right_signed, | 49 Reduction ReduceI32Binop(Node* node, bool left_signed, bool right_signed, |
| 49 Operator* intOp); | 50 Operator* intOp); |
| 50 Reduction ReduceI32Shift(Node* node, bool left_signed, Operator* shift_op); | 51 Reduction ReduceI32Shift(Node* node, bool left_signed, Operator* shift_op); |
| 51 | 52 |
| 52 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } | 53 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } |
| 53 CommonOperatorBuilder* common() { return jsgraph_->common(); } | 54 CommonOperatorBuilder* common() { return jsgraph_->common(); } |
| 54 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 55 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
| 55 MachineOperatorBuilder* machine() { return &machine_; } | 56 MachineOperatorBuilder* machine() { return &machine_; } |
| 56 }; | 57 }; |
| 57 } | 58 } |
| 58 } | 59 } |
| 59 } // namespace v8::internal::compiler | 60 } // namespace v8::internal::compiler |
| 60 | 61 |
| 61 #endif // V8_COMPILER_OPERATOR_REDUCERS_H_ | 62 #endif // V8_COMPILER_OPERATOR_REDUCERS_H_ |
| OLD | NEW |