| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 | 23 |
| 24 class JSBuiltinReducer final : public AdvancedReducer { | 24 class JSBuiltinReducer final : public AdvancedReducer { |
| 25 public: | 25 public: |
| 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 ReduceMathAtan(Node* node); | 33 Reduction ReduceMathAtan(Node* node); |
| 33 Reduction ReduceMathAtan2(Node* node); | 34 Reduction ReduceMathAtan2(Node* node); |
| 34 Reduction ReduceMathAtanh(Node* node); | 35 Reduction ReduceMathAtanh(Node* node); |
| 35 Reduction ReduceMathCeil(Node* node); | 36 Reduction ReduceMathCeil(Node* node); |
| 36 Reduction ReduceMathClz32(Node* node); | 37 Reduction ReduceMathClz32(Node* node); |
| 37 Reduction ReduceMathCos(Node* node); | 38 Reduction ReduceMathCos(Node* node); |
| 38 Reduction ReduceMathExp(Node* node); | 39 Reduction ReduceMathExp(Node* node); |
| 39 Reduction ReduceMathFloor(Node* node); | 40 Reduction ReduceMathFloor(Node* node); |
| 40 Reduction ReduceMathFround(Node* node); | 41 Reduction ReduceMathFround(Node* node); |
| 41 Reduction ReduceMathImul(Node* node); | 42 Reduction ReduceMathImul(Node* node); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 65 | 66 |
| 66 JSGraph* const jsgraph_; | 67 JSGraph* const jsgraph_; |
| 67 TypeCache const& type_cache_; | 68 TypeCache const& type_cache_; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace compiler | 71 } // namespace compiler |
| 71 } // namespace internal | 72 } // namespace internal |
| 72 } // namespace v8 | 73 } // namespace v8 |
| 73 | 74 |
| 74 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ | 75 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ |
| OLD | NEW |