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

Side by Side Diff: src/compiler/representation-change.h

Issue 1908093002: [turbofan] Optimize tagged conversion based on type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes 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/pipeline.cc ('k') | src/compiler/representation-change.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_REPRESENTATION_CHANGE_H_ 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_
6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_
7 7
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 Node* GetWord32RepresentationFor(Node* node, MachineRepresentation output_rep, 126 Node* GetWord32RepresentationFor(Node* node, MachineRepresentation output_rep,
127 Type* output_type, Truncation truncation); 127 Type* output_type, Truncation truncation);
128 Node* GetBitRepresentationFor(Node* node, MachineRepresentation output_rep, 128 Node* GetBitRepresentationFor(Node* node, MachineRepresentation output_rep,
129 Type* output_type); 129 Type* output_type);
130 Node* GetWord64RepresentationFor(Node* node, MachineRepresentation output_rep, 130 Node* GetWord64RepresentationFor(Node* node, MachineRepresentation output_rep,
131 Type* output_type); 131 Type* output_type);
132 Node* TypeError(Node* node, MachineRepresentation output_rep, 132 Node* TypeError(Node* node, MachineRepresentation output_rep,
133 Type* output_type, MachineRepresentation use); 133 Type* output_type, MachineRepresentation use);
134 Node* MakeTruncatedInt32Constant(double value); 134 Node* MakeTruncatedInt32Constant(double value);
135 Node* InsertChangeFloat32ToFloat64(Node* node); 135 Node* InsertChangeFloat32ToFloat64(Node* node);
136 Node* InsertChangeFloat64ToInt32(Node* node);
137 Node* InsertChangeFloat64ToUint32(Node* node);
136 Node* InsertChangeTaggedToFloat64(Node* node); 138 Node* InsertChangeTaggedToFloat64(Node* node);
137 139
138 JSGraph* jsgraph() const { return jsgraph_; } 140 JSGraph* jsgraph() const { return jsgraph_; }
139 Isolate* isolate() const { return isolate_; } 141 Isolate* isolate() const { return isolate_; }
140 Factory* factory() const { return isolate()->factory(); } 142 Factory* factory() const { return isolate()->factory(); }
141 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } 143 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); }
142 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 144 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
143 }; 145 };
144 146
145 } // namespace compiler 147 } // namespace compiler
146 } // namespace internal 148 } // namespace internal
147 } // namespace v8 149 } // namespace v8
148 150
149 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ 151 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698