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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 MachineType type = OpParameter<MachineType>(node); | 469 MachineType type = OpParameter<MachineType>(node); |
470 MarkAsRepresentation(type, node); | 470 MarkAsRepresentation(type, node); |
471 return VisitPhi(node); | 471 return VisitPhi(node); |
472 } | 472 } |
473 case IrOpcode::kProjection: | 473 case IrOpcode::kProjection: |
474 return VisitProjection(node); | 474 return VisitProjection(node); |
475 case IrOpcode::kInt32Constant: | 475 case IrOpcode::kInt32Constant: |
476 case IrOpcode::kInt64Constant: | 476 case IrOpcode::kInt64Constant: |
477 case IrOpcode::kExternalConstant: | 477 case IrOpcode::kExternalConstant: |
478 return VisitConstant(node); | 478 return VisitConstant(node); |
| 479 case IrOpcode::kFloat32Constant: |
| 480 return MarkAsDouble(node), VisitConstant(node); |
479 case IrOpcode::kFloat64Constant: | 481 case IrOpcode::kFloat64Constant: |
480 return MarkAsDouble(node), VisitConstant(node); | 482 return MarkAsDouble(node), VisitConstant(node); |
481 case IrOpcode::kHeapConstant: | 483 case IrOpcode::kHeapConstant: |
482 case IrOpcode::kNumberConstant: | 484 case IrOpcode::kNumberConstant: |
483 // TODO(turbofan): only mark non-smis as references. | 485 // TODO(turbofan): only mark non-smis as references. |
484 return MarkAsReference(node), VisitConstant(node); | 486 return MarkAsReference(node), VisitConstant(node); |
485 case IrOpcode::kCall: | 487 case IrOpcode::kCall: |
486 return VisitCall(node, NULL, NULL); | 488 return VisitCall(node, NULL, NULL); |
487 case IrOpcode::kFrameState: | 489 case IrOpcode::kFrameState: |
488 case IrOpcode::kStateValues: | 490 case IrOpcode::kStateValues: |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 | 1098 |
1097 | 1099 |
1098 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, | 1100 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, |
1099 BasicBlock* deoptimization) {} | 1101 BasicBlock* deoptimization) {} |
1100 | 1102 |
1101 #endif // !V8_TURBOFAN_BACKEND | 1103 #endif // !V8_TURBOFAN_BACKEND |
1102 | 1104 |
1103 } // namespace compiler | 1105 } // namespace compiler |
1104 } // namespace internal | 1106 } // namespace internal |
1105 } // namespace v8 | 1107 } // namespace v8 |
OLD | NEW |