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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 16 matching lines...) Expand all Loading... |
27 explicit JSBuiltinReducer(Editor* editor, JSGraph* jsgraph); | 27 explicit JSBuiltinReducer(Editor* editor, JSGraph* jsgraph); |
28 ~JSBuiltinReducer() final {} | 28 ~JSBuiltinReducer() final {} |
29 | 29 |
30 Reduction Reduce(Node* node) final; | 30 Reduction Reduce(Node* node) final; |
31 | 31 |
32 private: | 32 private: |
33 Reduction ReduceFunctionCall(Node* node); | 33 Reduction ReduceFunctionCall(Node* node); |
34 Reduction ReduceMathMax(Node* node); | 34 Reduction ReduceMathMax(Node* node); |
35 Reduction ReduceMathImul(Node* node); | 35 Reduction ReduceMathImul(Node* node); |
36 Reduction ReduceMathFround(Node* node); | 36 Reduction ReduceMathFround(Node* node); |
| 37 Reduction ReduceMathSqrt(Node* node); |
37 Reduction ReduceMathRound(Node* node); | 38 Reduction ReduceMathRound(Node* node); |
38 | 39 |
39 Graph* graph() const; | 40 Graph* graph() const; |
40 JSGraph* jsgraph() const { return jsgraph_; } | 41 JSGraph* jsgraph() const { return jsgraph_; } |
41 Isolate* isolate() const; | 42 Isolate* isolate() const; |
42 CommonOperatorBuilder* common() const; | 43 CommonOperatorBuilder* common() const; |
43 MachineOperatorBuilder* machine() const; | 44 MachineOperatorBuilder* machine() const; |
44 SimplifiedOperatorBuilder* simplified() const; | 45 SimplifiedOperatorBuilder* simplified() const; |
45 | 46 |
46 JSGraph* const jsgraph_; | 47 JSGraph* const jsgraph_; |
47 TypeCache const& type_cache_; | 48 TypeCache const& type_cache_; |
48 }; | 49 }; |
49 | 50 |
50 } // namespace compiler | 51 } // namespace compiler |
51 } // namespace internal | 52 } // namespace internal |
52 } // namespace v8 | 53 } // namespace v8 |
53 | 54 |
54 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 55 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
OLD | NEW |