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

Side by Side Diff: src/compiler/simplified-lowering.h

Issue 2309953002: [turbofan] Introduce dedicated NumberToBoolean operator. (Closed)
Patch Set: Fix unittest. Created 4 years, 3 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/operation-typer.cc ('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 23 matching lines...) Expand all
34 RepresentationSelector* selector); 34 RepresentationSelector* selector);
35 void DoJSToNumberTruncatesToWord32(Node* node, 35 void DoJSToNumberTruncatesToWord32(Node* node,
36 RepresentationSelector* selector); 36 RepresentationSelector* selector);
37 // TODO(turbofan): The representation can be removed once the result of the 37 // TODO(turbofan): The representation can be removed once the result of the
38 // representation analysis is stored in the node bounds. 38 // representation analysis is stored in the node bounds.
39 void DoLoadBuffer(Node* node, MachineRepresentation rep, 39 void DoLoadBuffer(Node* node, MachineRepresentation rep,
40 RepresentationChanger* changer); 40 RepresentationChanger* changer);
41 void DoStoreBuffer(Node* node); 41 void DoStoreBuffer(Node* node);
42 void DoShift(Node* node, Operator const* op, Type* rhs_type); 42 void DoShift(Node* node, Operator const* op, Type* rhs_type);
43 void DoStringToNumber(Node* node); 43 void DoStringToNumber(Node* node);
44 void DoIntegral32ToBit(Node* node);
45 void DoOrderedNumberToBit(Node* node);
46 void DoNumberToBit(Node* node);
44 47
45 private: 48 private:
46 JSGraph* const jsgraph_; 49 JSGraph* const jsgraph_;
47 Zone* const zone_; 50 Zone* const zone_;
48 TypeCache const& type_cache_; 51 TypeCache const& type_cache_;
49 SetOncePointer<Node> to_number_code_; 52 SetOncePointer<Node> to_number_code_;
50 SetOncePointer<Operator const> to_number_operator_; 53 SetOncePointer<Operator const> to_number_operator_;
51 54
52 // TODO(danno): SimplifiedLowering shouldn't know anything about the source 55 // TODO(danno): SimplifiedLowering shouldn't know anything about the source
53 // positions table, but must for now since there currently is no other way to 56 // positions table, but must for now since there currently is no other way to
(...skipping 23 matching lines...) Expand all
77 CommonOperatorBuilder* common() { return jsgraph()->common(); } 80 CommonOperatorBuilder* common() { return jsgraph()->common(); }
78 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 81 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
79 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } 82 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); }
80 }; 83 };
81 84
82 } // namespace compiler 85 } // namespace compiler
83 } // namespace internal 86 } // namespace internal
84 } // namespace v8 87 } // namespace v8
85 88
86 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ 89 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/operation-typer.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698