Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: src/compiler/js-builtin-reducer.h

Issue 1841993002: [builtins] Make Math.ceil, Math.trunc and Math.round optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
26 public: 26 public:
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 ReduceMathCeil(Node* node);
36 Reduction ReduceMathFloor(Node* node); 37 Reduction ReduceMathFloor(Node* node);
37 Reduction ReduceMathFround(Node* node); 38 Reduction ReduceMathFround(Node* node);
39 Reduction ReduceMathRound(Node* node);
38 Reduction ReduceMathSqrt(Node* node); 40 Reduction ReduceMathSqrt(Node* node);
39 Reduction ReduceMathRound(Node* node); 41 Reduction ReduceMathTrunc(Node* node);
40 42
41 Graph* graph() const; 43 Graph* graph() const;
42 JSGraph* jsgraph() const { return jsgraph_; } 44 JSGraph* jsgraph() const { return jsgraph_; }
43 Isolate* isolate() const; 45 Isolate* isolate() const;
44 CommonOperatorBuilder* common() const; 46 CommonOperatorBuilder* common() const;
45 MachineOperatorBuilder* machine() const; 47 MachineOperatorBuilder* machine() const;
46 SimplifiedOperatorBuilder* simplified() const; 48 SimplifiedOperatorBuilder* simplified() const;
47 49
48 JSGraph* const jsgraph_; 50 JSGraph* const jsgraph_;
49 TypeCache const& type_cache_; 51 TypeCache const& type_cache_;
50 }; 52 };
51 53
52 } // namespace compiler 54 } // namespace compiler
53 } // namespace internal 55 } // namespace internal
54 } // namespace v8 56 } // namespace v8
55 57
56 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ 58 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698