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_BUILTIN_REDUCER_H_ | 5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 6 #define V8_COMPILER_JS_BUILTIN_REDUCER_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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 virtual Reduction Reduce(Node* node) OVERRIDE; | 24 virtual Reduction Reduce(Node* node) OVERRIDE; |
25 | 25 |
26 private: | 26 private: |
27 JSGraph* jsgraph() const { return jsgraph_; } | 27 JSGraph* jsgraph() const { return jsgraph_; } |
28 Graph* graph() const { return jsgraph_->graph(); } | 28 Graph* graph() const { return jsgraph_->graph(); } |
29 CommonOperatorBuilder* common() const { return jsgraph_->common(); } | 29 CommonOperatorBuilder* common() const { return jsgraph_->common(); } |
30 MachineOperatorBuilder* machine() const { return jsgraph_->machine(); } | 30 MachineOperatorBuilder* machine() const { return jsgraph_->machine(); } |
31 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 31 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
32 | 32 |
| 33 Reduction ReduceMathAbs(Node* node); |
33 Reduction ReduceMathSqrt(Node* node); | 34 Reduction ReduceMathSqrt(Node* node); |
34 Reduction ReduceMathMax(Node* node); | 35 Reduction ReduceMathMax(Node* node); |
35 Reduction ReduceMathImul(Node* node); | 36 Reduction ReduceMathImul(Node* node); |
36 Reduction ReduceMathFround(Node* node); | 37 Reduction ReduceMathFround(Node* node); |
37 | 38 |
38 JSGraph* jsgraph_; | 39 JSGraph* jsgraph_; |
39 SimplifiedOperatorBuilder simplified_; | 40 SimplifiedOperatorBuilder simplified_; |
40 }; | 41 }; |
41 | 42 |
42 } // namespace compiler | 43 } // namespace compiler |
43 } // namespace internal | 44 } // namespace internal |
44 } // namespace v8 | 45 } // namespace v8 |
45 | 46 |
46 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 47 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
OLD | NEW |