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

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

Issue 2139183002: [turbofan] Unify BooleanToNumber, StringToNumber and PlainPrimitiveToNumber. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/opcodes.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 24 matching lines...) Expand all
35 void DoJSToNumberTruncatesToFloat64(Node* node, 35 void DoJSToNumberTruncatesToFloat64(Node* node,
36 RepresentationSelector* selector); 36 RepresentationSelector* selector);
37 void DoJSToNumberTruncatesToWord32(Node* node, 37 void DoJSToNumberTruncatesToWord32(Node* node,
38 RepresentationSelector* selector); 38 RepresentationSelector* selector);
39 // TODO(turbofan): The representation can be removed once the result of the 39 // TODO(turbofan): The representation can be removed once the result of the
40 // representation analysis is stored in the node bounds. 40 // representation analysis is stored in the node bounds.
41 void DoLoadBuffer(Node* node, MachineRepresentation rep, 41 void DoLoadBuffer(Node* node, MachineRepresentation rep,
42 RepresentationChanger* changer); 42 RepresentationChanger* changer);
43 void DoStoreBuffer(Node* node); 43 void DoStoreBuffer(Node* node);
44 void DoShift(Node* node, Operator const* op, Type* rhs_type); 44 void DoShift(Node* node, Operator const* op, Type* rhs_type);
45 void DoStringToNumber(Node* node);
45 46
46 private: 47 private:
47 JSGraph* const jsgraph_; 48 JSGraph* const jsgraph_;
48 Zone* const zone_; 49 Zone* const zone_;
49 TypeCache const& type_cache_; 50 TypeCache const& type_cache_;
50 SetOncePointer<Node> to_number_code_; 51 SetOncePointer<Node> to_number_code_;
51 SetOncePointer<Operator const> to_number_operator_; 52 SetOncePointer<Operator const> to_number_operator_;
52 53
53 // TODO(danno): SimplifiedLowering shouldn't know anything about the source 54 // TODO(danno): SimplifiedLowering shouldn't know anything about the source
54 // positions table, but must for now since there currently is no other way to 55 // positions table, but must for now since there currently is no other way to
(...skipping 26 matching lines...) Expand all
81 CommonOperatorBuilder* common() { return jsgraph()->common(); } 82 CommonOperatorBuilder* common() { return jsgraph()->common(); }
82 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 83 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
83 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } 84 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); }
84 }; 85 };
85 86
86 } // namespace compiler 87 } // namespace compiler
87 } // namespace internal 88 } // namespace internal
88 } // namespace v8 89 } // namespace v8
89 90
90 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ 91 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698