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

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

Issue 1821133002: [turbofan] Add more sanity checks to representation inference. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Type match Created 4 years, 9 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/js-intrinsic-lowering.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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 Node* GetTaggedRepresentationFor(Node* node, MachineRepresentation output_rep, 115 Node* GetTaggedRepresentationFor(Node* node, MachineRepresentation output_rep,
116 Type* output_type); 116 Type* output_type);
117 Node* GetFloat32RepresentationFor(Node* node, 117 Node* GetFloat32RepresentationFor(Node* node,
118 MachineRepresentation output_rep, 118 MachineRepresentation output_rep,
119 Type* output_type, Truncation truncation); 119 Type* output_type, Truncation truncation);
120 Node* GetFloat64RepresentationFor(Node* node, 120 Node* GetFloat64RepresentationFor(Node* node,
121 MachineRepresentation output_rep, 121 MachineRepresentation output_rep,
122 Type* output_type, Truncation truncation); 122 Type* output_type, Truncation truncation);
123 Node* GetWord32RepresentationFor(Node* node, MachineRepresentation output_rep, 123 Node* GetWord32RepresentationFor(Node* node, MachineRepresentation output_rep,
124 Type* output_type); 124 Type* output_type, Truncation truncation);
125 Node* GetBitRepresentationFor(Node* node, MachineRepresentation output_rep, 125 Node* GetBitRepresentationFor(Node* node, MachineRepresentation output_rep,
126 Type* output_type); 126 Type* output_type);
127 Node* GetWord64RepresentationFor(Node* node, MachineRepresentation output_rep, 127 Node* GetWord64RepresentationFor(Node* node, MachineRepresentation output_rep,
128 Type* output_type); 128 Type* output_type);
129 Node* TypeError(Node* node, MachineRepresentation output_rep, 129 Node* TypeError(Node* node, MachineRepresentation output_rep,
130 Type* output_type, MachineRepresentation use); 130 Type* output_type, MachineRepresentation use);
131 Node* MakeTruncatedInt32Constant(double value); 131 Node* MakeTruncatedInt32Constant(double value);
132 Node* InsertChangeFloat32ToFloat64(Node* node); 132 Node* InsertChangeFloat32ToFloat64(Node* node);
133 Node* InsertChangeTaggedToFloat64(Node* node); 133 Node* InsertChangeTaggedToFloat64(Node* node);
134 134
135 JSGraph* jsgraph() const { return jsgraph_; } 135 JSGraph* jsgraph() const { return jsgraph_; }
136 Isolate* isolate() const { return isolate_; } 136 Isolate* isolate() const { return isolate_; }
137 Factory* factory() const { return isolate()->factory(); } 137 Factory* factory() const { return isolate()->factory(); }
138 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } 138 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); }
139 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 139 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
140 }; 140 };
141 141
142 } // namespace compiler 142 } // namespace compiler
143 } // namespace internal 143 } // namespace internal
144 } // namespace v8 144 } // namespace v8
145 145
146 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ 146 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/compiler/representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698