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_MACHINE_OPERATOR_REDUCER_H_ | 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_REDUCER_H_ |
6 #define V8_COMPILER_MACHINE_OPERATOR_REDUCER_H_ | 6 #define V8_COMPILER_MACHINE_OPERATOR_REDUCER_H_ |
7 | 7 |
8 #include "src/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
9 #include "src/compiler/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 Reduction Reduce(Node* node) override; | 27 Reduction Reduce(Node* node) override; |
28 | 28 |
29 private: | 29 private: |
30 Node* Float32Constant(volatile float value); | 30 Node* Float32Constant(volatile float value); |
31 Node* Float64Constant(volatile double value); | 31 Node* Float64Constant(volatile double value); |
32 Node* Int32Constant(int32_t value); | 32 Node* Int32Constant(int32_t value); |
33 Node* Int64Constant(int64_t value); | 33 Node* Int64Constant(int64_t value); |
34 Node* Uint32Constant(uint32_t value) { | 34 Node* Uint32Constant(uint32_t value) { |
35 return Int32Constant(bit_cast<uint32_t>(value)); | 35 return Int32Constant(bit_cast<uint32_t>(value)); |
36 } | 36 } |
| 37 Node* Float64Mul(Node* lhs, Node* rhs); |
| 38 Node* Float64PowHalf(Node* value); |
37 Node* Word32And(Node* lhs, Node* rhs); | 39 Node* Word32And(Node* lhs, Node* rhs); |
38 Node* Word32And(Node* lhs, uint32_t rhs) { | 40 Node* Word32And(Node* lhs, uint32_t rhs) { |
39 return Word32And(lhs, Uint32Constant(rhs)); | 41 return Word32And(lhs, Uint32Constant(rhs)); |
40 } | 42 } |
41 Node* Word32Sar(Node* lhs, uint32_t rhs); | 43 Node* Word32Sar(Node* lhs, uint32_t rhs); |
42 Node* Word32Shr(Node* lhs, uint32_t rhs); | 44 Node* Word32Shr(Node* lhs, uint32_t rhs); |
43 Node* Word32Equal(Node* lhs, Node* rhs); | 45 Node* Word32Equal(Node* lhs, Node* rhs); |
44 Node* Int32Add(Node* lhs, Node* rhs); | 46 Node* Int32Add(Node* lhs, Node* rhs); |
45 Node* Int32Sub(Node* lhs, Node* rhs); | 47 Node* Int32Sub(Node* lhs, Node* rhs); |
46 Node* Int32Mul(Node* lhs, Node* rhs); | 48 Node* Int32Mul(Node* lhs, Node* rhs); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 MachineOperatorBuilder* machine() const; | 90 MachineOperatorBuilder* machine() const; |
89 | 91 |
90 JSGraph* jsgraph_; | 92 JSGraph* jsgraph_; |
91 }; | 93 }; |
92 | 94 |
93 } // namespace compiler | 95 } // namespace compiler |
94 } // namespace internal | 96 } // namespace internal |
95 } // namespace v8 | 97 } // namespace v8 |
96 | 98 |
97 #endif // V8_COMPILER_MACHINE_OPERATOR_REDUCER_H_ | 99 #endif // V8_COMPILER_MACHINE_OPERATOR_REDUCER_H_ |
OLD | NEW |