| 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 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 | 1032 |
| 1033 | 1033 |
| 1034 static InstructionOperand* UseOrImmediate(OperandGenerator* g, Node* input) { | 1034 static InstructionOperand* UseOrImmediate(OperandGenerator* g, Node* input) { |
| 1035 switch (input->opcode()) { | 1035 switch (input->opcode()) { |
| 1036 case IrOpcode::kInt32Constant: | 1036 case IrOpcode::kInt32Constant: |
| 1037 case IrOpcode::kNumberConstant: | 1037 case IrOpcode::kNumberConstant: |
| 1038 case IrOpcode::kFloat64Constant: | 1038 case IrOpcode::kFloat64Constant: |
| 1039 case IrOpcode::kHeapConstant: | 1039 case IrOpcode::kHeapConstant: |
| 1040 return g->UseImmediate(input); | 1040 return g->UseImmediate(input); |
| 1041 default: | 1041 default: |
| 1042 return g->Use(input); | 1042 return g->UseUnique(input); |
| 1043 } | 1043 } |
| 1044 } | 1044 } |
| 1045 | 1045 |
| 1046 | 1046 |
| 1047 void InstructionSelector::AddFrameStateInputs( | 1047 void InstructionSelector::AddFrameStateInputs( |
| 1048 Node* state, InstructionOperandVector* inputs, | 1048 Node* state, InstructionOperandVector* inputs, |
| 1049 FrameStateDescriptor* descriptor) { | 1049 FrameStateDescriptor* descriptor) { |
| 1050 DCHECK_EQ(IrOpcode::kFrameState, state->op()->opcode()); | 1050 DCHECK_EQ(IrOpcode::kFrameState, state->op()->opcode()); |
| 1051 | 1051 |
| 1052 Node* parameters = state->InputAt(0); | 1052 Node* parameters = state->InputAt(0); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 | 1127 |
| 1128 | 1128 |
| 1129 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, | 1129 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, |
| 1130 BasicBlock* deoptimization) {} | 1130 BasicBlock* deoptimization) {} |
| 1131 | 1131 |
| 1132 #endif // !V8_TURBOFAN_BACKEND | 1132 #endif // !V8_TURBOFAN_BACKEND |
| 1133 | 1133 |
| 1134 } // namespace compiler | 1134 } // namespace compiler |
| 1135 } // namespace internal | 1135 } // namespace internal |
| 1136 } // namespace v8 | 1136 } // namespace v8 |
| OLD | NEW |