OLD | NEW |
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 #include "src/compiler/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
6 | 6 |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 break; | 237 break; |
238 default: | 238 default: |
239 break; | 239 break; |
240 } | 240 } |
241 } | 241 } |
242 } | 242 } |
243 | 243 |
244 | 244 |
245 void InstructionSelector::MarkAsRepresentation(MachineType rep, Node* node) { | 245 void InstructionSelector::MarkAsRepresentation(MachineType rep, Node* node) { |
246 DCHECK_NOT_NULL(node); | 246 DCHECK_NOT_NULL(node); |
247 if (RepresentationOf(rep) == kRepFloat64) MarkAsDouble(node); | 247 switch (RepresentationOf(rep)) { |
248 if (RepresentationOf(rep) == kRepTagged) MarkAsReference(node); | 248 case kRepFloat32: |
| 249 case kRepFloat64: |
| 250 MarkAsDouble(node); |
| 251 break; |
| 252 case kRepTagged: |
| 253 MarkAsReference(node); |
| 254 break; |
| 255 default: |
| 256 break; |
| 257 } |
249 } | 258 } |
250 | 259 |
251 | 260 |
252 // TODO(bmeurer): Get rid of the CallBuffer business and make | 261 // TODO(bmeurer): Get rid of the CallBuffer business and make |
253 // InstructionSelector::VisitCall platform independent instead. | 262 // InstructionSelector::VisitCall platform independent instead. |
254 CallBuffer::CallBuffer(Zone* zone, CallDescriptor* d, | 263 CallBuffer::CallBuffer(Zone* zone, CallDescriptor* d, |
255 FrameStateDescriptor* frame_desc) | 264 FrameStateDescriptor* frame_desc) |
256 : descriptor(d), | 265 : descriptor(d), |
257 frame_state_descriptor(frame_desc), | 266 frame_state_descriptor(frame_desc), |
258 output_nodes(NodeVector::allocator_type(zone)), | 267 output_nodes(NodeVector::allocator_type(zone)), |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 | 1135 |
1127 | 1136 |
1128 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, | 1137 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, |
1129 BasicBlock* deoptimization) {} | 1138 BasicBlock* deoptimization) {} |
1130 | 1139 |
1131 #endif // !V8_TURBOFAN_BACKEND | 1140 #endif // !V8_TURBOFAN_BACKEND |
1132 | 1141 |
1133 } // namespace compiler | 1142 } // namespace compiler |
1134 } // namespace internal | 1143 } // namespace internal |
1135 } // namespace v8 | 1144 } // namespace v8 |
OLD | NEW |