| 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 DCHECK_NOT_NULL(schedule()->block(node)); // should only use scheduled nodes. | 450 DCHECK_NOT_NULL(schedule()->block(node)); // should only use scheduled nodes. |
| 451 switch (node->opcode()) { | 451 switch (node->opcode()) { |
| 452 case IrOpcode::kStart: | 452 case IrOpcode::kStart: |
| 453 case IrOpcode::kLoop: | 453 case IrOpcode::kLoop: |
| 454 case IrOpcode::kEnd: | 454 case IrOpcode::kEnd: |
| 455 case IrOpcode::kBranch: | 455 case IrOpcode::kBranch: |
| 456 case IrOpcode::kIfTrue: | 456 case IrOpcode::kIfTrue: |
| 457 case IrOpcode::kIfFalse: | 457 case IrOpcode::kIfFalse: |
| 458 case IrOpcode::kEffectPhi: | 458 case IrOpcode::kEffectPhi: |
| 459 case IrOpcode::kMerge: | 459 case IrOpcode::kMerge: |
| 460 case IrOpcode::kTerminate: |
| 460 // No code needed for these graph artifacts. | 461 // No code needed for these graph artifacts. |
| 461 return kMachNone; | 462 return kMachNone; |
| 462 case IrOpcode::kFinish: | 463 case IrOpcode::kFinish: |
| 463 return kMachAnyTagged; | 464 return kMachAnyTagged; |
| 464 case IrOpcode::kParameter: | 465 case IrOpcode::kParameter: |
| 465 return linkage()->GetParameterType(OpParameter<int>(node)); | 466 return linkage()->GetParameterType(OpParameter<int>(node)); |
| 466 case IrOpcode::kPhi: | 467 case IrOpcode::kPhi: |
| 467 return OpParameter<MachineType>(node); | 468 return OpParameter<MachineType>(node); |
| 468 case IrOpcode::kProjection: | 469 case IrOpcode::kProjection: |
| 469 // TODO(jarin) Really project from outputs. | 470 // TODO(jarin) Really project from outputs. |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, | 1040 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, |
| 1040 BasicBlock* fbranch) { | 1041 BasicBlock* fbranch) { |
| 1041 UNIMPLEMENTED(); | 1042 UNIMPLEMENTED(); |
| 1042 } | 1043 } |
| 1043 | 1044 |
| 1044 #endif // !V8_TURBOFAN_BACKEND | 1045 #endif // !V8_TURBOFAN_BACKEND |
| 1045 | 1046 |
| 1046 } // namespace compiler | 1047 } // namespace compiler |
| 1047 } // namespace internal | 1048 } // namespace internal |
| 1048 } // namespace v8 | 1049 } // namespace v8 |
| OLD | NEW |