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

Side by Side Diff: src/compiler/simplified-lowering.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/raw-machine-assembler.h ('k') | src/compiler/simplified-lowering.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_SIMPLIFIED_LOWERING_H_ 5 #ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_
6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ 6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_
7 7
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node.h" 10 #include "src/compiler/node.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 Zone* const zone_; 48 Zone* const zone_;
49 TypeCache const& type_cache_; 49 TypeCache const& type_cache_;
50 50
51 // TODO(danno): SimplifiedLowering shouldn't know anything about the source 51 // TODO(danno): SimplifiedLowering shouldn't know anything about the source
52 // positions table, but must for now since there currently is no other way to 52 // positions table, but must for now since there currently is no other way to
53 // pass down source position information to nodes created during 53 // pass down source position information to nodes created during
54 // lowering. Once this phase becomes a vanilla reducer, it should get source 54 // lowering. Once this phase becomes a vanilla reducer, it should get source
55 // position information via the SourcePositionWrapper like all other reducers. 55 // position information via the SourcePositionWrapper like all other reducers.
56 SourcePositionTable* source_positions_; 56 SourcePositionTable* source_positions_;
57 57
58 Node* Float64Ceil(Node* const node);
58 Node* Float64Floor(Node* const node); 59 Node* Float64Floor(Node* const node);
60 Node* Float64Round(Node* const node);
61 Node* Float64Trunc(Node* const node);
59 Node* Int32Div(Node* const node); 62 Node* Int32Div(Node* const node);
60 Node* Int32Mod(Node* const node); 63 Node* Int32Mod(Node* const node);
61 Node* Uint32Div(Node* const node); 64 Node* Uint32Div(Node* const node);
62 Node* Uint32Mod(Node* const node); 65 Node* Uint32Mod(Node* const node);
63 66
64 friend class RepresentationSelector; 67 friend class RepresentationSelector;
65 68
66 Isolate* isolate() { return jsgraph_->isolate(); } 69 Isolate* isolate() { return jsgraph_->isolate(); }
67 Zone* zone() { return jsgraph_->zone(); } 70 Zone* zone() { return jsgraph_->zone(); }
68 JSGraph* jsgraph() { return jsgraph_; } 71 JSGraph* jsgraph() { return jsgraph_; }
69 Graph* graph() { return jsgraph()->graph(); } 72 Graph* graph() { return jsgraph()->graph(); }
70 CommonOperatorBuilder* common() { return jsgraph()->common(); } 73 CommonOperatorBuilder* common() { return jsgraph()->common(); }
71 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 74 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
72 }; 75 };
73 76
74 } // namespace compiler 77 } // namespace compiler
75 } // namespace internal 78 } // namespace internal
76 } // namespace v8 79 } // namespace v8
77 80
78 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ 81 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698