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 15 matching lines...) Expand all Loading... |
26 explicit JSBuiltinReducer(Editor* editor, JSGraph* jsgraph); | 26 explicit JSBuiltinReducer(Editor* editor, JSGraph* jsgraph); |
27 ~JSBuiltinReducer() final {} | 27 ~JSBuiltinReducer() final {} |
28 | 28 |
29 Reduction Reduce(Node* node) final; | 29 Reduction Reduce(Node* node) final; |
30 | 30 |
31 private: | 31 private: |
32 Reduction ReduceMathAbs(Node* node); | 32 Reduction ReduceMathAbs(Node* node); |
33 Reduction ReduceMathAtan(Node* node); | 33 Reduction ReduceMathAtan(Node* node); |
34 Reduction ReduceMathAtan2(Node* node); | 34 Reduction ReduceMathAtan2(Node* node); |
35 Reduction ReduceMathAtanh(Node* node); | 35 Reduction ReduceMathAtanh(Node* node); |
| 36 Reduction ReduceMathCbrt(Node* node); |
36 Reduction ReduceMathCeil(Node* node); | 37 Reduction ReduceMathCeil(Node* node); |
37 Reduction ReduceMathClz32(Node* node); | 38 Reduction ReduceMathClz32(Node* node); |
38 Reduction ReduceMathCos(Node* node); | 39 Reduction ReduceMathCos(Node* node); |
39 Reduction ReduceMathExp(Node* node); | 40 Reduction ReduceMathExp(Node* node); |
| 41 Reduction ReduceMathExpm1(Node* node); |
40 Reduction ReduceMathFloor(Node* node); | 42 Reduction ReduceMathFloor(Node* node); |
41 Reduction ReduceMathFround(Node* node); | 43 Reduction ReduceMathFround(Node* node); |
42 Reduction ReduceMathImul(Node* node); | 44 Reduction ReduceMathImul(Node* node); |
43 Reduction ReduceMathLog(Node* node); | 45 Reduction ReduceMathLog(Node* node); |
44 Reduction ReduceMathLog1p(Node* node); | 46 Reduction ReduceMathLog1p(Node* node); |
45 Reduction ReduceMathLog10(Node* node); | 47 Reduction ReduceMathLog10(Node* node); |
46 Reduction ReduceMathLog2(Node* node); | 48 Reduction ReduceMathLog2(Node* node); |
47 Reduction ReduceMathMax(Node* node); | 49 Reduction ReduceMathMax(Node* node); |
48 Reduction ReduceMathMin(Node* node); | 50 Reduction ReduceMathMin(Node* node); |
49 Reduction ReduceMathCbrt(Node* node); | 51 Reduction ReduceMathPow(Node* node); |
50 Reduction ReduceMathExpm1(Node* node); | |
51 Reduction ReduceMathRound(Node* node); | 52 Reduction ReduceMathRound(Node* node); |
52 Reduction ReduceMathSin(Node* node); | 53 Reduction ReduceMathSin(Node* node); |
53 Reduction ReduceMathSqrt(Node* node); | 54 Reduction ReduceMathSqrt(Node* node); |
54 Reduction ReduceMathTan(Node* node); | 55 Reduction ReduceMathTan(Node* node); |
55 Reduction ReduceMathTrunc(Node* node); | 56 Reduction ReduceMathTrunc(Node* node); |
56 Reduction ReduceStringFromCharCode(Node* node); | 57 Reduction ReduceStringFromCharCode(Node* node); |
57 | 58 |
58 Node* ToNumber(Node* value); | 59 Node* ToNumber(Node* value); |
59 Node* ToUint32(Node* value); | 60 Node* ToUint32(Node* value); |
60 | 61 |
61 Graph* graph() const; | 62 Graph* graph() const; |
62 JSGraph* jsgraph() const { return jsgraph_; } | 63 JSGraph* jsgraph() const { return jsgraph_; } |
63 Isolate* isolate() const; | 64 Isolate* isolate() const; |
64 CommonOperatorBuilder* common() const; | 65 CommonOperatorBuilder* common() const; |
65 SimplifiedOperatorBuilder* simplified() const; | 66 SimplifiedOperatorBuilder* simplified() const; |
66 | 67 |
67 JSGraph* const jsgraph_; | 68 JSGraph* const jsgraph_; |
68 TypeCache const& type_cache_; | 69 TypeCache const& type_cache_; |
69 }; | 70 }; |
70 | 71 |
71 } // namespace compiler | 72 } // namespace compiler |
72 } // namespace internal | 73 } // namespace internal |
73 } // namespace v8 | 74 } // namespace v8 |
74 | 75 |
75 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 76 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
OLD | NEW |